laptop config, flakes config
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user