mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
ricing
This commit is contained in:
parent
58dea90ea9
commit
663aeffed8
9 changed files with 92 additions and 37 deletions
|
|
@ -8,5 +8,6 @@
|
|||
./software
|
||||
./security
|
||||
./services
|
||||
./ricing
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,27 @@
|
|||
{
|
||||
config.boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
config = {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
};
|
||||
# Can press any key to get the generation list, otherwise just load the first one cause it's probably what you want
|
||||
timeout = 0;
|
||||
};
|
||||
|
||||
# Silent Booting
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"boot.shell_on_fail"
|
||||
"loglevel=3"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"udev.log_priority=3"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,8 @@
|
|||
};
|
||||
|
||||
ricing = {
|
||||
basic.enable = lib.mkEnableOption "enable basic ricing";
|
||||
basic.enable = lib.mkEnableOption "enable basic ricing";
|
||||
wasteland.enable = lib.mkEnableOptin "post-collapse themed rice";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -96,7 +97,8 @@
|
|||
};
|
||||
|
||||
ricing = {
|
||||
basic.enable = lib.mkDefault true;
|
||||
basic.enable = lib.mkDefault true;
|
||||
wasteland.enable = lib.mkDefault false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
5
modules/ricing/default.nix
Normal file
5
modules/ricing/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./plymouth.nix
|
||||
];
|
||||
}
|
||||
32
modules/ricing/plymouth.nix
Normal file
32
modules/ricing/plymouth.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
basic = {
|
||||
theme = "breeze";
|
||||
logo = "${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
|
||||
font = "${pkgs.dejavu_fonts.minimal}/share/fonts/truetype/DejaVuSans.ttf";
|
||||
extraConfig = "";
|
||||
};
|
||||
in {
|
||||
boot.plymouth = {
|
||||
theme =
|
||||
if config.ricing.basic.enable
|
||||
then basic.theme
|
||||
else null;
|
||||
logo =
|
||||
if config.ricing.basic.enable
|
||||
then basic.logo
|
||||
else null;
|
||||
font =
|
||||
if config.ricing.basic.enable
|
||||
then basic.font
|
||||
else null;
|
||||
extraConfig =
|
||||
if config.ricing.basic.enable
|
||||
then basic.extraConfig
|
||||
else null;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "TheWanderingCrow";
|
||||
userEmail = "contact@wanderingcrow.net";
|
||||
};
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "TheWanderingCrow";
|
||||
userEmail = "contact@wanderingcrow.net";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
extraConfig = ''
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
extraConfig = ''
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
'';
|
||||
};
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -223,7 +223,13 @@
|
|||
in {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = if osConfig.ricing.basic.enable then og_waybar.jsonc else {};
|
||||
style = if osConfig.ricing.basic.enable then og_waybar.style else "";
|
||||
settings =
|
||||
if osConfig.ricing.basic.enable
|
||||
then og_waybar.jsonc
|
||||
else {};
|
||||
style =
|
||||
if osConfig.ricing.basic.enable
|
||||
then og_waybar.style
|
||||
else "";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./user.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue