refactor: simplify Nix module inputs and update configurations
Simplified input argument structures across multiple Nix modules by removing unnecessary bindings and standardizing formats. Enabled `system.primaryUser` setting and updated PAM configuration for sudo touch ID authentication. Removed deprecated or unused configurations, including user fields in metacfg and outdated options in some modules.
This commit is contained in:
parent
bbc247aa23
commit
b453062c57
8 changed files with 24 additions and 50 deletions
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.metacfg;
|
||||
|
@ -58,7 +57,7 @@ in
|
|||
};
|
||||
|
||||
security = {
|
||||
pam.enableSudoTouchIdAuth = true;
|
||||
pam.services.sudo_local.touchIdAuth = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) types mkIf;
|
||||
inherit (lib.metacfg) mkOpt enabled;
|
||||
|
||||
cfg = config.metacfg.services.nix-daemon;
|
||||
in
|
||||
{
|
||||
options.metacfg.services.nix-daemon = {
|
||||
enable = mkOpt types.bool true "Whether to enable the Nix daemon.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable { services.nix-daemon = enabled; };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue