mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-26 12:51:30 +00:00
do not try to embed flake's git revision
This commit is contained in:
parent
f11d8cc902
commit
2d7680d456
|
@ -22,9 +22,6 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
cfgShortRev = builtins.substring 0 7 self.rev;
|
|
||||||
nixosLabel = config:
|
|
||||||
"${config.system.nixos.release}.${cfgShortRev}.${nixpkgs.shortRev}";
|
|
||||||
userdata = builtins.fromJSON (builtins.readFile userdata-json);
|
userdata = builtins.fromJSON (builtins.readFile userdata-json);
|
||||||
hardware-configuration = import hardware-configuration-nix;
|
hardware-configuration = import hardware-configuration-nix;
|
||||||
in
|
in
|
||||||
|
@ -39,12 +36,6 @@
|
||||||
hardware-configuration
|
hardware-configuration
|
||||||
# main configuration part
|
# main configuration part
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
# we need NixOS repository git commit sha1 embedded
|
|
||||||
({ config, ... }: {
|
|
||||||
system.nixos.label = nixosLabel config;
|
|
||||||
system.nixos.version = nixosLabel config;
|
|
||||||
system.configurationRevision = self.rev;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue