profiles/desktop: move programs.nix-index to dev profile

We now use the NixOS module for it, too.
This commit is contained in:
Gabriel Arazas 2023-07-16 18:12:18 +08:00
parent d59a60dc51
commit 815be385a2
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 8 additions and 25 deletions

View File

@ -65,17 +65,11 @@ in {
# Run unpatched binaries with these!
programs.nix-ld.enable = true;
environment.systemPackages = with pkgs; [
nix-index # locate but for the entire store directory.
steam-run # For the heathens that still uses FHS.
];
# command-not-found except better integrated since we're already using
# nix-index.
environment.interactiveShellInit = ''
. ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
'';
# Enable running GNOME apps outside GNOME.
programs.dconf.enable = true;
})
@ -184,24 +178,10 @@ in {
dates = [ "weekly" ];
};
# Clear logs that are more than a month old weekly.
systemd = {
services.clean-log = {
description = "Weekly log cleanup";
documentation = [ "man:journalctl(1)" ];
script = "${pkgs.systemd}/bin/journalctl --vacuum-time=30d";
};
timers.clean-log = {
description = "Weekly log cleanup";
documentation = [ "man:journalctl(1)" ];
wantedBy = [ "multi-user.target" ];
timerConfig = {
OnCalendar = "weekly";
Persistent = true;
};
};
};
# Journal settings for retention.
services.journald.extraConfig = ''
MaxRetentionSec="3 month"
'';
})
(lib.mkIf cfg.autoUpgrade.enable {

View File

@ -73,6 +73,9 @@ in {
# Convenience!
environment.localBinInPath = true;
# Find Nix files with these!
programs.nix-index.enable = true;
# Additional settings for developing with nix.
nix.settings = {
keep-outputs = true;