diff options
-rw-r--r-- | hosts/muhammed/configuration.nix | 7 | ||||
-rw-r--r-- | hosts/muhammed/extra-utils.nix | 15 |
2 files changed, 16 insertions, 6 deletions
diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix index 9c0bef2..06de9fe 100644 --- a/hosts/muhammed/configuration.nix +++ b/hosts/muhammed/configuration.nix @@ -30,12 +30,7 @@ ../../shared/home-manager/development-full ../../shared/home-manager/qbittorrent ../../shared/home-manager/iterm2 - ({pkgs, ...}: { - home.packages = with pkgs; [ - imagemagick - ffmpeg_6-full - ]; - }) + ./extra-utils.nix ]; }; diff --git a/hosts/muhammed/extra-utils.nix b/hosts/muhammed/extra-utils.nix new file mode 100644 index 0000000..5cdd11c --- /dev/null +++ b/hosts/muhammed/extra-utils.nix @@ -0,0 +1,15 @@ +# This HM module adds extra utilities specific to this host. +{pkgs, ...}: let + # Set some default options + xkcdpass' = pkgs.writeShellScriptBin "xkcdpass" '' + ${pkgs.xkcdpass}/bin/xkcdpass --delimiter="" --case capitalize --numwords=5 "$@" + ''; +in { + home.packages = with pkgs; [ + imagemagick + ffmpeg_6-full + + # Generating passwords + xkcdpass' + ]; +} |