34 lines
919 B
Nix
Executable file
34 lines
919 B
Nix
Executable file
{ pkgs, home-manager, inputs, ... }@mod-inputs:
|
|
{
|
|
|
|
# Make sure the nix daemon always runs
|
|
services.nix-daemon.enable = true;
|
|
|
|
# if you use zsh (the default on new macOS installations),
|
|
# you'll need to enable this so nix-darwin creates a zshrc sourcing needed environment changes
|
|
programs.zsh.enable = true;
|
|
# bash is enabled by default
|
|
home-manager = {
|
|
extraSpecialArgs = { inherit (mod-inputs) inputs; };
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.leonvatthauer = import ./leonvatthauer.nix;
|
|
};
|
|
nixpkgs.config.allowUnfree = true;
|
|
users.users.leonvatthauer = {
|
|
home="/Users/leonvatthauer";
|
|
};
|
|
fonts.fonts = [
|
|
pkgs.mononoki
|
|
];
|
|
|
|
|
|
# automatically garbage collect and optimise
|
|
nix.gc = {
|
|
automatic = true;
|
|
interval = { Weekday = 0; Hour = 0; Minute = 0; };
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
nix.settings.auto-optimise-store = true;
|
|
}
|