nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit b13d4f8e0d6869f6bc98c658d95e8e2d6ef6c404
parent d3b472400a23285b2577c09056089b1a853682aa
Author: Peter <peter@minskio.co.uk>
Date:   Mon, 12 Oct 2026 16:01:40 +0100

Move home-manager version into variables.nix

Diffstat:
Mcommon/home-manager.nix | 5+++--
Mreadme.md | 2+-
Mvariables.sample.nix | 1+
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/common/home-manager.nix b/common/home-manager.nix @@ -1,7 +1,8 @@ -{ machine, vars, ... }: +{ lib, machine, vars, ... }: let - home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-26.05.tar.gz"; + hmVersion = (import ../variables.nix { inherit lib; }).hm-version; + home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${hmVersion}.tar.gz"; in { diff --git a/readme.md b/readme.md @@ -35,4 +35,4 @@ sudo nix-channel --list sudo nix-channel --add https://nixos.org/channels/nixos-26.05 nixos sudo nix-channel --update ``` -The home-manager version is defined in `common/home-manager.nix`. +The home-manager version is defined in `variables.nix` as `hm-version`. diff --git a/variables.sample.nix b/variables.sample.nix @@ -1,6 +1,7 @@ { lib }: rec { + hm-version = "26.05"; user = rec { fullname = "Peter"; username = lib.strings.toLower fullname;