mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-10 07:58:30 +01:00
system: Only add phone groups when necessary
This commit is contained in:
parent
81cb06fc14
commit
a9bebdc5f6
@ -1,7 +1,7 @@
|
||||
{ nix-config, pkgs, lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkOption mkEnableOption mkIf singleton;
|
||||
inherit (lib) mkOption mkEnableOption mkIf singleton optionals;
|
||||
inherit (lib.types) nullOr str listOf;
|
||||
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowDevPort noRoot postgres phone;
|
||||
inherit (builtins) attrValues;
|
||||
@ -135,12 +135,13 @@ in
|
||||
if noRoot
|
||||
then [ ]
|
||||
else [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
] ++ (optionals (phone) [
|
||||
"dialout"
|
||||
"feedbackd"
|
||||
"video"
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
]);
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user