mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
fix[work]: fix aws,cdr commands, easier git switch in emacs
Some checks failed
Flake check / Check flake (push) Has been cancelled
Some checks failed
Flake check / Check flake (push) Has been cancelled
This commit is contained in:
parent
46f2ec8b96
commit
ec6ae25e9b
52 changed files with 4610 additions and 1364 deletions
|
|
@ -7,6 +7,7 @@
|
|||
pass-fuzzel
|
||||
cdw
|
||||
cdb
|
||||
cdr
|
||||
bak
|
||||
timer
|
||||
e
|
||||
|
|
@ -31,8 +32,6 @@
|
|||
sshrm
|
||||
endme
|
||||
git-replace
|
||||
|
||||
rustdesk-vbc
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,9 +47,20 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# nixpkgs.overlays = lib.mkIf isNixos (lib.mkForce null);
|
||||
nixpkgs = lib.mkIf (!isNixos) {
|
||||
overlays = [ outputs.overlays.default ];
|
||||
overlays = [
|
||||
outputs.overlays.default
|
||||
(final: prev:
|
||||
let
|
||||
additions = final: _: import "${self}/pkgs/config" {
|
||||
inherit self config lib;
|
||||
pkgs = final;
|
||||
homeConfig = config;
|
||||
};
|
||||
in
|
||||
additions final prev
|
||||
)
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -620,6 +620,19 @@
|
|||
_children = [{ Resize._args = [ "Increase" ]; }];
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = {
|
||||
_args = [ "Alt r" ];
|
||||
_children = [
|
||||
{
|
||||
WriteChars._args = [ "source cdr" ];
|
||||
}
|
||||
{
|
||||
WriteChars._args = [ "\n" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = {
|
||||
_args = [ "Alt f" ];
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ in
|
|||
hotspot = "nmcli connection up local; nmcli device wifi hotspot;";
|
||||
youtube-dl = "yt-dlp";
|
||||
cat-orig = "cat";
|
||||
cdr = "cd \"$( (find $DOCUMENT_DIR_WORK $DOCUMENT_DIR_PRIV -maxdepth 1 && echo $FLAKE) | fzf )\"";
|
||||
# cdr = "cd \"$( (find $DOCUMENT_DIR_WORK $DOCUMENT_DIR_PRIV -maxdepth 1 && echo $FLAKE) | fzf )\"";
|
||||
cdr = "source cdr";
|
||||
nix-ldd-ldd = "LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH ldd";
|
||||
nix-ldd = "LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH ldd";
|
||||
nix-ldd-locate = "nix-locate --minimal --top-level -w ";
|
||||
|
|
|
|||
|
|
@ -1,28 +1,36 @@
|
|||
{ self, config, pkgs, lib, vars, nixosConfig ? config, ... }:
|
||||
{ self, inputs, config, pkgs, lib, vars, nixosConfig ? config, ... }:
|
||||
let
|
||||
inherit (config.swarselsystems) homeDir;
|
||||
inherit (config.swarselsystems) homeDir mainUser;
|
||||
inherit (nixosConfig.repo.secrets.local.mail) allMailAddresses;
|
||||
inherit (nixosConfig.repo.secrets.local.work) mailAddress;
|
||||
|
||||
certsSopsFile = self + /secrets/certs/secrets.yaml;
|
||||
in
|
||||
{
|
||||
options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings";
|
||||
config = lib.mkIf config.swarselmodules.optional.work
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
stable.teams-for-linux
|
||||
shellcheck
|
||||
dig
|
||||
docker
|
||||
postman
|
||||
# rclone
|
||||
libguestfs-with-appliance
|
||||
prometheus.cli
|
||||
tigervnc
|
||||
# openstackclient
|
||||
({
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
stable.teams-for-linux
|
||||
shellcheck
|
||||
dig
|
||||
docker
|
||||
postman
|
||||
# rclone
|
||||
libguestfs-with-appliance
|
||||
prometheus.cli
|
||||
tigervnc
|
||||
# openstackclient
|
||||
|
||||
vscode
|
||||
];
|
||||
vscode
|
||||
|
||||
rustdesk-vbc
|
||||
];
|
||||
sessionVariables = {
|
||||
AWS_CA_BUNDLE = nixosConfig.sops.secrets.harica-root-ca.path;
|
||||
};
|
||||
};
|
||||
systemd.user.sessionVariables = {
|
||||
DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work";
|
||||
} // lib.optionalAttrs (!config.swarselsystems.isPublic) {
|
||||
|
|
@ -644,6 +652,15 @@ in
|
|||
};
|
||||
|
||||
};
|
||||
};
|
||||
} // lib.optionalAttrs (inputs ? sops) {
|
||||
sops.secrets = lib.mkIf (!config.swarselsystems.isPublic && !config.swarselsystems.isNixos) {
|
||||
harica-root-ca = {
|
||||
sopsFile = certsSopsFile;
|
||||
path = "${homeDir}/.aws/certs/harica-root.pem";
|
||||
owner = mainUser;
|
||||
};
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue