Make version passing work.
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user