mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
profiles/desktop: move programs.nix-index to dev profile
We now use the NixOS module for it, too.
This commit is contained in:
parent
d59a60dc51
commit
815be385a2
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user