35 lines
874 B
Nix
35 lines
874 B
Nix
{ pkgs, lib, username, ... }:
|
|
|
|
{
|
|
imports = [ ./hardware-configuration.nix ./services.nix ];
|
|
|
|
networking.hostName = "laptop";
|
|
networking.networkmanager.enable = true;
|
|
|
|
networking.firewall.enable = true;
|
|
networking.firewall.allowedTCPPorts = [ ];
|
|
networking.firewall.allowedUDPPorts = [ ];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot/efi";
|
|
};
|
|
};
|
|
|
|
boot.initrd = {
|
|
secrets."/crypto_keyfile.bin" = null;
|
|
luks.devices."luks-ff01c3e8-9da4-42d8-8be9-e92713f1bebf" = {
|
|
device = "/dev/disk/by-uuid/dff01c3e8-9da4-42d8-8be9-e92713f1bebf";
|
|
keyFile = "/crypto_keyfile.bin";
|
|
};
|
|
luks.devices."luks-7e6d719a-de54-44fe-a70b-6077a8a78003" = {
|
|
device = "/dev/disk/by-uuid/7e6d719a-de54-44fe-a70b-6077a8a78003";
|
|
keyFile = "/root/swap.key";
|
|
};
|
|
};
|
|
}
|