fix flake homeConfigurations eval

This commit is contained in:
Peder Bergebakken Sundt 2024-10-07 11:39:30 +02:00
parent 28e082cd9c
commit 9924c88719
2 changed files with 4 additions and 5 deletions

View File

@ -324,12 +324,11 @@
homeModules.micro = ./users/pbsds/modules/micro.nix;
homeConfigurations = forAllSystems ({ system, ... }: let
mkHome = user: home: inputs: modules: inputs.home-manager.lib.homeManagerConfiguration {
mkHome = username: homeDirectory: inputs: modules: inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${system};
modules = modules ++ [{
home.username = user;
home.homeDirectory = home;
home-manager.sharedModules = [
home = { inherit username homeDirectory; };
imports = [
inputs.sops-nix.homeManagerModules.sops
inputs.nix-index-database.hmModules.nix-index
];

View File

@ -4,7 +4,7 @@ export GUM_FILTER_HEIGHT := "15"
just "$(gum filter --placeholder "Pick a recipie..." $(just --summary --unsorted))"
eval hostname=`just _a_host`:
nix eval .#nixosConfigurations."{{hostname}}".config.system.build.toplevel.outPath
nix eval .#nixosConfigurations."{{hostname}}".config.system.build.toplevel.outPath --show-trace
report hostname=`just _a_host`:
nix eval .#nixosReports."{{hostname}}" --json | yq . --yaml-output | bat --language yaml --style plain --paging never