refactor
This commit is contained in:
1 parent
81e576a877
commit
cde67e4d75
46 files changed
+619
-518
No files matched your search
@@ -1,11 +1,10 @@
|
||||
{
|
||||
config,
|
||||
facts,
|
||||
lib,
|
||||
pkgs,
|
||||
}:
|
||||
let
|
||||
nixosConfigDir = facts.account.nixosConfigurationPath;
|
||||
nixosConfigDir = config.facts.account.nixosConfigurationPath;
|
||||
mkTerminalScript =
|
||||
{
|
||||
name,
|
||||
@@ -28,7 +27,7 @@ let
|
||||
text = lib.concatStringsSep "\n" [
|
||||
"# shellcheck disable=SC2016"
|
||||
"cd ${lib.escapeShellArg workdir}"
|
||||
"exec ${lib.escapeShellArg config.facts.desktop.terminalCommand} ${argString}"
|
||||
"exec ${lib.escapeShellArgs config.desktop.commands.terminal} ${argString}"
|
||||
];
|
||||
};
|
||||
in
|
||||
@@ -83,13 +82,6 @@ rec {
|
||||
'';
|
||||
};
|
||||
|
||||
neovimProjects = mkTerminalScript {
|
||||
name = "niri-shortcut-neovim-projects";
|
||||
command = ''
|
||||
nvim -c 'Telescope projects'
|
||||
'';
|
||||
};
|
||||
|
||||
pickColor = pkgs.writeShellApplication {
|
||||
name = "niri-shortcut-pick-color";
|
||||
runtimeInputs = [
|
||||
|
||||
Reference in new issue
Block a user