mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
fix[work]: fix aws,cdr commands, easier git switch in emacs
This commit is contained in:
parent
40e1adc402
commit
568350df9c
52 changed files with 4610 additions and 1364 deletions
13
pkgs/config/cdr/default.nix
Normal file
13
pkgs/config/cdr/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ name, homeConfig, writeShellApplication, fzf, ... }:
|
||||
|
||||
writeShellApplication {
|
||||
inherit name;
|
||||
runtimeInputs = [ fzf ];
|
||||
text = ''
|
||||
DOCUMENT_DIR_WORK=${homeConfig.systemd.user.sessionVariables.DOCUMENT_DIR_WORK or ""}
|
||||
DOCUMENT_DIR_PRIV=${homeConfig.systemd.user.sessionVariables.DOCUMENT_DIR_PRIV}
|
||||
FLAKE=${homeConfig.home.sessionVariables.FLAKE}
|
||||
|
||||
cd "$( (find "$DOCUMENT_DIR_WORK" "$DOCUMENT_DIR_PRIV" -maxdepth 1 && echo "$FLAKE") | fzf )"
|
||||
'';
|
||||
}
|
||||
11
pkgs/config/default.nix
Normal file
11
pkgs/config/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ self, homeConfig, lib, pkgs, ... }:
|
||||
let
|
||||
mkPackages = names: pkgs: builtins.listToAttrs (map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = pkgs.callPackage "${self}/pkgs/config/${name}" { inherit self name homeConfig; };
|
||||
})
|
||||
names);
|
||||
packageNames = lib.swarselsystems.readNix "pkgs/config";
|
||||
in
|
||||
mkPackages packageNames pkgs
|
||||
Loading…
Add table
Add a link
Reference in a new issue