Reformat nix source file using nixfmt

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 2e4a532958
commit 9201969c1b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
220 changed files with 3169 additions and 2487 deletions

View file

@ -2,30 +2,31 @@
lib,
config,
...
}: let
}:
let
cfg = config.youthlic.programs.starship;
fish-cfg = config.youthlic.programs.fish;
bash-cfg = config.youthlic.programs.bash;
ion-cfg = config.youthlic.programs.ion;
in {
in
{
options = {
youthlic.programs.starship = {
enable = lib.mkEnableOption "starship";
};
};
config = lib.mkMerge [
(
lib.mkIf cfg.enable {
programs.starship = {
enable = true;
enableTransience = true;
settings = let
(lib.mkIf cfg.enable {
programs.starship = {
enable = true;
enableTransience = true;
settings =
let
config-file = builtins.readFile ./config.toml;
in
builtins.fromTOML config-file;
};
}
)
builtins.fromTOML config-file;
};
})
(lib.mkIf (cfg.enable && fish-cfg.enable) {
programs.starship.enableFishIntegration = true;
programs.fish.functions = {