play with config

This commit is contained in:
2025-08-03 20:34:51 +02:00
parent c22eab800c
commit ffc78043e6
11 changed files with 13 additions and 74 deletions

View File

@@ -1,40 +1,32 @@
{ agenix, config, pkgs, ... }:
let user = "cschmatzler"; in
{
imports = [
../../modules/darwin/secrets.nix
../../modules/darwin/home-manager.nix
../../modules/shared
agenix.darwinModules.default
agenix.darwinModules.default
];
# Setup user, packages, programs
nix = {
package = pkgs.nix;
settings = {
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
gc = {
automatic = true;
interval = { Weekday = 0; Hour = 2; Minute = 0; };
options = "--delete-older-than 30d";
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# Turn off NIX_PATH warnings now that we're using flakes
# Load configuration that is shared across systems
environment.systemPackages = with pkgs; [
agenix.packages."${pkgs.system}".default
] ++ (import ../../modules/shared/packages.nix { inherit pkgs; });