Cleaning up filesystems version

This commit is contained in:
Jordan
2026-09-10 11:39:10 -07:00
parent 02bc3b2465
commit d40c791307
+25 -40
View File
@@ -18,23 +18,6 @@
boot.loader.systemd-boot.configurationLimit = 30; boot.loader.systemd-boot.configurationLimit = 30;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
#
# hardware.graphics.enable = true;
#
# hardware.nvidia = {
# modesetting.enable = true;
#
# open = false; # Recommended for GTX 1060
#
# nvidiaSettings = true;
#
# package = config.boot.kernelPackages.nvidiaPackages.stable;
# };
#
# environment.sessionVariables = {
# NIXOS_OZONE_WL = "1";
# };
boot.kernel.sysctl = { boot.kernel.sysctl = {
"net.ipv4.ip_forward" = 1; "net.ipv4.ip_forward" = 1;
"net.bridge.bridge-nf-call-iptables" = 1; "net.bridge.bridge-nf-call-iptables" = 1;
@@ -44,8 +27,8 @@
"net.ipv4.conf.ens2.proxy_arp" = 1; "net.ipv4.conf.ens2.proxy_arp" = 1;
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
fileSystems = {
fileSystems."/mnt/games" = { "/mnt/games" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
@@ -55,8 +38,7 @@
"nofail" "nofail"
]; ];
}; };
"/mnt/photo" = {
fileSystems."/mnt/photo" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
@@ -67,7 +49,7 @@
]; ];
}; };
fileSystems."/mnt/media" = { "/mnt/media" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
@@ -78,7 +60,7 @@
]; ];
}; };
fileSystems."/mnt/winbackup" = { "/mnt/winbackup" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
@@ -89,7 +71,7 @@
]; ];
}; };
fileSystems."/mnt/winhdd" = { "/mnt/winhdd" = {
device = "/dev/sdb1"; device = "/dev/sdb1";
fsType = "ntfs"; fsType = "ntfs";
options = [ options = [
@@ -99,6 +81,7 @@
"nofail" "nofail"
]; ];
}; };
};
virtualisation.libvirtd = { virtualisation.libvirtd = {
"enable" = true; "enable" = true;
@@ -157,7 +140,6 @@
"dedyn/dnsuser" = {}; "dedyn/dnsuser" = {};
"github/token" = {}; "github/token" = {};
"gitlab/token" = {}; "gitlab/token" = {};
"openai/legacy_token" = {};
}; };
sops.templates."factorio.json".content = builtins.toJSON { sops.templates."factorio.json".content = builtins.toJSON {
@@ -166,10 +148,8 @@
gamepassword = config.sops.placeholder."factorio/gamepassword"; gamepassword = config.sops.placeholder."factorio/gamepassword";
}; };
sops.templates."duplicity.env".content = builtins.toJSON { sops.templates."duplicity.env".content =
service_username = config.sops.placeholder."factorio/service_username"; builtins.toJSON {
service_token = config.sops.placeholder."factorio/service_token";
gamepassword = config.sops.placeholder."factorio/gamepassword";
}; };
sops.templates."caddy.env" = { sops.templates."caddy.env" = {
@@ -213,12 +193,11 @@
openFirewall = true; openFirewall = true;
}; };
# programs.firefox.enable = true;
# List packages installed in system profile. # List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options). # You can use https://search.nixos.org/ to find more packages (and options).
programs.hyprland.enable = true; # enable Hyprland programs.hyprland.enable = true; # enable Hyprland
programs.nix-ld = { programs.nix-ld = {
enable = true; enable = true;
@@ -240,6 +219,8 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
doas
lan-mouse
stylua stylua
gh gh
glab glab
@@ -265,7 +246,6 @@
OVMF OVMF
pigz pigz
mpv mpv
zed
wofi wofi
wayvnc wayvnc
pcmanfm pcmanfm
@@ -305,6 +285,7 @@
services.caddy = { services.caddy = {
enable = true; enable = true;
environmentFile = config.sops.templates."caddy.env".path;
globalConfig = '' globalConfig = ''
acme_ca https://acme.zerossl.com/v2/DV90 acme_ca https://acme.zerossl.com/v2/DV90
email {$ACME_EMAIL}; email {$ACME_EMAIL};
@@ -312,6 +293,11 @@
#tls ${config.sops.secrets.zerossl_cert.path} ${config.sops.secrets.zerossl_private_key.path} #tls ${config.sops.secrets.zerossl_cert.path} ${config.sops.secrets.zerossl_private_key.path}
virtualHosts."centraldogma.dedyn.io:".extraConfig = '' virtualHosts."centraldogma.dedyn.io:".extraConfig = ''
root * /srv/root/
file_server
encode zstd gzip
redir /jellyfin /jellyfin/ redir /jellyfin /jellyfin/
reverse_proxy /jellyfin/* 127.0.0.1:8096 reverse_proxy /jellyfin/* 127.0.0.1:8096
@@ -322,6 +308,12 @@
reverse_proxy /radarr/* 127.0.0.1:7878 reverse_proxy /radarr/* 127.0.0.1:7878
''; '';
virtualHosts."blog.centraldogma.dedyn.io:".extraConfig = ''
root * /srv/root/
file_server
encode zstd gzip
'';
}; };
services.flaresolverr = { services.flaresolverr = {
enable = true; enable = true;
@@ -369,14 +361,7 @@
"create mask" = "0644"; "create mask" = "0644";
"directory mask" = "0755"; "directory mask" = "0755";
}; };
"x" = {
"path" = "/home/mask/mounts/x";
"browseable" = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
};
"winhdd" = { "winhdd" = {
"path" = "/mnt/winhdd"; "path" = "/mnt/winhdd";
"browseable" = "yes"; "browseable" = "yes";