nix: expose darwinModules

This commit is contained in:
Primrose 2024-07-12 23:33:27 +02:00
parent 47ec3b0d57
commit f573e1a1a9
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 29 additions and 25 deletions

View file

@ -0,0 +1,27 @@
{
flake.darwinModules._ =
{ pkgs, hostname, ... }:
{
system.stateVersion = 4;
services.nix-daemon.enable = true;
networking.hostName = hostname;
environment.shells = [ pkgs.fish ];
nix.settings.trusted-users = [ "leana" ];
nix.gc = {
automatic = true;
interval.Weekday = 0;
options = "--delete-older-than 15d";
};
nix.optimise = {
automatic = true;
interval.Weekday = 0;
};
# https://github.com/nix-community/home-manager/issues/4026
users.users."leana".home = "/Users/leana";
};
}