home(minecraft): run minecraft under dedicated user
This commit is contained in:
parent
1e9cc2ede2
commit
b107b4f66b
2 changed files with 11 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
, config
|
||||
, ... }: with lib; let
|
||||
cfg = config.passthrough.minecraft;
|
||||
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
|
||||
enable = cfg.enable && config.home.username == "minecraft";
|
||||
in mkIf enable {
|
||||
home.packages = with pkgs; [
|
||||
prismlauncher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue