2021-10-03 01:40:40 +02:00
|
|
|
|
{ suites, modulesPath, pkgs, ... }@inputs:
|
2021-04-06 20:59:09 +02:00
|
|
|
|
{
|
2021-04-08 12:35:13 +02:00
|
|
|
|
imports = suites.desktop ++ [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2021-04-06 20:59:09 +02:00
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
2021-10-03 01:40:40 +02:00
|
|
|
|
system.stateVersion = "21.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
version = 2;
|
|
|
|
|
device = "nodev";
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
enableCryptodisk = true;
|
|
|
|
|
gfxmodeEfi = "1024x768";
|
|
|
|
|
};
|
|
|
|
|
boot.loader.efi.efiSysMountPoint = "/boot";
|
2021-04-06 20:59:09 +02:00
|
|
|
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
2021-04-08 12:35:13 +02:00
|
|
|
|
boot.kernelParams = [ "boot.shell_on_fail=1" "shell_on_fail=1" "shell_on_fail" "boot.shell_on_fail" ];
|
2021-04-06 20:59:09 +02:00
|
|
|
|
networking.hostName = "tesco"; # Define your hostname.
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
networking.interfaces.enp6s0.useDHCP = true;
|
2021-06-12 10:38:09 +02:00
|
|
|
|
networking.networkmanager.enable = true;
|
2021-04-06 20:59:09 +02:00
|
|
|
|
|
|
|
|
|
|
2022-04-01 11:47:11 +02:00
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "bcache" "nvme" ];
|
2021-10-03 01:40:40 +02:00
|
|
|
|
|
2021-04-06 20:59:09 +02:00
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2021-12-30 21:06:29 +01:00
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
|
hdd-root = {
|
|
|
|
|
device = "/dev/disk/by-uuid/ed9e294f-514f-48c1-ad88-1a4b5b65da37";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
};
|
|
|
|
|
ssd-root = {
|
|
|
|
|
device = "/dev/disk/by-uuid/9e30b5f5-9485-45e9-8ee5-129ff17a2562";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
};
|
2022-04-01 11:47:11 +02:00
|
|
|
|
m2-root = {
|
|
|
|
|
device = "/dev/disk/by-uuid/9cb8d4e5-f501-48c9-b953-0a2314f207e9";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
};
|
2021-12-30 21:06:29 +01:00
|
|
|
|
};
|
2021-10-03 01:40:40 +02:00
|
|
|
|
|
2021-04-06 20:59:09 +02:00
|
|
|
|
fileSystems."/" =
|
2021-12-30 21:06:29 +01:00
|
|
|
|
{ device = "/dev/bcache0";
|
|
|
|
|
fsType = "ext4";
|
2021-04-06 20:59:09 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2021-12-30 21:06:29 +01:00
|
|
|
|
{ device = "/dev/disk/by-label/BOOT";
|
2021-04-06 20:59:09 +02:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
2021-12-30 21:06:29 +01:00
|
|
|
|
[ { device = "/dev/disk/by-label/ssd-swap"; }
|
2021-10-03 01:40:40 +02:00
|
|
|
|
];
|
2021-04-06 20:59:09 +02:00
|
|
|
|
|
|
|
|
|
}
|