feat(systems/core): automatic module importing
This commit is contained in:
parent
05debb70d5
commit
9330e70fec
|
@ -1,7 +1,25 @@
|
|||
{
|
||||
imports = [
|
||||
./time_locale.nix
|
||||
./xorg_plasma.nix
|
||||
./console.nix
|
||||
];
|
||||
{ inputs, outputs, configLib, ... }: {
|
||||
imports = (configLib.scanPaths ./.)
|
||||
++ [ inputs.home-manager.nixosModules.home-manager ]
|
||||
++ (builtins.attrValues outputs.nixosModules);
|
||||
|
||||
#TODO:yubikey-> services.yubikey-agent.enable = true;
|
||||
|
||||
security.sudo.extraConfig = ''
|
||||
Defaults timestamp_timeout=120 # only ask for password every 2h
|
||||
# Keep SSH_AUTH_SOCK so that pam_ssh_agent_auth.so can do its magic.
|
||||
# Defaults env_keep + =SSH_AUTH_SOCK
|
||||
'';
|
||||
|
||||
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
||||
|
||||
nixpkgs = {
|
||||
# you can add global overlays here
|
||||
overlays = builtins.attrValues outputs.overlays;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue