1
0
dotfiles/darwin/default.nix

53 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
let user = "dekker1"; in
{
imports = [
./home-manager.nix
../shared
../shared/cachix
];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# Setup user, packages, programs
nix = {
package = pkgs.nix;
settings.trusted-users = [ "@admin" "${user}" ];
gc = {
user = "root";
automatic = true;
interval = { Weekday = 0; Hour = 2; Minute = 0; };
options = "--delete-older-than 30d";
};
# Turn this on to make command line easier
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# Turn off NIX_PATH warnings now that we're using flakes
system.checks.verifyNixPath = false;
# Load configuration that is shared across systems
environment.systemPackages = with pkgs; [
] ++ (import ../shared/packages.nix { inherit pkgs; });
# Setup MacOS specific services
services = {
yabai = {
enable = true;
extraConfig = (builtins.readFile ./config/yabairc);
};
skhd = {
enable = true;
skhdConfig = (builtins.readFile ./config/skhdrc);
};
};
}