temp commit lol

This commit is contained in:
mjallen18
2024-06-29 11:34:17 -05:00
parent c3767fd666
commit e74020a8ce
28 changed files with 293 additions and 127 deletions

60
flake.lock generated
View File

@@ -11,11 +11,11 @@
"yafas": "yafas" "yafas": "yafas"
}, },
"locked": { "locked": {
"lastModified": 1718993733, "lastModified": 1719337945,
"narHash": "sha256-Ww0NQoZ/kUVMuV/alkkj1mv2rU5OBHvAu+qhAETXfc4=", "narHash": "sha256-huUuEiHzpqex8wiREzXpi8nose3zSFQebOH+eFCIvRQ=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "3e5fc61611c1ce8f84d4ea326799f7c773723652", "rev": "ea7cff23f3f25e1c6958f29f9aa623234a55d52c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -227,11 +227,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1718788307, "lastModified": 1719180626,
"narHash": "sha256-SqiOz0sljM0GjyQEVinPXQxaGcbOXw5OgpCWGPgh/vo=", "narHash": "sha256-vZAzm5KQpR6RGple1dzmSJw5kPivES2heCFM+ZWkt0I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d7830d05421d0ced83a0f007900898bdcaf2a2ca", "rev": "6b1f90a8ff92e81638ae6eb48cd62349c3e387bb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -268,11 +268,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719037157, "lastModified": 1719438532,
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=", "narHash": "sha256-/Vmso2ZMoFE3M7d1MRsQ2K5sR8CVKnrM6t1ys9Xjpz4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511", "rev": "1a4f12ae0bda877ec4099b429cf439aad897d7e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -283,11 +283,11 @@
}, },
"impermanence": { "impermanence": {
"locked": { "locked": {
"lastModified": 1719067779, "lastModified": 1719091691,
"narHash": "sha256-c8UPWKErzLtukeZ2xdyeZZTkEtg7cP8ApvMgYvjT1ss=", "narHash": "sha256-AxaLX5cBEcGtE02PeGsfscSb/fWMnyS7zMWBXQWDKbE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "impermanence", "repo": "impermanence",
"rev": "363b3e8622e964a96db90ab6430ddcc338212e79", "rev": "23c1f06316b67cb5dabdfe2973da3785cfe9c34a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -305,11 +305,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1718977552, "lastModified": 1719292813,
"narHash": "sha256-kyilmbeCDdHFxup6L0UKvxyZ9T2lhy2vRNv0yeqh5j4=", "narHash": "sha256-6w/buoRKo4ijH9O4D/0KjNtiWjtrJebuV7djTEEa0+k=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "a7a9774538612c75324f785ab1300e67abc039d3", "rev": "d6222e7818aa5528f8369afe84bc53556a57c329",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -393,11 +393,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1718662658, "lastModified": 1719128254,
"narHash": "sha256-AKG7BsqtVWDlefgzyKz7vjaKTLi4+bmTSBhowbQoZtM=", "narHash": "sha256-I7jMpq0CAOZA/i70+HDQO/ulLttyQu/K70cSESiMX7A=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "29b3096a6e283d7e6779187244cb2a3942239fdf", "rev": "50581970f37f06a4719001735828519925ef8310",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -486,11 +486,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1719069430, "lastModified": 1719487696,
"narHash": "sha256-d9KzCJv3UG6nX9Aur5OSEf4Uj+ywuxojhiCiRKYVzXA=", "narHash": "sha256-pCsl9qFCuIuhIfGH03CiBOsy1LNwITC6VMb6/5tz+Qc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "e8232c132a95ddc62df9d404120ad4ff53862910", "rev": "14aadcba1a26c8c142453839f888afd0db8b2041",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -502,11 +502,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1718895438, "lastModified": 1719075281,
"narHash": "sha256-k3JqJrkdoYwE3fHE6xGDY676AYmyh4U2Zw+0Bwe5DLU=", "narHash": "sha256-CyyxvOwFf12I91PBWz43iGT1kjsf5oi6ax7CrvaMyAo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d603719ec6e294f034936c0d0dc06f689d91b6c3", "rev": "a71e967ef3694799d0c418c98332f7ff4cc5f6af",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -534,11 +534,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1718835956, "lastModified": 1719426051,
"narHash": "sha256-wM9v2yIxClRYsGHut5vHICZTK7xdrUGfrLkXvSuv6s4=", "narHash": "sha256-yJL9VYQhaRM7xs0M867ZFxwaONB9T2Q4LnGo1WovuR4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "dd457de7e08c6d06789b1f5b88fc9327f4d96309", "rev": "89c49874fb15f4124bf71ca5f42a04f2ee5825fd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -550,11 +550,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1718895438, "lastModified": 1719254875,
"narHash": "sha256-k3JqJrkdoYwE3fHE6xGDY676AYmyh4U2Zw+0Bwe5DLU=", "narHash": "sha256-ECni+IkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d603719ec6e294f034936c0d0dc06f689d91b6c3", "rev": "2893f56de08021cffd9b6b6dfc70fd9ccd51eb60",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -91,14 +91,14 @@
}; };
# NAS # NAS
"jallen-nas" = nixpkgs-stable.lib.nixosSystem { "jallen-nas" = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit inputs outputs; inherit inputs outputs;
}; };
modules = [ modules = [
./hosts/nas/configuration.nix ./hosts/nas/configuration.nix
home-manager-stable.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View File

@@ -98,6 +98,14 @@ in
# Security config # Security config
security = { security = {
wrappers."mount.nfs" = {
setuid = true;
owner = "root";
group = "root";
source = "${pkgs.nfs-utils.out}/bin/mount.nfs";
};
rtkit.enable = lib.mkDefault true; rtkit.enable = lib.mkDefault true;
# configure sudo # configure sudo

View File

@@ -46,13 +46,6 @@ in
apps.discover-wrapped.enable = plasma; apps.discover-wrapped.enable = plasma;
# chaotic = {
# nyx.cache.enable = true;
# nyx.overlay.enable = true;
# mesa-git.enable = true;
# hdr.enable = false;
# };
# Configure bootloader with lanzaboot and secureboot # Configure bootloader with lanzaboot and secureboot
boot = { boot = {
loader = { loader = {
@@ -107,8 +100,6 @@ in
defaultSession = if plasma then "plasma" else "gnome"; defaultSession = if plasma then "plasma" else "gnome";
}; };
# displayManager.gdm.enable = gnome;
# desktopManager.gnome.enable = gnome;
desktopManager.plasma6.enable = plasma; desktopManager.plasma6.enable = plasma;
# enable auto discovery of printers # enable auto discovery of printers
@@ -174,8 +165,6 @@ in
borgbackup borgbackup
clinfo clinfo
efibootmgr efibootmgr
# fishPlugins.bass
# fishPlugins.sponge
gparted gparted
kmod kmod
lact lact
@@ -192,6 +181,7 @@ in
# native wayland support (unstable) # native wayland support (unstable)
wineWowPackages.waylandFull wineWowPackages.waylandFull
]; ];
sessionVariables = { sessionVariables = {
STEAM_FORCE_DESKTOPUI_SCALING = "1"; STEAM_FORCE_DESKTOPUI_SCALING = "1";
}; };

View File

@@ -57,6 +57,7 @@
# gamescope # using chaotic git version # gamescope # using chaotic git version
# gamescope-wsi # using chaotic git version # gamescope-wsi # using chaotic git version
deadnix deadnix
fastfetch
firefox firefox
freerdp freerdp
gamescope_git gamescope_git
@@ -72,7 +73,6 @@
lutris lutris
mangohud mangohud
morph morph
neofetch
nixfmt-rfc-style nixfmt-rfc-style
orca-slicer orca-slicer
papirus-icon-theme papirus-icon-theme

View File

@@ -91,34 +91,34 @@ in
enable = true; enable = true;
hostsAllow = "10.0.1."; hostsAllow = "10.0.1.";
enableTimeMachine = true; enableTimeMachine = true;
timeMachinePath = "/home/admin/mainpool/TimeMachine"; timeMachinePath = "/media/nas/main/timemachine";
shares = { shares = {
"3d_printer" = { "3d_printer" = {
public = true; public = true;
sharePath = "/home/admin/mainpool/3d_printer"; sharePath = "/media/nas/main/3d_printer";
}; };
Backup = { Backup = {
public = true; public = true;
sharePath = "/home/admin/mainpool/Backup"; sharePath = "/media/nas/main/backup";
}; };
Documents = { Documents = {
public = true; public = true;
sharePath = "/home/admin/mainpool/Documents"; sharePath = "/media/nas/main/documents";
}; };
isos = { isos = {
public = true; public = true;
sharePath = "/home/admin/mainpool/isos"; sharePath = "/media/nas/main/isos";
}; };
TimeMachine = { TimeMachine = {
public = false; public = false;
sharePath = "/home/admin/mainpool/TimeMachine"; sharePath = "/media/nas/main/timemachine";
enableTimeMachine = true; enableTimeMachine = true;
timeMachineMaxSize = "1T"; timeMachineMaxSize = "1T";
}; };
app_data = { app_data = {
public = true; public = true;
sharePath = "/home/admin/ssd/ssd_app_data"; sharePath = "/media/nas/ssd/ssd_app_data";
}; };
nix-config = { nix-config = {
public = true; public = true;
@@ -129,7 +129,7 @@ in
share.hardware.nvidia = { share.hardware.nvidia = {
enable = true; enable = true;
enableBeta = true; enableBeta = false;
nvidiaSettings = true; nvidiaSettings = true;
enableNvidiaDocker = true; enableNvidiaDocker = true;
}; };
@@ -149,7 +149,7 @@ in
}; };
# Override kernel to latest # Override kernel to latest
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ kernelParams = [
"nohibernate" "nohibernate"
@@ -161,8 +161,8 @@ in
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];
zfs.extraPools = [ "junk" "MainPool" "SSD" ]; # zfs.extraPools = [ "junk" ];
zfs.requestEncryptionCredentials = false; # zfs.requestEncryptionCredentials = false;
}; };
security.tpm2 = { security.tpm2 = {
@@ -235,7 +235,7 @@ in
serve_from_sub_path = true; serve_from_sub_path = true;
http_addr = ""; http_addr = "";
}; };
dataDir = "/home/admin/ssd/nix-app-data/grafana"; dataDir = "/media/nas/ssd/nix-app-data/grafana";
}; };
prometheus = { prometheus = {
@@ -286,33 +286,33 @@ in
}; };
systemd.services = { systemd.services = {
nas-mounts = { # nas-mounts = {
path = [ # path = [
pkgs.zfs # pkgs.zfs
pkgs.bash # pkgs.bash
pkgs.tpm2-tools # pkgs.tpm2-tools
]; # ];
wantedBy = [ "multi-user.target" ]; # wantedBy = [ "multi-user.target" ];
script = '' # script = ''
tpm2_nvread 0x1500016 -C o -s 65 > /tmp/mainpool # tpm2_nvread 0x1500016 -C o -s 65 > /tmp/mainpool
tpm2_nvread 0x1600016 -C o -s 65 > /tmp/ssd # tpm2_nvread 0x1600016 -C o -s 65 > /tmp/ssd
zfs load-key -L file:///tmp/mainpool "MainPool" # zfs load-key -L file:///tmp/mainpool "MainPool"
zfs load-key -L file:///tmp/ssd "SSD" # zfs load-key -L file:///tmp/ssd "SSD"
rm /tmp/mainpool # rm /tmp/mainpool
rm /tmp/ssd # rm /tmp/ssd
''; # '';
description = "Unlock ZFS pool using fTPM"; # description = "Unlock ZFS pool using fTPM";
requires = [ "zfs-import-MainPool.service" "zfs-import-SSD.service" ]; # requires = [ "zfs-import-MainPool.service" "zfs-import-SSD.service" ];
after = [ "zfs-import-MainPool.service" "zfs-import-SSD.service" ]; # after = [ "zfs-import-MainPool.service" "zfs-import-SSD.service" ];
before = [ "zfs-mount.service" ]; # before = [ "zfs-mount.service" ];
serviceConfig.Type = "oneshot"; # serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true; # serviceConfig.RemainAfterExit = true;
}; # };
glances-server = { glances-server = {
path = [ path = [
@@ -368,6 +368,17 @@ in
# etc."nut/upsd.conf".source = /home/matt/upsd.conf; # etc."nut/upsd.conf".source = /home/matt/upsd.conf;
# etc."nut/upsd.users".source = /home/matt/upsd.users; # etc."nut/upsd.users".source = /home/matt/upsd.users;
# etc."nut/upsmon.conf".source = /home/matt/upsmon.conf; # etc."nut/upsmon.conf".source = /home/matt/upsmon.conf;
etc.crypttab.text = ''
ssd1 UUID=eff4b19c-aba7-41ab-b452-a8c6654d8754 none tpm2-device=auto
ssd2 UUID=c8640e19-6cd9-49d0-a355-bac09d17ea0d none tpm2-device=auto
hdd1 UUID=8d7dd657-d9b0-47ed-97e1-a9d1eba12b56 none tpm2-device=auto
hdd2 UUID=11ee92b0-6334-4be7-bb2d-d85f5a3f51a6 none tpm2-device=auto
hdd3 UUID=4463ea6f-3fcf-4e49-80c8-ba7f424471f0 none tpm2-device=auto
hdd4 UUID=13fe7737-b72b-4d5f-a79d-1ca0d438f8f0 none tpm2-device=auto
hdd5 UUID=11ee92b0-6334-4be7-bb2d-d85f5a3f51a6 none tpm2-device=auto
'';
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
@@ -404,6 +415,9 @@ in
unstable.gpt4all unstable.gpt4all
lm_sensors lm_sensors
htop htop
tpm2-tools
tpm2-tss
cryptsetup
]; ];
}; };
@@ -502,7 +516,7 @@ in
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTBMydhOc6SnOdB5WrEd7X07DrboAtagCUgXiOJjLov matt@matt-nixos" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTBMydhOc6SnOdB5WrEd7X07DrboAtagCUgXiOJjLov matt@matt-nixos"
]; ];
packages = with pkgs; [ packages = with pkgs; [
neofetch fastfetch
git git
parted parted
aspell aspell
@@ -512,8 +526,6 @@ in
aha aha
papirus-icon-theme papirus-icon-theme
firefox firefox
tpm2-tools
tpm2-tss
]; ];
}; };
@@ -551,6 +563,160 @@ in
libvirtd.enable = true; libvirtd.enable = true;
}; };
fileSystems."/media/nas/ssd/nix-app-data" = {
device = "/dev/disk/by-uuid/09ac8b6b-e553-4cd8-ae62-8d8c17fe8b0c";
fsType = "btrfs";
options = [
"subvol=nix-app-data"
"compress=zstd"
];
};
fileSystems."/media/nas/ssd/ssd_app_data" = {
device = "/dev/disk/by-uuid/09ac8b6b-e553-4cd8-ae62-8d8c17fe8b0c";
fsType = "btrfs";
options = [
"subvol=ssd_app_data"
"compress=zstd"
];
};
fileSystems."/media/nas/ssd/mariadb" = {
device = "/dev/disk/by-uuid/09ac8b6b-e553-4cd8-ae62-8d8c17fe8b0c";
fsType = "btrfs";
options = [
"subvol=mariadb"
"compress=zstd"
];
};
fileSystems."/media/nas/ssd/VMs" = {
device = "/dev/disk/by-uuid/09ac8b6b-e553-4cd8-ae62-8d8c17fe8b0c";
fsType = "btrfs";
options = [
"subvol=VMs"
"compress=zstd"
];
};
fileSystems."/media/nas/main/3d_printer" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=3d_printer"
"compress=zstd"
];
};
fileSystems."/media/nas/main/backup" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=backup"
"compress=zstd"
];
};
fileSystems."/media/nas/main/books" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=books"
"compress=zstd"
];
};
fileSystems."/media/nas/main/documents" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=documents"
"compress=zstd"
];
};
fileSystems."/media/nas/main/homeassistant" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=homeassistant"
"compress=zstd"
];
};
fileSystems."/media/nas/main/isos" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=isos"
"compress=zstd"
];
};
fileSystems."/media/nas/main/movies" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=movies"
"compress=zstd"
];
};
fileSystems."/media/nas/main/nextcloud" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=nextcloud"
"compress=zstd"
];
};
fileSystems."/media/nas/main/photos" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=photos"
"compress=zstd"
];
};
fileSystems."/media/nas/main/switch" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=switch"
"compress=zstd"
];
};
fileSystems."/media/nas/main/tv" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=tv"
"compress=zstd"
];
};
fileSystems."/media/nas/main/timemachine" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=timemachine"
"compress=zstd"
];
};
fileSystems."/media/nas/main/vms" = {
device = "/dev/disk/by-uuid/76e7cd98-3145-4cff-b78d-bab0206aae28";
fsType = "btrfs";
options = [
"subvol=vms"
"compress=zstd"
];
};
# This option defines the first version of NixOS you have installed on this particular machine, # This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
# #

