Files
nixos-config/hosts/fenrir-nixos/configuration.nix
T

29 lines
678 B
Nix
Executable File

{ config, pkgs, ... }:
{
networking.hostName = "fenrir-nixos";
imports = [ ../../nixos/custom.nix ./hardware-configuration.nix ];
fileSystems."/".options = [ "ssd" "noatime" "compress=zstd" ];
swapDevices = [{
device = "/swapfile";
size = 4 * 1024;
randomEncryption.enable = true;
}];
services.auto-cpufreq = { enable = true; }; # !!!
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "modesetting" "nvidia" ];
hardware.nvidia = {
open = true;
modesetting.enable = true;
};
environment.systemPackages = with pkgs; [
efibootmgr
(writeShellScriptBin "win" (builtins.readFile ./load_into_windows.sh))
];
}