2023-09-19 17:05:08 +00:00
|
|
|
# This file (and the global directory) holds config used on all hosts
|
2023-09-15 14:53:38 +00:00
|
|
|
{ inputs, outputs, ... }: {
|
2023-09-19 17:05:08 +00:00
|
|
|
|
2023-09-15 14:53:38 +00:00
|
|
|
imports = [
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
./acme.nix
|
|
|
|
./auto-upgrade.nix
|
|
|
|
./fish.nix
|
|
|
|
./locale.nix
|
|
|
|
./nix.nix
|
|
|
|
./openssh.nix
|
|
|
|
./optin-persistence.nix
|
|
|
|
./podman.nix
|
|
|
|
./sops.nix
|
2023-09-25 18:05:07 +00:00
|
|
|
# ./ssh-serve-store.nix
|
2023-09-15 14:53:38 +00:00
|
|
|
./steam-hardware.nix
|
|
|
|
./systemd-initrd.nix
|
|
|
|
./tailscale.nix
|
|
|
|
] ++ (builtins.attrValues outputs.nixosModules);
|
|
|
|
|
|
|
|
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
|
|
config = {
|
2023-09-25 19:56:58 +00:00
|
|
|
# Disable if you don't want unfree packages
|
2023-09-15 14:53:38 +00:00
|
|
|
allowUnfree = true;
|
2023-09-25 19:56:58 +00:00
|
|
|
# Accept the joypixels license
|
|
|
|
joypixels.acceptLicense = true;
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Fix for qt6 plugins
|
|
|
|
# TODO: maybe upstream this?
|
|
|
|
environment.profileRelativeSessionVariables = {
|
|
|
|
QT_PLUGIN_PATH = [ "/lib/qt-6/plugins" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.enableAllTerminfo = true;
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
2023-09-19 17:05:08 +00:00
|
|
|
networking.domain = "burd.me";
|
2023-09-15 14:53:38 +00:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
}
|
|
|
|
];
|
2023-09-25 19:56:58 +00:00
|
|
|
|
|
|
|
# Only install the docs I use
|
|
|
|
documentation.enable = true;
|
|
|
|
documentation.nixos.enable = false;
|
|
|
|
documentation.man.enable = true;
|
|
|
|
documentation.info.enable = false;
|
|
|
|
documentation.doc.enable = false;
|
|
|
|
|
2023-09-15 14:53:38 +00:00
|
|
|
}
|