From ff7d03ecfd93ff68179aa758f24655269762ef74 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Tue, 14 Apr 2026 17:29:56 -0500 Subject: [PATCH] modernized homeConfig call --- modules/hosts/john-pc/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/modules/hosts/john-pc/default.nix b/modules/hosts/john-pc/default.nix index 6e758b1..5118963 100644 --- a/modules/hosts/john-pc/default.nix +++ b/modules/hosts/john-pc/default.nix @@ -1,4 +1,4 @@ -{ self, inputs, ... }: +{ withSystem, self, inputs, ... }: let username = "john"; hostname = "john-pc-ubuntu"; @@ -46,7 +46,7 @@ in test-push selfPkgs.neovim-min # ${selfPkgs}.my-neovim - selfPkgs.richPrinter + # selfPkgs.richPrinter selfPkgs.janus-ca ]; @@ -109,10 +109,9 @@ in }; }; - flake.homeConfigurations."${hostname}" = inputs.home-manager.lib.homeManagerConfiguration { - pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; - modules = with inputs.self.modules; [ - homeManager."${hostname}" - ]; - }; + flake.homeConfigurations."john@john-pc-ubuntu" = withSystem "x86_64-linux" (ctx@{ config, inputs', ...}: + inputs.home-manager.lib.homeManagerConfiguration { + pkgs = inputs'.nixpkgs.legacyPackages; + modules = [ inputs.self.modules.homeManager."${hostname}" ]; + }); }