mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 13:06:11 +01:00
41 lines
894 B
Nix
41 lines
894 B
Nix
|
inputs:
|
||
|
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, rlib }:
|
||
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
boot = {
|
||
|
initrd.availableKernelModules = [
|
||
|
"xhci_pci"
|
||
|
"ahci"
|
||
|
"usb_storage"
|
||
|
"sr_mod"
|
||
|
"rtsx_pci_sdmmc"
|
||
|
];
|
||
|
initrd.kernelModules = [ ];
|
||
|
kernelModules = [ "kvm-intel" ];
|
||
|
extraModulePackages = [ ];
|
||
|
};
|
||
|
|
||
|
hardware.enableRedistributableFirmware = true;
|
||
|
|
||
|
powerManagement.cpuFreqGovernor = pkgs.lib.mkDefault "powersave";
|
||
|
|
||
|
fileSystems = {
|
||
|
"/" = {
|
||
|
device = "/dev/disk/by-uuid/bfdcd9bc-c5bb-424a-a110-20fab4b97f6d";
|
||
|
fsType = "btrfs";
|
||
|
options = [ "subvol=nixos" ];
|
||
|
};
|
||
|
|
||
|
"/btrfs" = {
|
||
|
device = "/dev/disk/by-uuid/bfdcd9bc-c5bb-424a-a110-20fab4b97f6d";
|
||
|
fsType = "btrfs";
|
||
|
options = [ "subvol=/" ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
swapDevices = [
|
||
|
{ device = "/dev/disk/by-uuid/9dca362e-43be-4f27-81bc-6bb7a244a7ae"; }
|
||
|
];
|
||
|
}
|