laptop config, flakes config (#1)

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2023-08-11 18:59:35 -04:00
parent 18adcedbbf
commit 72c822cd29
19 changed files with 2134 additions and 97 deletions
+30
View File
@@ -0,0 +1,30 @@
{ pkgs, lib, username, ... }:
{
imports = [ ./hardware-configuration.nix ./services.nix ];
networking.hostName = "desktop";
networking.networkmanager.enable = true;
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ ];
networking.firewall.allowedUDPPorts = [ ];
hardware.bluetooth.enable = false;
boot.loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
boot.initrd = {
secrets."/crypto_keyfile.bin" = null;
luks.devices."luks-3d0f669d-7bb4-49e4-abe2-03872cc1d507" = {
device = "/dev/disk/by-uuid/3d0f669d-7bb4-49e4-abe2-03872cc1d507";
keyFile = "/crypto_keyfile.bin";
};
};
}