My Nix Configuration

[flake] Final updates

Changed files
+3 -50
modules
home
profiles
programs
packages
git-credential-rbw
-1
modules/home/profiles/gui/default.nix
···
ueberzug
lutris
py.olympus
-
py.git-credential-rbw
prismlauncher
protontricks
proton-caller
···
ueberzug
lutris
py.olympus
prismlauncher
protontricks
proton-caller
+1 -1
modules/home/programs/git/default.nix
···
settings = {
editor = lib.getExe pkgs.py.nvim;
git_protocol = "https";
-
browser = lib.mkIf config.py.sway.enable pkgs.firefox-wayland;
prompt = "enabled";
};
};
···
settings = {
editor = lib.getExe pkgs.py.nvim;
git_protocol = "https";
+
browser = lib.mkIf config.py.gui.enable pkgs.firefox;
prompt = "enabled";
};
};
+1 -1
modules/home/programs/ssh/default.nix
···
"Match" = ''host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"'';
};
};
-
home.file.".ssh/authorized_signatures".text = lib.mkIf cfg.enable import ./ssh-auth-signers.nix;
};
}
···
"Match" = ''host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"'';
};
};
+
home.file.".ssh/authorized_signatures".text = import ./ssh-auth-signers.nix;
};
}
+1 -1
modules/home/programs/starship/default.nix
···
enableFishIntegration = true;
enableBashIntegration = true;
enableZshIntegration = true;
-
settings = import ./settings.nix lib;
};
}
···
enableFishIntegration = true;
enableBashIntegration = true;
enableZshIntegration = true;
+
settings = import ./settings.nix { inherit lib; };
};
}
-46
packages/git-credential-rbw/default.nix
···
-
{ pkgs, ... }:
-
pkgs.writeShellApplication {
-
name = "git-credential-rbw";
-
runtimeInputs = [ pkgs.rbw ];
-
checkPhase = "true";
-
text = ''
-
#${pkgs.bash}/bin/bash
-
-
declare -A params
-
-
if [ "x$1" == "xget" ]; then
-
read line
-
while [ -n "$line" ]; do
-
key=''${line%%=*}
-
value=''${line#*=}
-
params[$key]=$value
-
read line
-
done
-
-
if [ "''${params['protocol']}" != "xhttps" ]; then
-
exit
-
fi
-
-
if [ -z "''${params["host"]}" ]; then
-
exit
-
fi
-
-
rbw ls > /dev/null 2>&1
-
if [ $? -ne 0 ]; then
-
echo "Please login to rbw to use git credential helper" > /dev/stderr
-
exit
-
fi
-
-
user=`rbw get --full ''${params["host"]} | grep "Username:" | cut -d' ' -f2-`
-
pass=`rbw get ''${params["host"]}`
-
-
if [ "x$user" == "x" ] || [ "x$pass" == "x" ]; then
-
echo "Couldn't find host in rbw DB." > /dev/stderr
-
exit
-
fi
-
-
echo username=$user
-
echo password=$pass
-
fi
-
'';
-
}
···