refactor(system): move boot options into their own file
This commit is contained in:
parent
18674ac22d
commit
526527f5dc
3 changed files with 18 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }:
|
_:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -7,19 +7,6 @@
|
||||||
./zsa.nix
|
./zsa.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.supportedFilesystems = lib.mkDefault [ "btrfs" ];
|
|
||||||
boot.kernelPackages = lib.mkOverride 800 pkgs.linuxPackages_latest;
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
boot.initrd.systemd.enable = true;
|
|
||||||
|
|
||||||
boot.plymouth.enable = true;
|
|
||||||
|
|
||||||
# prevents `systemd-vconsole-setup` failing during systemd initrd
|
|
||||||
console.earlySetup = true;
|
|
||||||
systemd.services.systemd-vconsole-setup.unitConfig.After = "local-fs.target";
|
|
||||||
|
|
||||||
services.smartd.enable = true;
|
services.smartd.enable = true;
|
||||||
services.smartd.notifications.x11.enable = true;
|
services.smartd.notifications.x11.enable = true;
|
||||||
}
|
}
|
||||||
|
|
16
system/boot.nix
Normal file
16
system/boot.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot.supportedFilesystems = lib.mkDefault [ "btrfs" ];
|
||||||
|
boot.kernelPackages = lib.mkOverride 800 pkgs.linuxPackages_latest;
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
|
||||||
|
boot.plymouth.enable = true;
|
||||||
|
|
||||||
|
# prevents `systemd-vconsole-setup` failing during systemd initrd
|
||||||
|
console.earlySetup = true;
|
||||||
|
systemd.services.systemd-vconsole-setup.unitConfig.After = "local-fs.target";
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./boot.nix
|
||||||
./zram.nix
|
./zram.nix
|
||||||
./i18n.nix
|
./i18n.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue