diff options
author | Adrian Kummerlaender | 2025-04-16 14:22:15 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2025-04-16 14:22:34 +0200 |
commit | 71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b (patch) | |
tree | 39b7d7b4b70c5bedc6c9b2731b2a53285ad0d807 /host/atlas.nix | |
parent | fe6b881d8bc688e13c5ae62b4d88c680ee8b7036 (diff) | |
download | nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.tar nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.tar.gz nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.tar.bz2 nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.tar.lz nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.tar.xz nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.tar.zst nixos_system-71b7601f696a7b569e2aa1e3a7f3a7dc2b7a794b.zip |
Diffstat (limited to 'host/atlas.nix')
-rw-r--r-- | host/atlas.nix | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/host/atlas.nix b/host/atlas.nix index 53a5201..2be2340 100644 --- a/host/atlas.nix +++ b/host/atlas.nix @@ -16,21 +16,35 @@ videoDrivers = [ "nvidia" ]; }; - hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11; + hardware = { + nvidia = { + open = true; + package = pkgs.linuxPackages.nvidia_x11; + }; + + nvidia-container-toolkit.enable = true; + }; environment.systemPackages = with pkgs; [ nvtopPackages.full ]; - virtualisation.docker = { - enable = true; - enableNvidia = true; - autoPrune = { + virtualisation = { + docker = { enable = true; - dates = "daily"; + autoPrune = { + enable = true; + dates = "daily"; + }; }; + + libvirtd.enable = true; }; + users.users.common.extraGroups = [ "docker" ]; + users.groups.libvirtd.members = [ "common" ]; + + programs.virt-manager.enable = true; networking.wireguard.interfaces = { wg0 = { @@ -51,7 +65,7 @@ networking.firewall = { enable = true; - interfaces."wg0".allowedTCPPorts = [ 5900 8080 8888 ]; + interfaces."wg0".allowedTCPPorts = [ 5900 8000 8080 8888 ]; }; services.printing = { @@ -70,6 +84,11 @@ }; }; + systemd.services.gitlab-runner.serviceConfig = { + CPUWeight = "idle"; + CPUQuota = "800%"; + }; + users.users.gitlab-runner.isNormalUser = true; nix.settings.allowed-users = [ "gitlab-runner" ]; |