summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/atlas.nix33
-rw-r--r--host/hardware/atlas.nix6
2 files changed, 32 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" ];
diff --git a/host/hardware/atlas.nix b/host/hardware/atlas.nix
index 61bca06..d10479e 100644
--- a/host/hardware/atlas.nix
+++ b/host/hardware/atlas.nix
@@ -18,9 +18,15 @@
fsType = "ext4";
};
+ fileSystems."/data" = {
+ device = "/dev/disk/by-uuid/02ff6829-07d1-4709-a4ba-6703a214bed4";
+ fsType = "ext4";
+ };
+
boot.initrd.luks.devices = {
"luks-f6c3a1a8-bc09-4fcd-a979-4fe82dc4dc71".device = "/dev/disk/by-uuid/f6c3a1a8-bc09-4fcd-a979-4fe82dc4dc71";
"luks-49b6b8ab-1d8f-43d3-ba58-d548316f197a".device = "/dev/disk/by-uuid/49b6b8ab-1d8f-43d3-ba58-d548316f197a";
+ "data".device = "/dev/disk/by-uuid/0b324bed-660b-4b9c-b2a3-133ce2531dc7";
};
fileSystems."/boot" = {