mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
58 lines
2.2 KiB
Nix
58 lines
2.2 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 = [ "xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/f87e6b3c-12f2-4fda-92b3-06b07bdad58f";
|
||
fsType = "btrfs";
|
||
# Manually enable compression
|
||
# https://nixos.wiki/wiki/Btrfs#Compression
|
||
options = [ "subvol=@" "compress=zstd" ];
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-ba8b94d0-7f70-496a-ad87-eadc5e852aad".device = "/dev/disk/by-uuid/ba8b94d0-7f70-496a-ad87-eadc5e852aad";
|
||
|
||
fileSystems."/swap" =
|
||
{ device = "/dev/disk/by-uuid/f87e6b3c-12f2-4fda-92b3-06b07bdad58f";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@swap" ];
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/9034-800C";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/mnt/512gb" =
|
||
{ device = "/dev/disk/by-uuid/c27f48d4-b39c-46a4-a27a-71aa6e4113e3";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."512gb".device = "/dev/disk/by-uuid/03d4ac28-2c81-463e-b615-fb623d40b6fa";
|
||
|
||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
||
|
||
# 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.enp0s20f0u1u2.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|