diff --git a/flake.nix b/flake.nix index 87de800..331c7aa 100644 --- a/flake.nix +++ b/flake.nix @@ -156,6 +156,7 @@ "kdb424@cubert" = mkHome [./home-manager/machines/cubert.nix] nixpkgs.legacyPackages.aarch64-darwin; "kdb424@farnsworth" = mkHome [./home-manager/machines/headless.nix] nixpkgs.legacyPackages.aarch64-linux; "kdb424@zapp" = mkHome [./home-manager/machines/headless.nix] nixpkgs.legacyPackages.x86_64-linux; + "kdb424@amy" = mkHome [./home-manager/machines/headless.nix] nixpkgs.legacyPackages.x86_64-linux; }; }; diff --git a/home-manager/machines/headless.nix b/home-manager/machines/headless.nix index c16ff64..00826a0 100644 --- a/home-manager/machines/headless.nix +++ b/home-manager/machines/headless.nix @@ -6,7 +6,7 @@ # Home Manager needs a bit of information about you and the # paths it should manage. home.username = "kdb424"; - #home.homeDirectory = "/home/kdb424"; + home.homeDirectory = "/home/kdb424"; # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage diff --git a/home-manager/modules/zsh/p10k.nix b/home-manager/modules/zsh/p10k.nix index 5e5cf9a..142baa7 100644 --- a/home-manager/modules/zsh/p10k.nix +++ b/home-manager/modules/zsh/p10k.nix @@ -29,7 +29,7 @@ in { # file = "p10k.zsh"; # } if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then - [[ ! -f ${configThemeNormal} ]] || source ${configThemeNormal} + [[ ! -f ${configThemeNormal} ]] || source /home/kdb424/.zsh/plugins/powerlevel10k else [[ ! -f ${configThemeTTY} ]] || source ${configThemeTTY} fi diff --git a/home-manager/modules/zsh/plugins.nix b/home-manager/modules/zsh/plugins.nix index 3e39714..f4e4c1e 100644 --- a/home-manager/modules/zsh/plugins.nix +++ b/home-manager/modules/zsh/plugins.nix @@ -48,4 +48,7 @@ enable = true; enableZshIntegration = true; }; + home.packages = with pkgs; [ + perl # needed for plugins + ]; } diff --git a/justfile b/justfile index 34bc96f..660e8c0 100644 --- a/justfile +++ b/justfile @@ -79,7 +79,8 @@ hm-build: if ! test -f ~/.local/state/nix/profiles; then mkdir -p ~/.local/state/nix/profiles fi - home-manager build --flake . + # home-manager build --flake . + nh home build . # Switch to home manager hm-switch: @@ -88,7 +89,8 @@ hm-switch: if ! test -f ~/.local/state/nix/profiles; then mkdir -p ~/.local/state/nix/profiles fi - home-manager switch --flake . + # home-manager switch --flake . + nh home switch . # Nuclear option to get space back gc-full: diff --git a/shell.nix b/shell.nix index 04c7a10..c1496c2 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,6 @@ default = pkgs.mkShell { # Enable experimental features without having to specify the argument NIX_CONFIG = "experimental-features = nix-command flakes"; - nativeBuildInputs = with pkgs; [nix home-manager git just alejandra]; + nativeBuildInputs = with pkgs; [nix home-manager git just alejandra nh]; }; }