gomuks
This commit is contained in:
parent
4742abfe15
commit
948353107d
5 changed files with 31 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
./eid.nix
|
||||
./git.nix
|
||||
./global-mailer.nix
|
||||
./gomuks.nix
|
||||
./neovim.nix
|
||||
./nix.nix
|
||||
./nginx.nix
|
||||
|
|
26
modules/gomuks.nix
Normal file
26
modules/gomuks.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let cfg = config.chvp;
|
||||
in
|
||||
{
|
||||
options.chvp.gomuks.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.gomuks.enable {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
gomuks = pkgs.writeShellScriptBin "gomuks" ''
|
||||
export GOMUKS_CACHE_HOME="${cfg.cachePrefix}${config.users.users.charlotte.home}/.cache/gomuks"
|
||||
export GOMUKS_DATA_HOME="${cfg.cachePrefix}${config.users.users.charlotte.home}/.local/share/gomuks"
|
||||
export GOMUKS_CONFIG_HOME="${cfg.cachePrefix}${config.users.users.charlotte.home}/.config/gomuks"
|
||||
${super.alacritty}/bin/alacritty -e ${super.gomuks}/bin/gomuks
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.packages = [ pkgs.gomuks ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue