1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-10-09 21:03:30 +02:00
config/modules/common/nix.nix
TheGeneralist bd887883f7
nixos: migrate server services to thegeneralist
Move hosted services and secrets from the retired central hosts, persist USB storage and ownership, harden RTL8822BU Wi-Fi, repair DNS behavior, and order CoreDNS after Tailscale.
2026-10-09 14:21:55 +02:00

44 lines
957 B
Nix

{ config, pkgs, ...}: let
subs = [
"https://cache.thegeneralist01.com/"
"https://cache.nixos.org/"
"https://niri.cachix.org"
];
in {
# todo: gc
environment.systemPackages = with pkgs; [
nh
];
nix.settings = {
experimental-features = [
"flakes"
"nix-command"
"pipe-operators"
];
extra-substituters = subs;
trusted-substituters = subs;
extra-trusted-public-keys = [
"cache.thegeneralist01.com:jkKcenR877r7fQuWq6cr0JKv2piqBWmYLAYsYsSJnT4="
"niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964="
];
trusted-users = [ "thegeneralist" "root" "@wheel" "@admin" "jellyfin" "git" ];
builders-use-substitutes = true;
};
nix.package = pkgs.nixVersions.latest;
home-manager.sharedModules = [{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "~/config";
};
}];
}