about summary refs log tree commit diff
path: root/hosts/work
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-04 16:17:39 -0800
committerFranck Cuny <franck@fcuny.net>2024-03-04 16:17:39 -0800
commitd048a7b6a225f9e30b2a95e9461f4c267eb29af0 (patch)
treee7da6bcb7901d4c0daae50b59fa5c2b02e89b51d /hosts/work
parentdon't sign git commits (diff)
downloadworld-d048a7b6a225f9e30b2a95e9461f4c267eb29af0.tar.gz
add configuration for my work machine
Diffstat (limited to 'hosts/work')
-rw-r--r--hosts/work/default.nix35
1 files changed, 35 insertions, 0 deletions
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;
+}