feat(systems/core): automatic module importing
This commit is contained in:
parent
05debb70d5
commit
9330e70fec
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue