# 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 = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.initrd.luks.devices = { "root" = { device = "/dev/disk/by-uuid/0ebf98cc-f764-418a-807c-3cbe4e0d5381"; }; "data" = { device = "/dev/disk/by-uuid/2a0c907a-a642-462d-b535-114316af2461"; keyFile = "/dev/mapper/root"; }; "data2" = { device = "/dev/disk/by-uuid/495532fa-92bb-43ac-a17f-0f17f772214b"; keyFile = "/dev/mapper/root"; }; }; fileSystems."/" = { device = "/dev/disk/by-uuid/4990c37e-f18a-498f-a672-3f472adffaa5"; fsType = "ext4"; }; services.snapper.configs = { home = { SUBVOLUME = "/home/marvin"; ALLOW_USERS = [ "marvin" ]; TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; SPACE_LIMIT = "0.5"; SYNC_ACL = "yes"; }; repos = { SUBVOLUME = "/mnt/repos"; ALLOW_USERS = [ "marvin" ]; TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; SPACE_LIMIT = "0.5"; SYNC_ACL = "yes"; }; }; fileSystems."/mnt/data" = { device = "/dev/mapper/data"; fsType = "btrfs"; options = [ "compress=zstd" ]; }; fileSystems."/mnt/repos" = { device = "/dev/mapper/data"; fsType = "btrfs"; options = [ "subvol=repos" "compress=zstd" ]; }; fileSystems."/home/marvin" = { device = "/dev/mapper/data"; fsType = "btrfs"; options = [ "subvol=home" "compress=zstd" ]; }; fileSystems."/mnt/nix" = { device = "/dev/mapper/data"; fsType = "btrfs"; options = [ "subvol=nix" "compress=zstd" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/BA59-4A07"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; swapDevices = [ { device = "/var/lib/swapfile"; size = 16 * 1024; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }