rename systemPackages as defaultProfile.packages
it doesn't work the same way as in nixos, so don't name it the same way
This commit is contained in:
@@ -8,15 +8,15 @@
|
||||
, writeText
|
||||
} : config :
|
||||
let
|
||||
config-pseudofiles = pseudofile.write "config.etc"
|
||||
(config.environment.contents);
|
||||
pseudofiles =
|
||||
pseudofile.write "config.etc" (config.environment.contents);
|
||||
|
||||
storefs = callPackage <nixpkgs/nixos/lib/make-squashfs.nix> {
|
||||
# add pseudofiles as packages to store so that the packages they
|
||||
# depend on are also added
|
||||
storeContents = [
|
||||
config-pseudofiles
|
||||
] ++ config.packages ;
|
||||
# 1) Every required package is referenced from somewhere
|
||||
# outside /nix/store. 2) Every file outside the store is
|
||||
# specified by config.environment. 3) Therefore, closing over
|
||||
# the pseudofile will give us all the needed packages
|
||||
storeContents = [ pseudofiles ];
|
||||
};
|
||||
in runCommand "frob-squashfs" {
|
||||
nativeBuildInputs = with buildPackages; [ squashfsTools qprint ];
|
||||
@@ -24,6 +24,6 @@ in runCommand "frob-squashfs" {
|
||||
cp ${storefs} ./store.img
|
||||
chmod +w store.img
|
||||
mksquashfs - store.img -no-recovery -quiet -no-progress -root-becomes store -p "/ d 0755 0 0"
|
||||
mksquashfs - store.img -no-recovery -quiet -no-progress -root-becomes nix -p "/ d 0755 0 0" -pf ${config-pseudofiles}
|
||||
mksquashfs - store.img -no-recovery -quiet -no-progress -root-becomes nix -p "/ d 0755 0 0" -pf ${pseudofiles}
|
||||
cp store.img $out
|
||||
''
|
||||
|
Reference in New Issue
Block a user