mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
This commit completely restructures the flake. Hosts are now seperate from profile configuration files in hosts/[system]. Nixos and Darwin configurations will be built when present in the respective folders in hosts/
84 lines
2.6 KiB
Nix
84 lines
2.6 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, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "cryptd" "usbhid" "sd_mod" "r8152" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.initrd.luks.devices."cryptroot" = {
|
||
# improve performance on ssds
|
||
bypassWorkqueues = true;
|
||
preLVM = true;
|
||
};
|
||
|
||
# fileSystems."/" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/3554892c-9d0b-49b2-b74a-8b5ef45569f7";
|
||
# fsType = "btrfs";
|
||
# options = [ "subvol=root" ];
|
||
# };
|
||
|
||
# boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/98b9bf76-ca01-49f5-91ee-1884ae9ce383";
|
||
|
||
# fileSystems."/boot" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/5236-F44A";
|
||
# fsType = "vfat";
|
||
# };
|
||
|
||
# fileSystems."/home" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/3554892c-9d0b-49b2-b74a-8b5ef45569f7";
|
||
# fsType = "btrfs";
|
||
# options = [ "subvol=home" ];
|
||
# };
|
||
|
||
# fileSystems."/nix" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/3554892c-9d0b-49b2-b74a-8b5ef45569f7";
|
||
# fsType = "btrfs";
|
||
# options = [ "subvol=nix" ];
|
||
# };
|
||
|
||
# fileSystems."/persist" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/3554892c-9d0b-49b2-b74a-8b5ef45569f7";
|
||
# fsType = "btrfs";
|
||
# options = [ "subvol=persist" ];
|
||
# };
|
||
|
||
# fileSystems."/swap" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/3554892c-9d0b-49b2-b74a-8b5ef45569f7";
|
||
# fsType = "btrfs";
|
||
# options = [ "subvol=swap" ];
|
||
# };
|
||
|
||
# fileSystems."/var/log" =
|
||
# {
|
||
# device = "/dev/disk/by-uuid/3554892c-9d0b-49b2-b74a-8b5ef45569f7";
|
||
# fsType = "btrfs";
|
||
# options = [ "subvol=log" ];
|
||
# };
|
||
|
||
# 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.enp196s0f3u1c2.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|