mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: refactored out nix-darwin common config
This commit is contained in:
parent
c6a1625880
commit
9db9e4c0b6
4 changed files with 26 additions and 48 deletions
22
nix/hosts/_darwin/default.nix
Normal file
22
nix/hosts/_darwin/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue