refactor: small changes

This commit is contained in:
Moritz Böhme 2023-09-10 15:07:55 +02:00
parent 749e2cf67d
commit 372ee5985a
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 86 additions and 54 deletions

View file

@ -8,9 +8,12 @@ with lib;
let
cfg = config.my.programs.fish;
shellConfig = config.my.shell;
exportVariables =
lib.mapAttrsToList (n: v: ''set -x ${n} "${v}"'') shellConfig.variables;
exportedVariables = lib.concatStringsSep "\n" exportVariables;
exportedVariables =
let
exportVariables =
lib.mapAttrsToList (n: v: ''set -x ${n} "${v}"'') shellConfig.variables;
in
lib.concatStringsSep "\n" exportVariables;
in
{
options.my.programs.fish.enable = mkEnableOption "fish";