From c0bd67cd9afbbbf33e9f785384a6303d288c53b4 Mon Sep 17 00:00:00 2001 From: Nicola Brisotto Date: Tue, 30 Jan 2024 07:47:17 +0100 Subject: [PATCH] Remove hardcoded username from HM cli features --- home/misterio/features/cli/gh.nix | 4 ++-- home/misterio/features/cli/ssh.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/misterio/features/cli/gh.nix b/home/misterio/features/cli/gh.nix index b2ed64c2..0c2e9589 100644 --- a/home/misterio/features/cli/gh.nix +++ b/home/misterio/features/cli/gh.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { programs.gh = { enable = true; @@ -10,6 +10,6 @@ }; }; home.persistence = { - "/persist/home/misterio".directories = [ ".config/gh" ]; + "/persist/home/${config.home.username}".directories = [ ".config/gh" ]; }; } diff --git a/home/misterio/features/cli/ssh.nix b/home/misterio/features/cli/ssh.nix index 8d1d844f..cab45d4e 100644 --- a/home/misterio/features/cli/ssh.nix +++ b/home/misterio/features/cli/ssh.nix @@ -1,4 +1,4 @@ -{ outputs, lib, ... }: +{ outputs, lib, config, ... }: let hostnames = builtins.attrNames outputs.nixosConfigurations; in @@ -22,6 +22,6 @@ in }; home.persistence = { - "/persist/home/misterio".directories = [ ".ssh" ]; + "/persist/home/${config.home.username}".directories = [ ".ssh" ]; }; }