nixos-config/machines/sayuri/configuration.nix

47 lines
1 KiB
Nix
Raw Normal View History

2020-10-17 23:18:22 +02:00
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/cpu/intel.nix
../../modules/gpu/amd.nix
2020-12-05 13:48:06 +01:00
../../modules/libvirt.nix
2020-10-17 23:18:22 +02:00
../../modules/restic.nix
../../modules/ssd.nix
2020-12-05 14:18:57 +01:00
../../modules
2020-10-17 23:18:22 +02:00
../../profiles/dev.nix
2020-11-07 19:17:32 +01:00
../../users/simon
2020-10-17 23:18:22 +02:00
];
2020-12-05 13:48:06 +01:00
sbruder = {
gui = true;
};
2020-10-17 23:18:22 +02:00
boot.loader.grub.device = "/dev/disk/by-id/ata-MTFDDAK256TBN-1AR15ABHA_UFZMQ01ZR50NMM";
boot.initrd.luks.devices = {
root = {
name = "root";
device = "/dev/disk/by-uuid/d7e4d213-8a13-4059-a011-0f68081e86d8";
preLVM = true;
allowDiscards = true;
};
};
fileSystems.data = {
mountPoint = "/data";
device = "/dev/mapper/data";
encrypted = {
label = "data";
enable = true;
blkDev = "/dev/disk/by-uuid/576088d4-9aae-4159-a028-feadb2621a1a";
keyFile = "/mnt-root" + toString ./secrets/data_luks_key;
};
};
networking.hostName = "sayuri";
networking.wireguard.interfaces.wg-home.ips = [ "10.80.0.5/24" ];
}