nixos/shinx/default.nix

35 lines
919 B
Nix
Raw Permalink Normal View History

2024-02-16 13:59:46 +01:00
{ 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
];
2024-02-26 14:28:05 +01:00
# 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;
2024-02-16 13:59:46 +01:00
}