formattug

This commit is contained in:
Olaf 2025-05-08 18:35:06 +02:00
parent 5a9d8a6533
commit 9b76322178

View File

@ -1,24 +1,31 @@
{ agenix, config, pkgs, ... }: {
agenix,
config,
pkgs,
...
}:
let user = "olaf"; in let
user = "olaf";
in
{ {
security = { security = {
pam = { pam = {
services ={ services = {
sudo_local ={ sudo_local = {
touchIdAuth = true; touchIdAuth = true;
};
}; };
}; };
}; };
};
imports = [ imports = [
../../modules/darwin/secrets.nix ../../modules/darwin/secrets.nix
../../modules/darwin/home-manager.nix ../../modules/darwin/home-manager.nix
../../modules/shared ../../modules/shared
agenix.darwinModules.default agenix.darwinModules.default
]; ];
# Setup user, packages, programs # Setup user, packages, programs
@ -26,14 +33,24 @@ security = {
package = pkgs.nix; package = pkgs.nix;
settings = { settings = {
trusted-users = [ "@admin" "${user}" ]; trusted-users = [
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ]; "@admin"
"${user}"
];
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ]; trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
}; };
gc = { gc = {
automatic = true; automatic = true;
interval = { Weekday = 0; Hour = 2; Minute = 0; }; interval = {
Weekday = 0;
Hour = 2;
Minute = 0;
};
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
@ -46,11 +63,15 @@ security = {
system.checks.verifyNixPath = false; system.checks.verifyNixPath = false;
# Load configuration that is shared across systems # Load configuration that is shared across systems
environment.systemPackages = with pkgs; [ environment.systemPackages =
emacs-unstable with pkgs;
agenix.packages."${pkgs.system}".default [
nixd emacs-unstable
] ++ (import ../../modules/shared/packages.nix { inherit pkgs; }); agenix.packages."${pkgs.system}".default
]
++ (import ../../modules/shared/packages.nix { inherit pkgs; })
;
launchd.user.agents.emacs.path = [ config.environment.systemPath ]; launchd.user.agents.emacs.path = [ config.environment.systemPath ];
launchd.user.agents.emacs.serviceConfig = { launchd.user.agents.emacs.serviceConfig = {