mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +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
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
|
||||
|
|
@ -3,9 +3,9 @@ let
|
|||
mkPackages = names: pkgs: builtins.listToAttrs (map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = pkgs.callPackage "${self}/pkgs/${name}" { inherit self name; };
|
||||
value = pkgs.callPackage "${self}/pkgs/flake/${name}" { inherit self name; };
|
||||
})
|
||||
names);
|
||||
packageNames = lib.swarselsystems.readNix "pkgs";
|
||||
packageNames = lib.swarselsystems.readNix "pkgs/flake";
|
||||
in
|
||||
mkPackages packageNames pkgs
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{ name, writeShellApplication, sway, ... }:
|
||||
|
||||
writeShellApplication {
|
||||
inherit name;
|
||||
runtimeInputs = [ sway ];
|
||||
text = ''
|
||||
swaymsg '[app_id=at.yrlf.wl_mirror] move to workspace 14:T'
|
||||
swaymsg '[app_id=at.yrlf.wl_mirror] fullscreen'
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue