2022-01-18 10:27:45 +00:00
|
|
|
{ modulesPath, ... }: {
|
2022-01-18 10:23:54 +00:00
|
|
|
networking.hostName = "nutty-noon";
|
|
|
|
networking.hostId = "e77e1829";
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
./systemd-boot.nix
|
2022-01-18 13:55:16 +00:00
|
|
|
./desktop.nix
|
2022-01-18 10:23:54 +00:00
|
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
2022-01-18 11:05:39 +00:00
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2022-01-18 10:23:54 +00:00
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
boot.zfs.devNodes = "/dev/";
|
|
|
|
|
|
|
|
services.zfs.trim.enable = true;
|
|
|
|
services.zfs.autoScrub.enable = true;
|
|
|
|
services.zfs.autoScrub.pools = [ "ssd" "hdd" ];
|
|
|
|
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
ssd = {
|
|
|
|
device = "/dev/disk/by-partuuid/53773b73-fb8a-4de8-ac58-d9d8ff1be430";
|
2022-01-18 19:13:49 +00:00
|
|
|
allowDiscards = true;
|
2022-01-18 10:23:54 +00:00
|
|
|
};
|
|
|
|
hdd = {
|
|
|
|
device = "/dev/disk/by-partuuid/d4c6a94f-2ae9-e446-9613-2596c564078c";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-01-18 10:31:22 +00:00
|
|
|
fileSystems."/" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos";
|
2022-01-18 10:31:22 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/nix" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos/nix";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/etc" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos/etc";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos/var";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos/var/lib";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/log" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos/var/log";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/spool" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/nixos/var/spool";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/userdata/home";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/root" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/userdata/home/root";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home/tank" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "ssd/userdata/home/tank";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home/darkkirb/hdd" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "hdd/userdata/home/darkkirb/hdd";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/root/hdd" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "hdd/userdata/home/root/hdd";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2022-01-19 08:28:39 +00:00
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/CA0B-E049";
|
2022-01-18 10:23:54 +00:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-partuuid/110ae65d-8ea1-214d-bd7b-a6f3e1b5dc3a";
|
|
|
|
randomEncryption = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.interfaces.enp34s0.useDHCP = true;
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
2022-01-18 10:33:32 +00:00
|
|
|
|
|
|
|
networking.wireguard.interfaces."wg0".ips = [ "fd0d:a262:1fa6:e621:47e6:24d4:2acb:9437/64" ];
|
|
|
|
home-manager.users.darkkirb = import ./home-manager/darkkirb.nix true;
|
2022-01-19 08:28:39 +00:00
|
|
|
networking.nameservers = [ "192.168.2.1" ];
|
2022-01-18 11:05:39 +00:00
|
|
|
|
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
2022-01-18 13:55:16 +00:00
|
|
|
}
|