From 17820671918d04914b19de288631ebeb748d57cb Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 5 Jan 2025 17:09:45 +0100 Subject: hosts/muhammed: Add xkcdpass (again) This was originally done in 2995fc5 but got lost in refactoring. --- hosts/muhammed/configuration.nix | 7 +------ hosts/muhammed/extra-utils.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 hosts/muhammed/extra-utils.nix 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' + ]; +} -- cgit v1.2.3