From 4bbb6d0e203f60b239570b87eee54bd9dcf4751c Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 23 Nov 2021 23:09:40 +0100 Subject: [PATCH] add a version file --- common/common.nix | 2 +- home-manager/common.nix | 2 +- version.nix | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 version.nix diff --git a/common/common.nix b/common/common.nix index f7bd3e3..a1fe580 100644 --- a/common/common.nix +++ b/common/common.nix @@ -77,7 +77,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "21.05"; # Did you read the comment? + system.stateVersion = import ../version.nix; } diff --git a/home-manager/common.nix b/home-manager/common.nix index de16c6b..1333545 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -14,7 +14,7 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home.stateVersion = "21.05"; + home.stateVersion = import ../version.nix; # Let Home Manager install and manage itself. programs.home-manager.enable = true; diff --git a/version.nix b/version.nix new file mode 100644 index 0000000..4fbd8a3 --- /dev/null +++ b/version.nix @@ -0,0 +1 @@ +"21.05"