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!
|
# Run unpatched binaries with these!
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nix-index # locate but for the entire store directory.
|
|
||||||
steam-run # For the heathens that still uses FHS.
|
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.
|
# Enable running GNOME apps outside GNOME.
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
})
|
})
|
||||||
@ -184,24 +178,10 @@ in {
|
|||||||
dates = [ "weekly" ];
|
dates = [ "weekly" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Clear logs that are more than a month old weekly.
|
# Journal settings for retention.
|
||||||
systemd = {
|
services.journald.extraConfig = ''
|
||||||
services.clean-log = {
|
MaxRetentionSec="3 month"
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.autoUpgrade.enable {
|
(lib.mkIf cfg.autoUpgrade.enable {
|
||||||
|
@ -73,6 +73,9 @@ in {
|
|||||||
# Convenience!
|
# Convenience!
|
||||||
environment.localBinInPath = true;
|
environment.localBinInPath = true;
|
||||||
|
|
||||||
|
# Find Nix files with these!
|
||||||
|
programs.nix-index.enable = true;
|
||||||
|
|
||||||
# Additional settings for developing with nix.
|
# Additional settings for developing with nix.
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
keep-outputs = true;
|
keep-outputs = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user