78 lines
2.4 KiB
Nix
78 lines
2.4 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nixos" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||
};
|
||
|
||
fileSystems."/home" =
|
||
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=home" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||
};
|
||
|
||
fileSystems."/var" =
|
||
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=var" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||
};
|
||
|
||
fileSystems."/media/bittorrent" =
|
||
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=bittorrent" "nodatacow" "ssd"
|
||
"uid=${toString config.users.users.alukard.uid}"
|
||
"gid=${toString config.users.groups.users.gid}"
|
||
];
|
||
};
|
||
|
||
fileSystems."/media/libvirt" =
|
||
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=libvirt" "nodatacow" "ssd"
|
||
"uid=${toString config.users.users.alukard.uid}"
|
||
"gid=${toString config.users.groups.users.gid}"
|
||
];
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/948B-11EC";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
swapDevices = [
|
||
{
|
||
device = "/dev/disk/by-partuuid/94696da5-f478-485d-8d92-c6f3093d8010";
|
||
randomEncryption.enable = true;
|
||
}
|
||
];
|
||
|
||
# high-resolution display
|
||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||
networking.hostId = "0a9e92cd";
|
||
boot.initrd.supportedFilesystems = [ "btrfs" ];
|
||
boot.supportedFilesystems = [ "btrfs" ];
|
||
}
|