to not affect local development, remove system-wide out-of-tree
This commit is contained in:
parent
e87b9d1d5f
commit
7e4383aa89
12
security.nix
12
security.nix
@ -41,22 +41,10 @@
|
||||
extraConfig = ''
|
||||
%wheel ALL=(ALL:ALL) NOPASSWD: ${pkgs.light}/bin/light
|
||||
%wheel ALL=(captive) NOPASSWD: ${pkgs.firefox}/bin/firefox
|
||||
%wheel ALL=(out-of-tree) NOPASSWD: ${pkgs.out-of-tree}/bin/out-of-tree
|
||||
'';
|
||||
};
|
||||
|
||||
users.users.out-of-tree = {
|
||||
home = "/var/out-of-tree";
|
||||
group = "out-of-tree";
|
||||
isSystemUser = true;
|
||||
createHome = true;
|
||||
extraGroups = [ "docker" "kvm" ];
|
||||
};
|
||||
users.groups.out-of-tree = {};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(writeShellScriptBin "captive" "sudo -H -u captive ${pkgs.firefox}/bin/firefox")
|
||||
(writeShellScriptBin "out-of-tree"
|
||||
"sudo -H -u out-of-tree ${pkgs.out-of-tree}/bin/out-of-tree $@")
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user