NH installed
This commit is contained in:
parent
75cd0609dc
commit
859034da4e
2 changed files with 8 additions and 13 deletions
|
@ -1,6 +1,10 @@
|
||||||
{ pkgs, lib, inputs, config, ... }: {
|
{ lib, inputs, config, ... }: {
|
||||||
environment.systemPackages = with pkgs; [ nix-output-monitor ];
|
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 7d";
|
||||||
|
};
|
||||||
nix = let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
nix = let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||||
in {
|
in {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -8,11 +12,6 @@
|
||||||
flake-registry = "";
|
flake-registry = "";
|
||||||
nix-path = config.nix.nixPath;
|
nix-path = config.nix.nixPath;
|
||||||
};
|
};
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
dates = "weekly";
|
|
||||||
};
|
|
||||||
optimise.automatic = true;
|
optimise.automatic = true;
|
||||||
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
||||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
|
@ -79,14 +79,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
services.gc = {
|
|
||||||
Service = { Exec = "nix-collect-garbage --delete-older-than 30d"; };
|
|
||||||
};
|
|
||||||
timers.gc = { Timer = { OnCalendar = "weekly"; }; };
|
|
||||||
targets.tray = {
|
targets.tray = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "System Tray";
|
Description = "System Tray";
|
||||||
Requires = [ "graphical-session-pre.target" ];
|
Requires = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue