nix machine / user configurations
at terra 1.7 kB view raw
1{ 2 tlib, 3 pkgs, 4 inputs, 5 ... 6}: 7{ 8 imports = 9 with inputs; 10 [ 11 "${facter}/modules/nixos/facter.nix" 12 "${disko}/module.nix" 13 "${home}/nixos" 14 "${nixos-hardware}/common/pc" 15 "${nixos-hardware}/common/pc/ssd" 16 "${nixos-hardware}/common/cpu/amd" 17 "${nixos-hardware}/common/cpu/amd/pstate.nix" 18 "${nixos-hardware}/common/cpu/amd/zenpower.nix" 19 "${nixos-hardware}/common/gpu/amd" 20 ../../users/root 21 ../../users/mayer 22 ../../modules 23 ../../locale/default.nix 24 ] 25 ++ (tlib.importFolder (toString ./modules)); 26 27 facter.reportPath = ./facter.json; 28 29 security = { 30 pam.loginLimits = [ 31 { 32 domain = "*"; 33 type = "soft"; 34 item = "nofile"; 35 value = "16777216"; 36 } 37 { 38 domain = "*"; 39 type = "hard"; 40 item = "nofile"; 41 value = "16777216"; 42 } 43 ]; 44 }; 45 46 fonts = { 47 enableDefaultPackages = true; 48 packages = with pkgs; [ 49 noto-fonts 50 noto-fonts-cjk-serif 51 noto-fonts-cjk-sans 52 noto-fonts-color-emoji 53 font-awesome 54 source-han-serif 55 source-han-sans 56 comic-mono 57 comic-relief 58 ]; 59 fontconfig.defaultFonts = { 60 serif = [ 61 "Comic Relief" 62 "Noto Serif" 63 "Source Han Serif" 64 ]; 65 sansSerif = [ 66 "Comic Relief" 67 "Noto Sans" 68 "Source Han Sans" 69 ]; 70 monospace = [ "Comic Mono" ]; 71 }; 72 # fontconfig.hinting.style = "full"; 73 # fontconfig.subpixel.rgba = "rgb"; 74 }; 75 76 services.earlyoom.enable = true; 77 78 hardware.enableRedistributableFirmware = true; 79 80 system.stateVersion = "25.05"; 81}