Reformat nix source file using nixfmt
This commit is contained in:
parent
2e4a532958
commit
9201969c1b
220 changed files with 3169 additions and 2487 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue