Compare commits

...

3 Commits

Author SHA1 Message Date
0686b9b778
system: install nix-diff 2024-04-01 15:26:02 -04:00
719efce1b2
system: enable udisks2 in common/wm 2024-04-01 15:24:10 -04:00
dcd11dec49
Fix prismlauncher rebuilding on every update
Retreiving the hook from nixpkgs-unstable causes the derivation to
change since the store path of nixpkgs-unstable changes
2024-04-01 15:15:13 -04:00
4 changed files with 19 additions and 1 deletions

View File

@ -25,7 +25,7 @@ let
stripJavaArchivesHook = final.makeSetupHook {
name = "strip-java-archives-hook";
propagatedBuildInputs = [ final.strip-nondeterminism ];
} "${nixfiles.inputs.nixpkgs-unstable}/pkgs/build-support/setup-hooks/strip-java-archives.sh";
} ./strip-java-archives.sh;
in {
vesktop = backport' "vesktop";

View File

@ -0,0 +1,16 @@
# This setup hook makes the fixup phase to repack all java archives in a
# deterministic fashion. The most important change being done is the resetting
# of the modification times of the archive entries
fixupOutputHooks+=('stripJavaArchivesIn $prefix')
stripJavaArchivesIn() {
local dir="$1"
echo "stripping java archives in $dir"
find $dir -type f -regextype posix-egrep -regex ".*\.(jar|war|hpi|apk)$" -print0 |
while IFS= read -rd '' f; do
echo "stripping java archive $f"
strip-nondeterminism --type jar "$f"
done
}

View File

@ -10,6 +10,7 @@ in
services = {
power-profiles-daemon.enable = mkDefault true;
blueman.enable = mkDefault config.hardware.bluetooth.enable;
udisks2.enable = mkDefault true;
};
programs = {
nm-applet.enable = mkDefault config.networking.networkmanager.enable;

View File

@ -99,6 +99,7 @@ in
nix-du
graphviz # for nix-du
nvd
nix-diff
# secrets
age