Nixos: Move shell prompt (Starship) into Fish module
This commit is contained in:
@ -283,6 +283,7 @@ rec {
|
|||||||
gnuplot # generate function plots
|
gnuplot # generate function plots
|
||||||
pdf2svg # extract vector graphics from pdf
|
pdf2svg # extract vector graphics from pdf
|
||||||
pandoc # document converting madness
|
pandoc # document converting madness
|
||||||
|
# decker # TODO: Build failure
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
dig # Make DNS requests
|
dig # Make DNS requests
|
||||||
@ -300,20 +301,13 @@ rec {
|
|||||||
sshfs # Mount remote directories via SSH
|
sshfs # Mount remote directories via SSH
|
||||||
|
|
||||||
# GUI apps
|
# GUI apps
|
||||||
# vlc
|
|
||||||
# cool-retro-term
|
|
||||||
ventoy-full # Bootable USB for many ISOs
|
ventoy-full # Bootable USB for many ISOs
|
||||||
sqlitebrowser # To modify tables
|
|
||||||
# dbeaver-bin # To import/export data + diagrams
|
|
||||||
# hoppscotch # Test APIs
|
|
||||||
signal-desktop
|
signal-desktop
|
||||||
# filezilla
|
|
||||||
anki
|
anki
|
||||||
font-manager # Previews fonts, but doesn't set them
|
font-manager # Previews fonts, but doesn't set them
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
keepassxc
|
keepassxc
|
||||||
AusweisApp2
|
AusweisApp2
|
||||||
# decker # TODO: Build failure
|
|
||||||
protonmail-bridge # TODO: Enable on startup, email module
|
protonmail-bridge # TODO: Enable on startup, email module
|
||||||
thunderbird # TODO: Email module
|
thunderbird # TODO: Email module
|
||||||
|
|
||||||
@ -436,28 +430,6 @@ rec {
|
|||||||
nushell.enable = false;
|
nushell.enable = false;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
|
||||||
starship = let
|
|
||||||
flavour = "latte"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
|
|
||||||
in {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = config.modules.fish.enable;
|
|
||||||
settings =
|
|
||||||
{
|
|
||||||
# Other config here
|
|
||||||
format = "$all"; # Remove this line to disable the default prompt format
|
|
||||||
palette = "catppuccin_${flavour}";
|
|
||||||
}
|
|
||||||
// builtins.fromTOML (builtins.readFile
|
|
||||||
(pkgs.fetchFromGitHub
|
|
||||||
{
|
|
||||||
owner = "catppuccin";
|
|
||||||
repo = "starship";
|
|
||||||
rev = "3e3e54410c3189053f4da7a7043261361a1ed1bc";
|
|
||||||
sha256 = "sha256-soEBVlq3ULeiZFAdQYMRFuswIIhI9bclIU8WXjxd7oY=";
|
|
||||||
}
|
|
||||||
+ /palettes/${flavour}.toml));
|
|
||||||
};
|
|
||||||
|
|
||||||
tmux = {
|
tmux = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|
||||||
@ -529,8 +501,8 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fix Discord rich presence for Flatpak
|
|
||||||
systemd.user.tmpfiles.rules = [
|
systemd.user.tmpfiles.rules = [
|
||||||
|
# Fix Discord rich presence for Flatpak
|
||||||
"L %t/discord-ipc-0 - - - - app/com.discordapp.Discord/discord-ipc-0"
|
"L %t/discord-ipc-0 - - - - app/com.discordapp.Discord/discord-ipc-0"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -215,5 +215,27 @@ in {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.starship = let
|
||||||
|
flavour = "latte"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = config.modules.fish.enable;
|
||||||
|
settings =
|
||||||
|
{
|
||||||
|
# Other config here
|
||||||
|
format = "$all"; # Remove this line to disable the default prompt format
|
||||||
|
palette = "catppuccin_${flavour}";
|
||||||
|
}
|
||||||
|
// builtins.fromTOML (builtins.readFile
|
||||||
|
(pkgs.fetchFromGitHub
|
||||||
|
{
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "starship";
|
||||||
|
rev = "3e3e54410c3189053f4da7a7043261361a1ed1bc";
|
||||||
|
sha256 = "sha256-soEBVlq3ULeiZFAdQYMRFuswIIhI9bclIU8WXjxd7oY=";
|
||||||
|
}
|
||||||
|
+ /palettes/${flavour}.toml));
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user