From d048a7b6a225f9e30b2a95e9461f4c267eb29af0 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 4 Mar 2024 16:17:39 -0800 Subject: add configuration for my work machine --- hosts/work/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 hosts/work/default.nix (limited to 'hosts/work') diff --git a/hosts/work/default.nix b/hosts/work/default.nix new file mode 100644 index 0000000..ae9a765 --- /dev/null +++ b/hosts/work/default.nix @@ -0,0 +1,35 @@ +{ pkgs, ... }: +let user = "fcuny"; in +{ + services.nix-daemon.enable = true; + + nix = { + package = pkgs.nixFlakes; + + gc = { + user = "root"; + automatic = true; + interval = { Weekday = 0; Hour = 2; Minute = 0; }; + options = "--delete-older-than 30d"; + }; + + settings = { + trusted-users = [ "@admin" "${user}" ]; + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + + # in order to install things like 1password's extensions + nixpkgs.config.allowUnfree = true; + + programs.zsh.enable = true; + + users.users.fcuny.home = "/Users/fcuny"; + + # Touch ID for sudo auth + security.pam.enableSudoTouchIdAuth = true; + + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.fcuny = import ../../nix/profiles/home-manager/work.nix; +} -- cgit 1.4.1