From 9b763221782da5251ff48a200c9035e2d120e6d7 Mon Sep 17 00:00:00 2001 From: Olaf Date: Thu, 8 May 2025 18:35:06 +0200 Subject: [PATCH] formattug --- hosts/darwin/default.nix | 55 +++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/hosts/darwin/default.nix b/hosts/darwin/default.nix index 041d26d..d8af098 100644 --- a/hosts/darwin/default.nix +++ b/hosts/darwin/default.nix @@ -1,24 +1,31 @@ -{ agenix, config, pkgs, ... }: +{ + agenix, + config, + pkgs, + ... +}: -let user = "olaf"; in +let + user = "olaf"; +in { -security = { - pam = { - services ={ - sudo_local ={ - touchIdAuth = true; + security = { + pam = { + services = { + sudo_local = { + touchIdAuth = true; + }; }; }; }; -}; imports = [ ../../modules/darwin/secrets.nix ../../modules/darwin/home-manager.nix ../../modules/shared - agenix.darwinModules.default + agenix.darwinModules.default ]; # Setup user, packages, programs @@ -26,14 +33,24 @@ security = { package = pkgs.nix; settings = { - trusted-users = [ "@admin" "${user}" ]; - substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ]; + 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; }; + interval = { + Weekday = 0; + Hour = 2; + Minute = 0; + }; options = "--delete-older-than 30d"; }; @@ -46,11 +63,15 @@ security = { system.checks.verifyNixPath = false; # Load configuration that is shared across systems - environment.systemPackages = with pkgs; [ - emacs-unstable - agenix.packages."${pkgs.system}".default - nixd - ] ++ (import ../../modules/shared/packages.nix { inherit pkgs; }); + environment.systemPackages = + with pkgs; + [ + emacs-unstable + agenix.packages."${pkgs.system}".default + ] + ++ (import ../../modules/shared/packages.nix { inherit pkgs; }) + + ; launchd.user.agents.emacs.path = [ config.environment.systemPath ]; launchd.user.agents.emacs.serviceConfig = {