mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 11:41:26 +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
|
||||
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);
|
||||
hardware-configuration = import hardware-configuration-nix;
|
||||
in
|
||||
|
@ -39,12 +36,6 @@
|
|||
hardware-configuration
|
||||
# main configuration part
|
||||
./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