nixos: fix switch space issues and set hourly upgrades
This commit is contained in:
@@ -64,6 +64,21 @@
|
|||||||
config.allowBroken = true;
|
config.allowBroken = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Exclude local worktree/build artifacts from the source we feed to
|
||||||
|
# callCabal2nix. cleanSource alone still includes .worktrees/.
|
||||||
|
cleanedTaffybarSource = pkgs.lib.cleanSourceWith {
|
||||||
|
src = taffybar.outPath;
|
||||||
|
filter = path: type:
|
||||||
|
let
|
||||||
|
relPath = pkgs.lib.removePrefix "${toString taffybar.outPath}/" (toString path);
|
||||||
|
excludedTopLevel = [ ".worktrees" ".direnv" "dist" "dist-newstyle" "result" ];
|
||||||
|
isExcluded = pkgs.lib.lists.any
|
||||||
|
(prefix: relPath == prefix || pkgs.lib.hasPrefix "${prefix}/" relPath)
|
||||||
|
excludedTopLevel;
|
||||||
|
in
|
||||||
|
pkgs.lib.cleanSourceFilter path type && !isExcluded;
|
||||||
|
};
|
||||||
|
|
||||||
hOverrides = hself: hsuper: {
|
hOverrides = hself: hsuper: {
|
||||||
dbus-menu =
|
dbus-menu =
|
||||||
pkgs.haskell.lib.overrideCabal
|
pkgs.haskell.lib.overrideCabal
|
||||||
@@ -101,7 +116,8 @@
|
|||||||
# Build taffybar from our local flake input so it includes our extra
|
# Build taffybar from our local flake input so it includes our extra
|
||||||
# modules (e.g. System.Taffybar.Widget.ASUS) used by this config.
|
# modules (e.g. System.Taffybar.Widget.ASUS) used by this config.
|
||||||
taffybar = pkgs.haskell.lib.overrideCabal
|
taffybar = pkgs.haskell.lib.overrideCabal
|
||||||
(hself.callCabal2nix "taffybar" (pkgs.lib.cleanSource taffybar.outPath) { inherit (pkgs) gtk3; })
|
(pkgs.haskell.lib.disableStaticLibraries
|
||||||
|
(hself.callCabal2nix "taffybar" cleanedTaffybarSource { inherit (pkgs) gtk3; }))
|
||||||
(oa: {
|
(oa: {
|
||||||
doHaddock = false;
|
doHaddock = false;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "daily";
|
dates = "hourly";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
|
|||||||
Reference in New Issue
Block a user