From d042634a910576202fc55bfbeed43832f8fc687f Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 10 Sep 2021 10:45:13 -0400 Subject: [PATCH] feat: generalize systemd-boot config --- hosts/Infini-DESKTOP/default.nix | 15 +++------------ profiles/boot/systemd-boot.nix | 12 ++++++++++++ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 profiles/boot/systemd-boot.nix diff --git a/hosts/Infini-DESKTOP/default.nix b/hosts/Infini-DESKTOP/default.nix index e4fb34b..2c2a143 100644 --- a/hosts/Infini-DESKTOP/default.nix +++ b/hosts/Infini-DESKTOP/default.nix @@ -2,7 +2,10 @@ imports = suites.graphic ++ [ ./hardware-configuration.nix ] ++ (with profiles; [ + boot.systemd-boot + networking.wireless + hardware.sound hardware.nvidia # peripherals.printing @@ -10,18 +13,6 @@ system.stateVersion = "21.05"; - boot.loader = { - systemd-boot = { - enable = true; - editor = false; - consoleMode = "2"; - }; - - efi.canTouchEfiVariables = true; - timeout = 3; - }; - - time.timeZone = "America/New_York"; networking = { interfaces = { diff --git a/profiles/boot/systemd-boot.nix b/profiles/boot/systemd-boot.nix new file mode 100644 index 0000000..01846f5 --- /dev/null +++ b/profiles/boot/systemd-boot.nix @@ -0,0 +1,12 @@ +{ ... }: { + boot.loader = { + systemd-boot = { + enable = true; + editor = false; + consoleMode = "2"; + }; + + efi.canTouchEfiVariables = true; + timeout = 3; + }; +}