summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--host/atlas.nix47
-rw-r--r--host/hardware/atlas.nix2
-rw-r--r--host/hephaestus.nix2
3 files changed, 46 insertions, 5 deletions
diff --git a/host/atlas.nix b/host/atlas.nix
index 2be2340..0c318ed 100644
--- a/host/atlas.nix
+++ b/host/atlas.nix
@@ -4,7 +4,6 @@
imports = [
./hardware/atlas.nix
./software/desktop
- ./software/desktop/xterm.nix
];
networking = {
@@ -22,13 +21,48 @@
package = pkgs.linuxPackages.nvidia_x11;
};
+ graphics.extraPackages = [ pkgs.libva ];
+
nvidia-container-toolkit.enable = true;
};
environment.systemPackages = with pkgs; [
nvtopPackages.full
+
+ nvidia-vaapi-driver
];
+ services.displayManager = {
+ autoLogin = {
+ enable = true;
+ user = "common";
+ };
+ sddm = {
+ enable = true;
+ wayland.enable = true;
+ };
+ };
+ programs.niri.enable = true;
+ programs.xwayland.enable = true;
+
+ security.polkit.enable = true;
+
+ xdg.portal = {
+ enable = true;
+ xdgOpenUsePortal = true;
+ extraPortals = with pkgs; [
+ pkgs.xdg-desktop-portal-gnome
+ pkgs.xdg-desktop-portal-gtk
+ ];
+ };
+
+ services.pipewire = {
+ enable = true;
+ alsa.enable = true;
+ pulse.enable = true;
+ wireplumber.enable = true;
+ };
+
virtualisation = {
docker = {
enable = true;
@@ -46,6 +80,13 @@
programs.virt-manager.enable = true;
+ services.sunshine = {
+ enable = true;
+ autoStart = true;
+ capSysAdmin = true;
+ openFirewall = true;
+ };
+
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.100.0.3/24" ];
@@ -79,14 +120,14 @@
openlb-ci = {
executor = "shell";
authenticationTokenConfigFile = "/etc/gitlab-runner.conf";
- limit = 1;
+ limit = 2;
};
};
};
systemd.services.gitlab-runner.serviceConfig = {
CPUWeight = "idle";
- CPUQuota = "800%";
+ CPUQuota = "1600%";
};
users.users.gitlab-runner.isNormalUser = true;
diff --git a/host/hardware/atlas.nix b/host/hardware/atlas.nix
index d10479e..a2f2faf 100644
--- a/host/hardware/atlas.nix
+++ b/host/hardware/atlas.nix
@@ -6,6 +6,8 @@
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
+ kernelParams = [ "nvidia-drm.modeset=1" ];
+
loader = {
systemd-boot.enable = true;
diff --git a/host/hephaestus.nix b/host/hephaestus.nix
index 4baa264..a49c275 100644
--- a/host/hephaestus.nix
+++ b/host/hephaestus.nix
@@ -4,8 +4,6 @@
imports = [
./hardware/hephaestus.nix
./software/desktop
- #./software/desktop/xterm.nix
- #./software/desktop/teensy.nix
];
boot = {