Compare commits

..

3 commits

2 changed files with 24 additions and 8 deletions

View file

@ -131,7 +131,20 @@ in
programs.starship = { programs.starship = {
enable = true; enable = true;
settings = { settings = {
format = "$all$line_break\${custom.ranger}$jobs$battery$time$status$os$container$shell$character"; format = lib.concatStrings [
"$all"
"\${custom.sshAuthSocket}"
"$line_break"
"\${custom.ranger}"
"$jobs"
"$battery"
"$time"
"$status"
"$os"
"$container"
"$shell"
"$character"
];
directory = { directory = {
truncation_length = 5; truncation_length = 5;
truncation_symbol = "/"; truncation_symbol = "/";
@ -148,6 +161,12 @@ in
command = "echo \"\""; command = "echo \"\"";
style = "bold 208"; style = "bold 208";
}; };
custom.sshAuthSocket = {
when = "test -S \"$SSH_AUTH_SOCK\"";
command = "echo -e \"SSH Auth Agent\"";
style = "124";
format = "with [$output]($style) ";
};
}; };
}; };
}; };

View file

@ -5,13 +5,10 @@ self:
inputsWithPackages = import self.inputsPath { inputsWithPackages = import self.inputsPath {
pkgs = self.packagesForSystem builtins.currentSystem; pkgs = self.packagesForSystem builtins.currentSystem;
}; };
in { in self.lib.concatMapAttrs (name: value: {
"inputs/nixpkgs" = inputsWithPackages.nixpkgs; "inputs/${name}" = value;
"inputs/nixpkgs-unstable" = inputsWithPackages.nixpkgs-unstable; }) inputsWithPackages
"inputs/nix-bitcoin" = inputsWithPackages.nix-bitcoin; )
"inputs/cosmic-modules" = inputsWithPackages.cosmic-modules;
"inputs/nixos-vscode-server" = inputsWithPackages.nixos-vscode-server;
})
# MARK: NixOS modules # MARK: NixOS modules
// ( let // ( let