Fix fish bug 2

This commit is contained in:
Victor Mignot 2024-08-02 21:05:28 +02:00
parent f7585b5bf4
commit 533f1494a5
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
2 changed files with 11 additions and 15 deletions

View file

@ -6,7 +6,6 @@
sopsHmModule,
...
}:
with lib;
{
imports = [
@ -39,17 +38,15 @@ with lib;
keymap = config.console.keyMap;
isNvidiaGpu = (config.my.hardware.gpu == "nvidia");
};
home-manager.users = builtins.mapAttrs (
name: value:
{
home.username = name;
home.homeDirectory = "/home/${name}";
home.stateVersion = machineProps.stateVersion;
programs.home-manager.enable = true;
programs.fish.enable = value.shell == pkgs.fish;
}
// value.hmConfig
) config.my.users;
home-manager.users = builtins.mapAttrs (name: value: {
imports = [ value.hmConfig ];
home.username = name;
home.homeDirectory = "/home/${name}";
home.stateVersion = machineProps.stateVersion;
programs.home-manager.enable = true;
programs.fish.enable = value.shell == pkgs.fish;
}) config.my.users;
}
else
{ }

View file

@ -1,10 +1,9 @@
{
lib,
pkgs,
config,
lib,
...
}:
with lib;
let
swayLaunchScript =
if config.my.desktop.sway.enable then
@ -17,7 +16,7 @@ let
"";
in
{
config.programs.fish = mkIf config.programs.fish.enable {
programs.fish = lib.mkIf config.programs.fish.enable {
plugins = [
{
name = "bobthefish";