View File

@@ -6,7 +6,7 @@
# image = " lissy93/dashy:latest"; # image = " lissy93/dashy:latest";
# ports = [ "8888:80" ]; # ports = [ "8888:80" ];
# volumes = [ # volumes = [
# "/home/admin/ssd/nix-app-data/dashy/conf.yaml:/app/public/conf.yaml" # "/media/nas/ssd/nix-app-data/dashy/conf.yaml:/app/public/conf.yaml"
# ]; # ];
# environment = { # environment = {
# PUID = "911"; # PUID = "911";

View File

@@ -21,17 +21,17 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/deluge"; default = "/media/nas/ssd/nix-app-data/deluge";
}; };
moviesPath = mkOption { moviesPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads"; default = "/media/nas/ssd/ssd_app_data/downloads";
}; };
tvPath = mkOption { tvPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads-incomplete"; default = "/media/nas/ssd/ssd_app_data/downloads-incomplete";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,7 +26,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/homarr"; default = "/media/nas/ssd/ssd_app_data/homarr";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,7 +26,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/homepage"; default = "/media/nas/ssd/ssd_app_data/homepage";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,12 +26,12 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/jackett"; default = "/media/nas/ssd/nix-app-data/jackett";
}; };
downloadsPath = mkOption { downloadsPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads"; default = "/media/nas/ssd/ssd_app_data/downloads";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,17 +26,17 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/jellyfin"; default = "/media/nas/ssd/nix-app-data/jellyfin";
}; };
moviesPath = mkOption { moviesPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/Movies"; default = "/media/nas/main/movies";
}; };
tvPath = mkOption { tvPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/TV"; default = "/media/nas/main/tv";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,7 +26,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/jellyseerr"; default = "/media/nas/ssd/ssd_app_data/jellyseerr";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,7 +26,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/mariadb"; default = "/media/nas/ssd/mariadb";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -31,12 +31,12 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/nextcloud"; default = "/media/nas/ssd/ssd_app_data/nextcloud";
}; };
dataPath = mkOption { dataPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/Nextcloud"; default = "/media/nas/main/nextcloud";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,7 +26,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/ollama"; default = "/media/nas/ssd/nix-app-data/ollama";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,12 +26,12 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/open-webui"; default = "/media/nas/ssd/nix-app-data/open-webui";
}; };
ollamaPath = mkOption { ollamaPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/ollama"; default = "/media/nas/ssd/nix-app-data/ollama";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -31,7 +31,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/orca-slicer"; default = "/media/nas/ssd/ssd_app_data/orca-slicer";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,12 +26,12 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/puter/config"; default = "/media/nas/ssd/ssd_app_data/puter/config";
}; };
dataPath = mkOption { dataPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/puter/data"; default = "/media/nas/ssd/ssd_app_data/puter/data";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,17 +26,17 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/radarr"; default = "/media/nas/ssd/ssd_app_data/radarr";
}; };
moviesPath = mkOption { moviesPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/Movies"; default = "/media/nas/main/movies";
}; };
downloadsPath = mkOption { downloadsPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads"; default = "/media/nas/ssd/ssd_app_data/downloads";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,27 +26,27 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/sabnzbd"; default = "/media/nas/ssd/ssd_app_data/sabnzbd";
}; };
moviesPath = mkOption { moviesPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/Movies"; default = "/media/nas/main/movies";
}; };
tvPath = mkOption { tvPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/TV"; default = "/media/nas/main/tv";
}; };
downloadsPath = mkOption { downloadsPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads"; default = "/media/nas/ssd/ssd_app_data/downloads";
}; };
downloadsIncompletePath = mkOption { downloadsIncompletePath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads-incomplete"; default = "/media/nas/ssd/ssd_app_data/downloads-incomplete";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -26,17 +26,17 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/sonarr"; default = "/media/nas/ssd/ssd_app_data/sonarr";
}; };
tvPath = mkOption { tvPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/TV"; default = "/media/nas/main/tv";
}; };
downloadsPath = mkOption { downloadsPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/downloads"; default = "/media/nas/ssd/ssd_app_data/downloads";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -31,7 +31,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/swag"; default = "/media/nas/ssd/ssd_app_data/swag";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -31,32 +31,32 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/tdarr/config"; default = "/media/nas/ssd/nix-app-data/tdarr/config";
}; };
serverPath = mkOption { serverPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/tdarr/server"; default = "/media/nas/ssd/nix-app-data/tdarr/server";
}; };
logPath = mkOption { logPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/tdarr/logs"; default = "/media/nas/ssd/nix-app-data/tdarr/logs";
}; };
transcodePath = mkOption { transcodePath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/nix-app-data/tdarr/transcode"; default = "/media/nas/ssd/nix-app-data/tdarr/transcode";
}; };
moviesPath = mkOption { moviesPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/Movies"; default = "/media/nas/main/movies";
}; };
tvPath = mkOption { tvPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/mainpool/TV"; default = "/media/nas/main/tv";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -18,7 +18,7 @@ in
ports = [ "${cfg.port}:8443" ]; ports = [ "${cfg.port}:8443" ];
volumes = [ volumes = [
"${cfg.configPath}:/config" "${cfg.configPath}:/config"
"/home/admin/ssd/ssd_app_data:/ssd_app_data" "/media/nas/ssd/ssd_app_data:/ssd_app_data"
"/home/admin/nix-config:/nix-config" "/home/admin/nix-config:/nix-config"
]; ];
environment = { environment = {

View File

@@ -26,7 +26,7 @@ with lib;
configPath = mkOption { configPath = mkOption {
type = types.str; type = types.str;
default = "/home/admin/ssd/ssd_app_data/vscode"; default = "/media/nas/ssd/ssd_app_data/vscode";
}; };
puid = mkOption { puid = mkOption {

View File

@@ -29,14 +29,17 @@ in
}; };
}; };
networking.firewall.enable = true;
networking.firewall.allowPing = true;
services.samba = { services.samba = {
enable = true; enable = true;
securityType = "user"; securityType = "user";
openFirewall = true; openFirewall = true;
extraConfig = '' extraConfig = ''
workgroup = WORKGROUP workgroup = WORKGROUP
server string = smbnix server string = jallen-nas
netbios name = smbnix netbios name = jallen-nas
security = user security = user
#use sendfile = yes #use sendfile = yes
#max protocol = smb2 #max protocol = smb2

View File

@@ -46,10 +46,9 @@ in
}; };
# Enable OpenGL # Enable OpenGL
opengl = { graphics = {
enable = true; enable = true;
driSupport = true; enable32Bit = true;
driSupport32Bit = true;
}; };
}; };