moved common out of systems

This commit is contained in:
2024-10-25 16:47:36 -04:00
parent 84ad676d17
commit f706463500
26 changed files with 19 additions and 19 deletions

50
common/global/default.nix Normal file
View File

@@ -0,0 +1,50 @@
{
inputs,
lib,
outputs,
pkgs,
...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
./docker.nix
./fail2ban.nix
./libs.nix
./locale.nix
./nh.nix
./nix.nix
./programs.nix
./ssh.nix
./snapshot_manager.nix
];
boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_6_10;
tmp.useTmpfs = true;
};
hardware.enableRedistributableFirmware = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs outputs;};
};
nixpkgs.config.allowUnfree = true;
programs = {
zsh.enable = true;
fish.enable = true;
};
security.auditd.enable = lib.mkDefault true;
users.mutableUsers = lib.mkDefault true;
zramSwap = {
enable = lib.mkDefault true;
priority = 1000;
};
}