From ef2ea7092786229471d1a9cb6ad4f1ba1ba1b0bb Mon Sep 17 00:00:00 2001 From: Francis Hamel <36383308+francishamel@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:14:30 -0500 Subject: [PATCH 1/2] Remove useless nix trusted users --- nixos/flake-module.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/nixos/flake-module.nix b/nixos/flake-module.nix index 28e9561..60decd2 100644 --- a/nixos/flake-module.nix +++ b/nixos/flake-module.nix @@ -13,9 +13,6 @@ }; options = "--delete-older-than 30d"; }; - - # TODO: parameterize the user name - settings.trusted-users = [ "francis" ]; }; nixpkgs.config.allowUnfree = true; From 31f63aef3be8747084ed3c2061f76bd3b86f6945 Mon Sep 17 00:00:00 2001 From: Francis Hamel <36383308+francishamel@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:15:10 -0500 Subject: [PATCH 2/2] Replace .. alias from cd to z --- home-manager/modules/zoxide.nix | 10 +++++++--- home-manager/modules/zsh/common.nix | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/home-manager/modules/zoxide.nix b/home-manager/modules/zoxide.nix index 043ffeb..10ea422 100644 --- a/home-manager/modules/zoxide.nix +++ b/home-manager/modules/zoxide.nix @@ -1,8 +1,12 @@ { ... }: { - programs.zoxide = { - enable = true; - enableZshIntegration = true; + programs = { + zoxide = { + enable = true; + enableZshIntegration = true; + }; + + zsh.shellAliases.".." = "z .."; }; } diff --git a/home-manager/modules/zsh/common.nix b/home-manager/modules/zsh/common.nix index 1292f0b..5d688ad 100644 --- a/home-manager/modules/zsh/common.nix +++ b/home-manager/modules/zsh/common.nix @@ -5,7 +5,6 @@ dotDir = ".config/zsh"; enable = true; historySubstringSearch.enable = true; - shellAliases.".." = "cd .."; initExtra = '' bindkey '^U' backward-kill-line '';