setup pob user for running pob2-frajul

This commit is contained in:
2025-10-05 15:36:06 +02:00
parent 11ee156b29
commit fc7285bd5c
4 changed files with 14 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
../common/global ../common/global
../common/users/julian ../common/users/julian
../common/users/yukari ../common/users/yukari
../common/users/pob
../common/optional/binarycaches.nix ../common/optional/binarycaches.nix
../common/optional/remote-builder.nix ../common/optional/remote-builder.nix

View File

@@ -2,11 +2,9 @@
pkgs, pkgs,
config, config,
... ...
}: }: let
let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in in {
{
users.mutableUsers = false; users.mutableUsers = false;
users.users.pob = { users.users.pob = {
description = "A helper user to use another profile for some applications"; description = "A helper user to use another profile for some applications";
@@ -18,8 +16,13 @@ in
]; ];
packages = with pkgs; [ packages = with pkgs; [
firefox firefox
wine wineWowPackages.stable # 32-bit and 64-bit wine
winetricks
]; ];
}; };
users.groups.pob = {}; users.groups.pob = {};
security.sudo.extraConfig = ''
julian ALL=(pob) NOPASSWD: ALL
'';
} }

View File

@@ -13,4 +13,5 @@
pob2 = pkgs.callPackage ./pob2 {}; pob2 = pkgs.callPackage ./pob2 {};
wl-ocr = pkgs.callPackage ./wl-ocr {}; wl-ocr = pkgs.callPackage ./wl-ocr {};
rtklib = pkgs.qt6Packages.callPackage ./rtklib {}; rtklib = pkgs.qt6Packages.callPackage ./rtklib {};
pob2-frajul = pkgs.callPackage ./pob2-frajul {};
} }

View File

@@ -1,6 +1,6 @@
{ {
writeShellApplication, writeShellApplication,
xhost xhost,
}: }:
writeShellApplication { writeShellApplication {
name = "pob2-frajul"; name = "pob2-frajul";
@@ -11,6 +11,6 @@ writeShellApplication {
text = '' text = ''
xhost + xhost +
sudo su pob -c "sh /home/pob/pob2.sh" sudo -u pob -i sh /home/pob/pob2.sh
''; '';
} }