summaryrefslogtreecommitdiff
path: root/installer/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-08-08 21:48:11 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2023-08-08 21:48:11 +0200
commit6bc9ae25153a292b5e34ec0b891d83c98b1d5e8a (patch)
tree4497d93ad2d46c04e311bf87755fbf6c42b56c7f /installer/default.nix
parentdf4f7efea1570050ba3f1828e41419304606e212 (diff)
downloadnixos-6bc9ae25153a292b5e34ec0b891d83c98b1d5e8a.tar
nixos-6bc9ae25153a292b5e34ec0b891d83c98b1d5e8a.tar.gz
nixos-6bc9ae25153a292b5e34ec0b891d83c98b1d5e8a.tar.bz2
nixos-6bc9ae25153a292b5e34ec0b891d83c98b1d5e8a.tar.xz
nixos-6bc9ae25153a292b5e34ec0b891d83c98b1d5e8a.zip
...
Diffstat (limited to 'installer/default.nix')
-rw-r--r--installer/default.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/installer/default.nix b/installer/default.nix
index a0c84182..9043d59b 100644
--- a/installer/default.nix
+++ b/installer/default.nix
@@ -26,11 +26,28 @@
26 }; 26 };
27 27
28 environment.systemPackages = with pkgs; [ 28 environment.systemPackages = with pkgs; [
29 nvme-cli iotop mosh 29 nvme-cli iotop pciutils bottom
30
31 cudatoolkit
30 ]; 32 ];
31 33
32 zramSwap.enable = true; 34 zramSwap.enable = true;
33 35
36 users.defaultUserShell = pkgs.zsh;
37 programs = {
38 mosh.enable = true;
39 tmux.enable = true;
40 zsh.enable = true;
41 };
42
43 # nvidia
44 services.xserver.videoDrivers = [ "nvidia" ];
45 systemd.services.nvidia-control-devices = {
46 wantedBy = [ "multi-user.target" ];
47 serviceConfig.ExecStart = "${pkgs.linuxPackages.nvidia_x11.bin}/bin/nvidia-smi";
48 };
49 nixpkgs.config.allowUnfree = true;
50
34 system.stateVersion = config.system.nixos.release; # No state in installer 51 system.stateVersion = config.system.nixos.release; # No state in installer
35 }; 52 };
36} 53}