refactor: fix several minor bugs and potential security issues

This commit is contained in:
2026-10-20 15:49:18 -04:00
parent 59fb26b5ca
commit 2e92624d07
7 changed files with 30 additions and 14 deletions
+12 -1
View File
@@ -1,4 +1,15 @@
{ _, ... }: { _, ... }:
{ {
virtualisation.docker.enable = true; virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
daemon.settings = {
data-root = "$XDG_DATA_HOME/docker";
};
};
};
} }
+7
View File
@@ -0,0 +1,7 @@
{ _, ... }:
{
security.sudo = {
enable = true;
wheelNeedsPassword = true;
};
}
-4
View File
@@ -46,10 +46,6 @@
appId = "com.vysp3r.ProtonPlus"; appId = "com.vysp3r.ProtonPlus";
origin = "flathub"; origin = "flathub";
} }
{
appId = "io.mpv.Mpv";
origin = "flathub";
}
{ {
appId = "org.ghidra_sre.Ghidra"; appId = "org.ghidra_sre.Ghidra";
origin = "flathub"; origin = "flathub";
+1 -1
View File
@@ -54,7 +54,7 @@
}; };
"/mnt/fileshare" = { "/mnt/fileshare" = {
device = "frank@192.168.1.181:/mnt/shares"; device = "frank@vergil.cfl.rr.com:/mnt/shares";
fsType = "sshfs"; fsType = "sshfs";
options = [ options = [
"uid=1000" "uid=1000"
+1 -1
View File
@@ -13,6 +13,7 @@
../../features/avahi.nix ../../features/avahi.nix
../../features/systemd-boot.nix ../../features/systemd-boot.nix
../../features/i18n.nix ../../features/i18n.nix
../../features/sudo.nix
./nix-package-manager.nix ./nix-package-manager.nix
]; ];
@@ -172,7 +173,6 @@
"wheel" "wheel"
"input" "input"
"video" "video"
"docker"
"uinput" "uinput"
]; ];
}; };
+1 -1
View File
@@ -11,6 +11,7 @@
../../features/avahi.nix ../../features/avahi.nix
../../features/systemd-boot.nix ../../features/systemd-boot.nix
../../features/i18n.nix ../../features/i18n.nix
../../features/sudo.nix
./nix-package-manager.nix ./nix-package-manager.nix
]; ];
@@ -72,7 +73,6 @@
extraGroups = [ extraGroups = [
"wheel" "wheel"
"libvirtd" "libvirtd"
"docker"
]; ];
}; };
+8 -6
View File
@@ -31,11 +31,13 @@
}; };
}; };
users.users."remotebuild" = { users.users = {
isSystemUser = true; "remotebuild" = {
group = "remotebuild"; isSystemUser = true;
useDefaultShell = true; group = "remotebuild";
openssh.authorizedKeys.keyFiles = [ ./remotebuild.pub ]; useDefaultShell = true;
openssh.authorizedKeys.keyFiles = [ ./remotebuild.pub ];
};
}; };
users.groups.remotebuild = { }; users.groups.remotebuild = { };
@@ -86,7 +88,7 @@
jellyfin = { jellyfin = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
user = "frank"; user = "jellyfin";
}; };
}; };