fill out murex a bit, cosmic fixes
This commit is contained in:
parent
a4ce7db9c9
commit
67702255a2
19 changed files with 426 additions and 81 deletions
|
@ -5,6 +5,7 @@
|
|||
../programs/xresources.nix
|
||||
../programs/helix.nix
|
||||
../programs/atuin.nix
|
||||
../programs/murex.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
btop
|
||||
|
|
31
home/programs/murex.nix
Normal file
31
home/programs/murex.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{pkgs, ...}: {
|
||||
programs.murex = {
|
||||
enable = true;
|
||||
useXdgConfig = true;
|
||||
direnv = true;
|
||||
managePlugins = true;
|
||||
profile = ''
|
||||
config: set shell auto-cd true
|
||||
'';
|
||||
plugins = let
|
||||
inherit
|
||||
(pkgs)
|
||||
murex-jump
|
||||
murex-starship
|
||||
;
|
||||
in [
|
||||
murex-jump
|
||||
murex-starship
|
||||
];
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.packages = let
|
||||
inherit (pkgs) jump;
|
||||
in [
|
||||
jump
|
||||
];
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
jnoortheen.nix-ide
|
||||
arrterian.nix-env-selector
|
||||
mkhl.direnv
|
||||
continue.continue
|
||||
# silverquark.dancehelix
|
||||
# gregoire.dance
|
||||
];
|
||||
|
|
|
@ -24,6 +24,7 @@ in {
|
|||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
useXdgConfig = mkEnableOption "override MUREX_{PRELOAD,MODULES,PROFILE} env vars to conform to XDG_CONFIG_HOME";
|
||||
};
|
||||
config = {
|
||||
home.file =
|
||||
|
@ -47,7 +48,7 @@ in {
|
|||
".murex_modules/packages.json" = {
|
||||
text = builtins.toJSON (map (plugin: {
|
||||
Protocol = "nix";
|
||||
URI = "https://none.thanks/managed.git";
|
||||
URI = "nix://managed.git";
|
||||
Package = plugin.pname;
|
||||
})
|
||||
cfg.plugins);
|
||||
|
@ -62,5 +63,10 @@ in {
|
|||
};
|
||||
})
|
||||
cfg.plugins)));
|
||||
home.sessionVariables = mkIf cfg.useXdgConfig {
|
||||
MUREX_PRELOAD = "$XDG_CONFIG_HOME/murex/";
|
||||
MUREX_MODULES = "$XDG_CONFIG_HOME/murex/";
|
||||
MUREX_PROFILE = "$XDG_CONFIG_HOME/murex/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue