feat(systems/core): automatic module importing

This commit is contained in:
madmin 2024-08-27 11:39:15 +02:00
parent 05debb70d5
commit 9330e70fec
1 changed files with 24 additions and 6 deletions

View File

@ -1,7 +1,25 @@
{ { inputs, outputs, configLib, ... }: {
imports = [ imports = (configLib.scanPaths ./.)
./time_locale.nix ++ [ inputs.home-manager.nixosModules.home-manager ]
./xorg_plasma.nix ++ (builtins.attrValues outputs.nixosModules);
./console.nix
]; #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;
} }