From 0f536bbff4ee6a1b48abe61348629376d3ceca23 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Thu, 9 Apr 2026 10:59:19 +0300 Subject: [PATCH] refactor boot info --- boot.nix | 12 ++++++++++++ configuration.nix | 19 ++----------------- 2 files changed, 14 insertions(+), 17 deletions(-) create mode 100644 boot.nix 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;