formattug
This commit is contained in:
		@@ -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 = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user