Compare commits
No commits in common. "32b7a34b6fa3edefff00cb438ca5aae4ff616b7e" and "a5dee47f5b8e89256b40ea31d8a6658e99802355" have entirely different histories.
32b7a34b6f
...
a5dee47f5b
|
@ -65,9 +65,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
(
|
||||
if (config.system == "x86_64-linux") then lixModules.${config.nixpkgs}.nixosModules.default else { }
|
||||
)
|
||||
lixModules.${config.nixpkgs}.nixosModules.default
|
||||
./configurations/${name}
|
||||
(if config.enableHomeManager then home-manager.nixosModules.home-manager else { })
|
||||
(if (config.system == "x86_64-linux") then lanzaboote.nixosModules.lanzaboote else { })
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, machineProps, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
machineProps,
|
||||
...
|
||||
}:
|
||||
let
|
||||
anyWiresharkUser =
|
||||
if machineProps.enableHomeManager then
|
||||
|
@ -10,19 +15,11 @@ let
|
|||
userUseWireshark = value: value.my.development.tools.networking.enable;
|
||||
in
|
||||
{
|
||||
config =
|
||||
{
|
||||
programs.wireshark.enable = anyWiresharkUser;
|
||||
config = {
|
||||
programs.wireshark.enable = anyWiresharkUser;
|
||||
|
||||
}
|
||||
// (
|
||||
if machineProps.enableHomeManager then
|
||||
{
|
||||
users.users = builtins.mapAttrs (name: value: {
|
||||
extraGroups = if (userUseWireshark value) then [ "wireshark" ] else [ ];
|
||||
}) config.home-manager.users;
|
||||
}
|
||||
else
|
||||
{ }
|
||||
);
|
||||
users.users = builtins.mapAttrs (name: value: {
|
||||
extraGroups = if (userUseWireshark value) then [ "wireshark" ] else [ ];
|
||||
}) config.home-manager.users;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue