Skip to content

Commit

Permalink
feat(nix): Auto optimise store
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Oct 25, 2024
1 parent e69707e commit 99ff6fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
10 changes: 9 additions & 1 deletion home-manager/shared.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
{ pkgs, ... }: {
nix = {
package = pkgs.nix;
extraOptions = ''
keep-outputs = true
keep-derivations = true
auto-optimise-store = true
'';
};
theme = "tokyonight";
imports = [
../nixos-modules/theme.nix
Expand Down
13 changes: 8 additions & 5 deletions nixos-modules/common.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{ pkgs, ... }: {
# See https://github.com/nix-community/nix-direnv
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
nix = {
package = pkgs.nix;
extraOptions = ''
keep-outputs = true
keep-derivations = true
auto-optimise-store = true
'';
};

environment.systemPackages = [ pkgs.mullvad-vpn ];
# going to use pipewire instead
Expand Down

0 comments on commit 99ff6fe

Please sign in to comment.