refactor boot info
This commit is contained in:
parent
53a94c2e61
commit
0f536bbff4
2 changed files with 14 additions and 17 deletions
12
boot.nix
Normal file
12
boot.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue