diff options
Diffstat (limited to 'modules/boot/nixos')
| -rw-r--r-- | modules/boot/nixos/default.nix | 81 | ||||
| -rw-r--r-- | modules/boot/nixos/plymouth.nix | 21 |
2 files changed, 0 insertions, 102 deletions
diff --git a/modules/boot/nixos/default.nix b/modules/boot/nixos/default.nix deleted file mode 100644 index 49cca5e..0000000 --- a/modules/boot/nixos/default.nix +++ /dev/null @@ -1,81 +0,0 @@ -{ - pkgs, - config, - lib, - ... -}: let - cfg = config.collinux.boot; -in { - imports = [ - ./plymouth.nix - ]; - - boot = - { - bcache.enable = false; # why is this default on? I DON'T CARE ABOUT bcache - initrd = { - verbose = false; - systemd.enable = true; - checkJournalingFS = false; - }; - loader = { - systemd-boot = lib.optionalAttrs (cfg.systemd-boot.enable && !cfg.secureBoot.enable) { - enable = true; - configurationLimit = 3; - }; - efi.canTouchEfiVariables = true; - timeout = cfg.timeout; # hold space to show boot menu - }; - - # from hardened.nix - blacklistedKernelModules = [ - # Obscure network protocols - "ax25" - "netrom" - "rose" - - # Old or rare or insufficiently audited filesystems - "adfs" - "affs" - "bfs" - "befs" - "cramfs" - "efs" - # "erofs" # necessary for system.etc.overlay - "exofs" - "freevxfs" - "f2fs" - "hfs" - "hpfs" - "jfs" - "minix" - "nilfs2" - "ntfs" - "omfs" - "qnx4" - "qnx6" - "sysv" - "ufs" - ]; - } - // (lib.optionalAttrs cfg.secureBoot.enable { - lanzaboote = { - enable = true; - pkiBundle = "/var/lib/sbctl"; - }; - }); - - system.etc.overlay = { - enable = true; - mutable = true; # would love this to be false, but we're not there yet - }; - system.nixos-init.enable = true; - - # store journald logs in memory - services.journald.extraConfig = '' - Storage=volatile - RuntimeMaxUse=100M - ''; - - environment.systemPackages = [pkgs.efibootmgr] ++ lib.optional cfg.secureBoot.enable pkgs.sbctl; -} diff --git a/modules/boot/nixos/plymouth.nix b/modules/boot/nixos/plymouth.nix deleted file mode 100644 index 5f7952b..0000000 --- a/modules/boot/nixos/plymouth.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ - pkgs, - config, - lib, - ... -}: let - cfg = config.collinux.boot.plymouth; -in - lib.mkIf cfg.enable { - boot.plymouth = { - enable = true; - theme = - if (cfg.theme == "catppuccin") - then "catppuccin-macchiato" # for whatever reason catppuccin-mocha has errors - else "nixos-bgrt"; - themePackages = - if (cfg.theme == "catppuccin") - then [pkgs.catppuccin-plymouth] - else [pkgs.nixos-bgrt-plymouth]; - }; - } |
