diff --git a/boot.nix b/boot.nix new file mode 100644 index 0000000..2d60bd9 --- /dev/null +++ b/boot.nix @@ -0,0 +1,12 @@ +{ + # Bootloader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.enableContainers = true; + + boot.initrd.luks.devices = { + "luks-59b7ec9a-0ff6-4be8-addd-fb2fff9981a4" = { + device = "/dev/disk/by-uuid/59b7ec9a-0ff6-4be8-addd-fb2fff9981a4"; + }; + }; +} diff --git a/configuration.nix b/configuration.nix index e533a59..5275efa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -9,25 +9,10 @@ [ # Include the results of the hardware scan. ./hardware-configuration.nix ./forgejo.nix + ./boot.nix ]; - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.enableContainers = true; - - boot.initrd.luks.devices = { - "luks-59b7ec9a-0ff6-4be8-addd-fb2fff9981a4" = { - device = "/dev/disk/by-uuid/59b7ec9a-0ff6-4be8-addd-fb2fff9981a4"; - }; - }; - networking.hostName = "nixos"; # Define your hostname. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - + networking.hostName = "nixos"; # Enable networking networking.networkmanager.enable = true;