refactor: fix several minor bugs and potential security issues
This commit is contained in:
+12
-1
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{ _, ... }:
|
||||||
|
{
|
||||||
|
security.sudo = {
|
||||||
|
enable = true;
|
||||||
|
wheelNeedsPassword = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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";
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user