48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
# This file (and the global directory) holds config that i use on all hosts
|
|
{ inputs, outputs, configLib, ... }: {
|
|
imports = (configLib.scanPaths ./.)
|
|
++ [ inputs.home-manager.nixosModules.home-manager ]
|
|
++ (builtins.attrValues outputs.nixosModules);
|
|
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
|
|
nixpkgs = {
|
|
# you can add global overlays here
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
# Fix for qt6 plugins
|
|
# TODO: maybe upstream this?
|
|
environment.profileRelativeSessionVariables = {
|
|
QT_PLUGIN_PATH = ["/lib/qt-6/plugins"];
|
|
};
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
networking.domain = "mattmor.in";
|
|
|
|
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
|
|
'';
|
|
|
|
# Increase open file limit for sudoers
|
|
security.pam.loginLimits = [
|
|
{
|
|
domain = "@wheel";
|
|
item = "nofile";
|
|
type = "soft";
|
|
value = "524288";
|
|
}
|
|
{
|
|
domain = "@wheel";
|
|
item = "nofile";
|
|
type = "hard";
|
|
value = "1048576";
|
|
}
|
|
];
|
|
}
|