100 lines
3 KiB
Nix
100 lines
3 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")
|
||
];
|
||
|
||
|
||
# Use the GRUB 2 boot loader.
|
||
boot = {
|
||
initrd = {
|
||
availableKernelModules = [
|
||
"ahci"
|
||
"ehci_pci"
|
||
"sd_mod"
|
||
"sdhci_pci"
|
||
"usb_storage"
|
||
"xhci_pci"
|
||
];
|
||
systemd.enable = true;
|
||
kernelModules = [ "usb_storage" ];
|
||
luks.devices = {
|
||
"aluminium-crypt" = {
|
||
#device = "/dev/disk/by-uuid/c3d64431-4249-478c-9363-38498021a5f3";
|
||
device = "/dev/disk/by-id/ata-TS128GMSA340_20140320B337620155FF-part2";
|
||
allowDiscards = true;
|
||
keyFileSize = 4096;
|
||
keyFile = "/dev/disk/by-id/usb-_Patriot_Memory_070158BB3A2A0C73-0:0";
|
||
};
|
||
};
|
||
};
|
||
loader.grub = {
|
||
enable = true;
|
||
device = "/dev/sda";
|
||
extraConfig = ''
|
||
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
|
||
terminal_input --append serial
|
||
terminal_output --append serial
|
||
'';
|
||
};
|
||
kernelModules = [
|
||
"kvm-amd"
|
||
];
|
||
kernelParams = [
|
||
"console=ttyS0,115200"
|
||
"console=tty1"
|
||
];
|
||
};
|
||
# boot.loader.grub.efiSupport = true;
|
||
# boot.loader.grub.efiInstallAsRemovable = true;
|
||
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||
# Define on which hard drive you want to install Grub.
|
||
|
||
jalr = {
|
||
bootloader = "grub2";
|
||
};
|
||
|
||
fileSystems = {
|
||
"/" = {
|
||
device = "/dev/disk/by-uuid/2c5b0de0-c55f-4327-bd60-1aee6c8ae234";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=root" ];
|
||
};
|
||
"/proc" = {
|
||
device = "/proc";
|
||
options = [ "nosuid" "noexec" "nodev" "hidepid=2" ];
|
||
};
|
||
"/home" = {
|
||
device = "/dev/disk/by-uuid/2c5b0de0-c55f-4327-bd60-1aee6c8ae234";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=home" "nodev" "nosuid" ];
|
||
};
|
||
"/nix" = {
|
||
device = "/dev/disk/by-uuid/2c5b0de0-c55f-4327-bd60-1aee6c8ae234";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" "nodev" ];
|
||
};
|
||
"/boot" = {
|
||
device = "/dev/disk/by-uuid/695df89b-948d-4659-8f57-335e8b25a8c5";
|
||
fsType = "ext2";
|
||
options = [ "nodev" "nosuid" "noexec" ];
|
||
};
|
||
};
|
||
swapDevices = [ ];
|
||
|
||
# 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.enp1s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
||
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|