feat: generalize systemd-boot config
This commit is contained in:
parent
acb964f7f2
commit
d042634a91
2 changed files with 15 additions and 12 deletions
|
@ -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 = {
|
||||
|
|
12
profiles/boot/systemd-boot.nix
Normal file
12
profiles/boot/systemd-boot.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }: {
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
editor = false;
|
||||
consoleMode = "2";
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
timeout = 3;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue