migrate to nixos modules

This commit is contained in:
zuckerberg
2021-04-11 21:43:27 -04:00
parent 7b70b48de4
commit a9c6b46ff5
25 changed files with 544 additions and 459 deletions

View File

@@ -4,23 +4,27 @@
imports =[
./hardware-configuration.nix
../../common/common.nix
../../common/boot/bios.nix
../../common/boot/luks.nix
../../common/server/nginx.nix
];
# cuxhh3ei2djpgf2zdkboceuhaxavgr3ipu3d7a2swx4giy2wosfxspyd.onion
boot.loader.grub.device = "/dev/vda";
networking.hostName = "mitty";
boot.initrd.luks.devices.enc-pv.device = "/dev/disk/by-uuid/6dcf23ea-cb5e-4329-a88b-832209918c40";
nix.flakes.enable = true;
bios = {
enable = true;
device = "/dev/vda";
};
luks = {
enable = true;
device.path = "/dev/disk/by-uuid/6dcf23ea-cb5e-4329-a88b-832209918c40";
};
networking.hostName = "mitty";
networking.wireless.enable = false;
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
security.acme.acceptTerms = true;
security.acme.email = "letsencrypt+5@tar.ninja";
nix.flakes.enable = true;
}