summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-02 21:21:46 -0400
committertriethyl <triethylammonium@pm.me>2025-09-02 21:21:46 -0400
commitefb1cda6d789e81cce0fafd753fb4d96eed6f9b7 (patch)
treeca816fc9817e8c94d2c247ebb03357c867298621 /nixos
parenta6f9533790b9bfb73f1e531fcef6303642e38983 (diff)
homelab: working on homelab
Diffstat (limited to 'nixos')
-rw-r--r--nixos/features/gui/apps/steam.nix6
-rw-r--r--nixos/features/server/cloud/syncthing.nix1
-rw-r--r--nixos/features/server/development/git-server.nix1
-rw-r--r--nixos/features/server/gaming/minecraft.nix1
-rw-r--r--nixos/features/server/media/calibre.nix1
-rw-r--r--nixos/features/server/media/invidious.nix1
-rw-r--r--nixos/modules/homelab/cloud/default.nix6
-rw-r--r--nixos/modules/homelab/cloud/syncthing.nix35
-rw-r--r--nixos/modules/homelab/core/default.nix6
-rw-r--r--nixos/modules/homelab/core/ssh.nix (renamed from nixos/features/server/core/ssh.nix)10
-rw-r--r--nixos/systems/nzxt-desktop/system.nix2
11 files changed, 56 insertions, 14 deletions
diff --git a/nixos/features/gui/apps/steam.nix b/nixos/features/gui/apps/steam.nix
index 046b814..d63b3a1 100644
--- a/nixos/features/gui/apps/steam.nix
+++ b/nixos/features/gui/apps/steam.nix
@@ -20,7 +20,11 @@ in {
};
hardware.steam-hardware.enable = true;
programs.gamemode.enable = true;
- environment.systemPackages = [pkgs.mangohud];
+ environment.systemPackages = with pkgs; [
+ mangohud
+ winetricks
+ wine-wayland
+ ];
# Steam Launch Options
# Add this to 3D games:
diff --git a/nixos/features/server/cloud/syncthing.nix b/nixos/features/server/cloud/syncthing.nix
deleted file mode 100644
index 0967ef4..0000000
--- a/nixos/features/server/cloud/syncthing.nix
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/nixos/features/server/development/git-server.nix b/nixos/features/server/development/git-server.nix
deleted file mode 100644
index 0967ef4..0000000
--- a/nixos/features/server/development/git-server.nix
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/nixos/features/server/gaming/minecraft.nix b/nixos/features/server/gaming/minecraft.nix
deleted file mode 100644
index 0967ef4..0000000
--- a/nixos/features/server/gaming/minecraft.nix
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/nixos/features/server/media/calibre.nix b/nixos/features/server/media/calibre.nix
deleted file mode 100644
index 0967ef4..0000000
--- a/nixos/features/server/media/calibre.nix
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/nixos/features/server/media/invidious.nix b/nixos/features/server/media/invidious.nix
deleted file mode 100644
index 0967ef4..0000000
--- a/nixos/features/server/media/invidious.nix
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/nixos/modules/homelab/cloud/default.nix b/nixos/modules/homelab/cloud/default.nix
index d4ee9df..24b067d 100644
--- a/nixos/modules/homelab/cloud/default.nix
+++ b/nixos/modules/homelab/cloud/default.nix
@@ -1 +1,5 @@
-{config, pkgs, lib, ...}: {}
+{...}: {
+ imports = [
+ ./syncthing.nix
+ ];
+}
diff --git a/nixos/modules/homelab/cloud/syncthing.nix b/nixos/modules/homelab/cloud/syncthing.nix
index 993cf42..00328f7 100644
--- a/nixos/modules/homelab/cloud/syncthing.nix
+++ b/nixos/modules/homelab/cloud/syncthing.nix
@@ -3,6 +3,39 @@
in {
options.homelab.cloud.syncthing = {
enable = lib.mkEnableOption "syncthing";
-
+ user = lib.mkOption {
+ type = lib.types.str;
+ description = "The username of syncthing's user";
+ };
+ };
+ config = lib.mkIf cfg.enable {
+ services.syncthing = {
+ enable = true;
+ user = cfg.user;
+ dataDir = "/home/${cfg.user}/Sync";
+ configDir = "/home/${cfg.user}/.config/syncthing";
+ overrideDevices = true;
+ overrideFolders = true;
+ settings = {
+ devices = {
+ "ideapad-laptop" = {
+ id = "62SPMAK-NOHX3QT-MVSOS7U-UON6YPH-HXXNFXO-PRSAJ2X-GYXFWJO-6LARPQL";
+ };
+ "nzxt-desktop" = {
+ id = "2TPKPXD-LO7OL7V-GP5HOUM-2P5SUEQ-XST4UYJ-S2Z56PP-IM66IIT-GLUNLAX";
+ };
+ "samsung-tablet" = {
+ id = "ZKL25GJ-TKM2E6Y-VQSBAW5-TVG7RWM-RRAUEVA-ZOJZNCM-F3ARZUU-TPK7CA6";
+ };
+ };
+ folders = {
+ "Main" = {
+ path = "/home/${cfg.user}/Sync";
+ devices = [ "ideapad-laptop" "nzxt-desktop" "samsung-tablet" ];
+ };
+ };
+ };
+ };
+ environment.systemPackages = [ pkgs.syncthing ];
};
}
diff --git a/nixos/modules/homelab/core/default.nix b/nixos/modules/homelab/core/default.nix
index d4ee9df..f2202aa 100644
--- a/nixos/modules/homelab/core/default.nix
+++ b/nixos/modules/homelab/core/default.nix
@@ -1 +1,5 @@
-{config, pkgs, lib, ...}: {}
+{...}: {
+ imports = [
+ ./ssh.nix
+ ];
+}
diff --git a/nixos/features/server/core/ssh.nix b/nixos/modules/homelab/core/ssh.nix
index 16fec48..1b4b559 100644
--- a/nixos/features/server/core/ssh.nix
+++ b/nixos/modules/homelab/core/ssh.nix
@@ -1,7 +1,9 @@
-{ config, lib, ... }: let
- cfg = config.features.server.ssh;
+{config, lib, ...}: let
+ cfg = config.homelab.core.ssh;
in {
- options.features.server.ssh.enable = lib.mkEnableOption "sshd";
+ options.homelab.core.ssh = {
+ enable = lib.mkEnableOption "ssh";
+ };
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
@@ -11,5 +13,5 @@ in {
PasswordAuthentication = false;
};
};
- };
+ };
}
diff --git a/nixos/systems/nzxt-desktop/system.nix b/nixos/systems/nzxt-desktop/system.nix
index db42aa1..3a6932c 100644
--- a/nixos/systems/nzxt-desktop/system.nix
+++ b/nixos/systems/nzxt-desktop/system.nix
@@ -8,7 +8,7 @@
stateVersion = "23.11";
};
- age.secrets.culsans-user-password.file = ../../secrets/user-passwords/nzxt-desktop/culsans.age;
+ age.secrets.culsans-user-password.file = ../../../secrets/user-passwords/nzxt-desktop/culsans.age;
users.users."culsans" = {
hashedPasswordFile = config.age.secrets.culsans-user-password.path;