aboutsummaryrefslogblamecommitdiff
path: root/hosts/work/default.nix
blob: 120f0c83b79b33c545cfad232d1435fa11257c3a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
              













                                                        
                                           













                                                          
                                                                             
 
{ pkgs, ... }:
{
  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" "fcuny" ];
      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.users.fcuny = import ../../nix/profiles/home-manager/work.nix;
}