mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +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
|
|
@ -1,28 +1,7 @@
|
|||
{ pkgs, hostname, ... }@input:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
imports = [ ./builders.nix ];
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
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;
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.vim
|
||||
pkgs.gnumake
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue