2023-02-11 02:27:39 +00:00
|
|
|
|
# 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 + "/hardware/network/broadcom-43xx.nix")
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2024-05-06 03:17:53 +00:00
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=@" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
boot.initrd.luks.devices."cryptextroot".device = "/dev/disk/by-uuid/24d40dee-98f9-4126-8fed-fa6d433cf90d";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/root" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=@root" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@home" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/var/log" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@log" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/btrfs/nvme1" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/9881-231B";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
|
|
|
};
|
2023-02-11 02:27:39 +00:00
|
|
|
|
|
|
|
|
|
fileSystems."/home/asonix/Games" =
|
2024-05-06 03:17:53 +00:00
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=@games" ];
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/Documents" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2024-05-04 21:41:54 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@documents" ];
|
2024-05-04 21:41:54 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/Downloads" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2024-05-04 21:41:54 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@downloads" ];
|
2024-05-04 21:41:54 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/Pictures" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@photos" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-04 21:41:54 +00:00
|
|
|
|
fileSystems."/home/asonix/Videos" =
|
2024-05-06 03:17:53 +00:00
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-04 21:41:54 +00:00
|
|
|
|
options = [ "subvol=@videos" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/Music" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@music" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/InstantUpload" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@instantupload" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/Notes" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@notes" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/home/asonix/Development" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@development" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 03:17:53 +00:00
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/fe8523dd-a04e-4f47-8ba8-f3874e51b06c";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
fsType = "btrfs";
|
2024-05-06 03:17:53 +00:00
|
|
|
|
options = [ "subvol=@nix" ];
|
2023-02-11 02:27:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
2024-05-06 03:17:53 +00:00
|
|
|
|
[ { device = "/dev/disk/by-uuid/bc06c7f7-46e2-4372-aa79-ddb5150f35e8"; }
|
2023-02-11 02:27:39 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# 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.docker0.useDHCP = lib.mkDefault true;
|
2024-05-04 21:41:54 +00:00
|
|
|
|
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
2023-02-11 02:27:39 +00:00
|
|
|
|
# networking.interfaces.wg0.useDHCP = lib.mkDefault true;
|
2024-05-04 21:41:54 +00:00
|
|
|
|
# networking.interfaces.wlp8s0.useDHCP = lib.mkDefault true;
|
2023-02-11 02:27:39 +00:00
|
|
|
|
|
2024-05-04 21:41:54 +00:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2023-02-11 02:27:39 +00:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|