forked from pub-solar/os
tritonshell: init and adjust paths to source scripts in zshrc
This commit is contained in:
parent
c889aa96dc
commit
2d68f026ef
|
@ -44,6 +44,9 @@
|
||||||
# PubSolarOS additions
|
# PubSolarOS additions
|
||||||
nix-dram.url = "github:dramforever/nix-dram";
|
nix-dram.url = "github:dramforever/nix-dram";
|
||||||
nix-dram.inputs.nixpkgs.follows = "latest";
|
nix-dram.inputs.nixpkgs.follows = "latest";
|
||||||
|
|
||||||
|
tritonshell.url = "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main&dir=template";
|
||||||
|
tritonshell.inputs.nixpkgs.follows = "latest";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -57,7 +60,7 @@
|
||||||
, agenix
|
, agenix
|
||||||
, nvfetcher
|
, nvfetcher
|
||||||
, deploy
|
, deploy
|
||||||
, nix-dram
|
, tritonshell
|
||||||
, ...
|
, ...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
digga.lib.mkFlake
|
digga.lib.mkFlake
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ config, home-manager, lib, pkgs, ... }:
|
{ config, home-manager, inputs, lib, pkgs, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
psCfg = config.pub-solar;
|
psCfg = config.pub-solar;
|
||||||
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
||||||
|
tritonshell = inputs.tritonshell;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -71,7 +72,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
initExtra = import ./zshrc.nix { inherit config; inherit pkgs; };
|
initExtra = import ./zshrc.nix { inherit config pkgs tritonshell; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg;
|
# xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, tritonshell, ... }:
|
||||||
''
|
''
|
||||||
bindkey "^[[1;3D" backward-word
|
bindkey "^[[1;3D" backward-word
|
||||||
bindkey "^[[1;3C" forward-word
|
bindkey "^[[1;3C" forward-word
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
source unset-env.sh
|
source unset-env.sh
|
||||||
triton profile set "$2"
|
triton profile set "$2"
|
||||||
fi
|
fi
|
||||||
source ~/CodeRoom/greenbaum.cloud/tritonshell/template/pkgs/utils/triton-docker.env.sh
|
source ${tritonshell.packages.${pkgs.system}.triton-docker-env}/bin/triton-docker-env.sh
|
||||||
elif [[ "$1" == "unset" ]]; then
|
elif [[ "$1" == "unset" ]]; then
|
||||||
source ~/CodeRoom/greenbaum.cloud/tritonshell/template/pkgs/utils/unset-env.sh
|
source ${tritonshell.packages.${pkgs.system}.triton-utils}/bin/unset-env.sh
|
||||||
elif [[ "$1" == "env" ]]; then
|
elif [[ "$1" == "env" ]]; then
|
||||||
env | grep "DOCKER\|MANTA\|SDC\|TRITON" | sort
|
env | grep "DOCKER\|MANTA\|SDC\|TRITON" | sort
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue