formattug
This commit is contained in:
parent
5a9d8a6533
commit
9b76322178
@ -1,18 +1,25 @@
|
|||||||
{ 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
|
||||||
@ -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 =
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
emacs-unstable
|
emacs-unstable
|
||||||
agenix.packages."${pkgs.system}".default
|
agenix.packages."${pkgs.system}".default
|
||||||
nixd
|
]
|
||||||
] ++ (import ../../modules/shared/packages.nix { inherit pkgs; });
|
++ (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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user