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,65 +1,65 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.myShells.fish;
|
||||
in
|
||||
with lib; {
|
||||
options = {
|
||||
myShells.fish = {enable = mkEnableOption "Enables fish and components.";};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellInit = ''
|
||||
${builtins.readFile ./init/zoxide.fish}
|
||||
${builtins.readFile ./init/nh.fish}
|
||||
${builtins.readFile ./init/tailscale.fish}
|
||||
${builtins.readFile ./init/pass.fish}
|
||||
function fish_greeting
|
||||
${(pkgs.fortune.override {withOffensive = true;})}/bin/fortune -as
|
||||
end
|
||||
funcsave -q fish_greeting
|
||||
with lib; {
|
||||
options = {
|
||||
myShells.fish = { enable = mkEnableOption "Enables fish and components."; };
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellInit = ''
|
||||
${builtins.readFile ./init/zoxide.fish}
|
||||
${builtins.readFile ./init/nh.fish}
|
||||
${builtins.readFile ./init/tailscale.fish}
|
||||
${builtins.readFile ./init/pass.fish}
|
||||
function fish_greeting
|
||||
${(pkgs.fortune.override {withOffensive = true;})}/bin/fortune -as
|
||||
end
|
||||
funcsave -q fish_greeting
|
||||
|
||||
${pkgs.thefuck}/bin/thefuck --alias | source
|
||||
'';
|
||||
shellAliases = import ../aliases {inherit pkgs;};
|
||||
plugins = with pkgs.fishPlugins; [
|
||||
{
|
||||
name = "z";
|
||||
src = z.src;
|
||||
}
|
||||
{
|
||||
name = "plugin-git";
|
||||
src = plugin-git.src;
|
||||
}
|
||||
{
|
||||
name = "transient-fish";
|
||||
src = transient-fish.src;
|
||||
}
|
||||
{
|
||||
name = "done";
|
||||
src = done.src;
|
||||
}
|
||||
{
|
||||
name = "gruvbox";
|
||||
src = gruvbox.src;
|
||||
}
|
||||
{
|
||||
name = "colored-man-pages";
|
||||
src = colored-man-pages.src;
|
||||
}
|
||||
{
|
||||
name = "puffer";
|
||||
src = puffer.src;
|
||||
}
|
||||
{
|
||||
name = "pisces";
|
||||
src = pisces.src;
|
||||
}
|
||||
];
|
||||
};
|
||||
${pkgs.thefuck}/bin/thefuck --alias | source
|
||||
'';
|
||||
shellAliases = import ../aliases { inherit pkgs; };
|
||||
plugins = with pkgs.fishPlugins; [
|
||||
{
|
||||
name = "z";
|
||||
src = z.src;
|
||||
}
|
||||
{
|
||||
name = "plugin-git";
|
||||
src = plugin-git.src;
|
||||
}
|
||||
{
|
||||
name = "transient-fish";
|
||||
src = transient-fish.src;
|
||||
}
|
||||
{
|
||||
name = "done";
|
||||
src = done.src;
|
||||
}
|
||||
{
|
||||
name = "gruvbox";
|
||||
src = gruvbox.src;
|
||||
}
|
||||
{
|
||||
name = "colored-man-pages";
|
||||
src = colored-man-pages.src;
|
||||
}
|
||||
{
|
||||
name = "puffer";
|
||||
src = puffer.src;
|
||||
}
|
||||
{
|
||||
name = "pisces";
|
||||
src = pisces.src;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue