Make version passing work.

This commit is contained in:
2023-06-30 11:13:15 +01:00
parent ba0afde81f
commit bff66d05b9
2 changed files with 4 additions and 2 deletions

View File

@@ -10,9 +10,10 @@
outputs = { self, nixpkgs, deploy-rs, ... }@inputs: outputs = { self, nixpkgs, deploy-rs, ... }@inputs:
let let
inherit (self);
mkNixos = modules: nixpkgs.lib.nixosSystem { mkNixos = modules: nixpkgs.lib.nixosSystem {
inherit modules; inherit modules;
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs self; };
}; };
in { in {
nixosConfigurations = { nixosConfigurations = {

View File

@@ -1,3 +1,4 @@
{ pkgs, self, ... }:
{ {
imports = [ imports = [
./boot.nix ./boot.nix
@@ -12,7 +13,7 @@
system.copySystemConfiguration = false; # not supported with flakes system.copySystemConfiguration = false; # not supported with flakes
# Let 'nixos-version --json' know about the Git revision of the flake # Let 'nixos-version --json' know about the Git revision of the flake
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = pkgs.lib.mkIf (self ? rev) self.rev;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions