ricing
This commit is contained in:
parent
58dea90ea9
commit
663aeffed8
9 changed files with 92 additions and 37 deletions
|
|
@ -8,5 +8,6 @@
|
||||||
./software
|
./software
|
||||||
./security
|
./security
|
||||||
./services
|
./services
|
||||||
|
./ricing
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,27 @@
|
||||||
{
|
{
|
||||||
config.boot.loader = {
|
config = {
|
||||||
systemd-boot.enable = true;
|
boot = {
|
||||||
efi = {
|
loader = {
|
||||||
canTouchEfiVariables = true;
|
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 = {
|
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 = {
|
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 = {
|
||||||
programs.git = {
|
enable = true;
|
||||||
enable = true;
|
userName = "TheWanderingCrow";
|
||||||
userName = "TheWanderingCrow";
|
userEmail = "contact@wanderingcrow.net";
|
||||||
userEmail = "contact@wanderingcrow.net";
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
bind | split-window -h
|
bind | split-window -h
|
||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
unbind '"'
|
unbind '"'
|
||||||
unbind %
|
unbind %
|
||||||
|
|
||||||
bind -n M-Left select-pane -L
|
bind -n M-Left select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
bind -n M-Right select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
bind -n M-Up select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
bind -n M-Down select-pane -D
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,13 @@
|
||||||
in {
|
in {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = if osConfig.ricing.basic.enable then og_waybar.jsonc else {};
|
settings =
|
||||||
style = if osConfig.ricing.basic.enable then og_waybar.style else "";
|
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