refactor boot info

This commit is contained in:
Yisroel Baum 2026-04-09 10:59:19 +03:00
parent 53a94c2e61
commit 0f536bbff4
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 14 additions and 17 deletions

12
boot.nix Normal file
View file

@ -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";
};
};
}

View file

@ -9,25 +9,10 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./forgejo.nix ./forgejo.nix
./boot.nix
]; ];
# Bootloader. networking.hostName = "nixos";
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";
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;