feat(home-manager): service defs and fmt
fmt: reformatted using nixpkgs-fmt prettifier mpd: created configuration hypr: add window rules commons: add usingMusicPlayerDaemon variable
This commit is contained in:
parent
2d4b39c72f
commit
7d88765f5d
67 changed files with 633 additions and 573 deletions
|
@ -1,27 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.myShells.prompts.starship;
|
||||
in
|
||||
with lib; {
|
||||
options = {
|
||||
myShells.prompts.starship.enable = mkEnableOption "Enables starship prompts.";
|
||||
myShells.prompts.starship.confPath = mkOption {
|
||||
type = types.path;
|
||||
default = ./presets/default.toml;
|
||||
};
|
||||
with lib; {
|
||||
options = {
|
||||
myShells.prompts.starship.enable = mkEnableOption "Enables starship prompts.";
|
||||
myShells.prompts.starship.confPath = mkOption {
|
||||
type = types.path;
|
||||
default = ./presets/default.toml;
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
myShells.prompts.starship.confPath = ./presets/pure-direnv.toml;
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = config.myShells.zsh.enable;
|
||||
enableFishIntegration = config.myShells.fish.enable;
|
||||
enableNushellIntegration = config.myShells.nushell.enable;
|
||||
settings = builtins.fromTOML (builtins.readFile cfg.confPath);
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
myShells.prompts.starship.confPath = ./presets/pure-direnv.toml;
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = config.myShells.zsh.enable;
|
||||
enableFishIntegration = config.myShells.fish.enable;
|
||||
enableNushellIntegration = config.myShells.nushell.enable;
|
||||
settings = builtins.fromTOML (builtins.readFile cfg.confPath);
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue