mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
refactor: pkgs paths to self
This commit is contained in:
parent
b71bb5794a
commit
d397be861b
26 changed files with 174 additions and 126 deletions
|
|
@ -2190,12 +2190,14 @@ This app allows me, in conjunction with my Yubikey, to quickly enter passwords w
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/pass-fuzzel/default.nix
|
#+begin_src nix :tangle pkgs/pass-fuzzel/default.nix
|
||||||
{ writeShellApplication, libnotify, pass, fuzzel, wtype }:
|
{ self, writeShellApplication, libnotify, pass, fuzzel, wtype }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "pass-fuzzel";
|
name = "pass-fuzzel";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ libnotify (pass.withExtensions (exts: [ exts.pass-otp ])) fuzzel wtype ];
|
runtimeInputs = [ libnotify (pass.withExtensions (exts: [ exts.pass-otp ])) fuzzel wtype ];
|
||||||
text = builtins.readFile ../../scripts/pass-fuzzel.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -2210,7 +2212,7 @@ The version of =cura= used to be quite outdated in nixpkgs. I am fetching a newe
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/cura5/default.nix
|
#+begin_src nix :tangle pkgs/cura5/default.nix
|
||||||
# taken from https://github.com/NixOS/nixpkgs/issues/186570#issuecomment-1627797219
|
# taken from https://github.com/NixOS/nixpkgs/issues/186570#issuecomment-1627797219
|
||||||
{ appimageTools, fetchurl, writeScriptBin, pkgs }:
|
{ appimageTools, fetchurl, writeScriptBin, pkgs, ... }:
|
||||||
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -2250,7 +2252,7 @@ This script allows for quick git home-manager specialisation switching.
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/hm-specialisation/default.nix
|
#+begin_src nix :tangle pkgs/hm-specialisation/default.nix
|
||||||
{ writeShellApplication, fzf, findutils, home-manager }:
|
{ writeShellApplication, fzf, findutils, home-manager, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "hm-specialisation";
|
name = "hm-specialisation";
|
||||||
|
|
@ -2274,7 +2276,7 @@ This script allows for quick git worktree switching.
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/cdw/default.nix
|
#+begin_src nix :tangle pkgs/cdw/default.nix
|
||||||
{ writeShellApplication, fzf }:
|
{ writeShellApplication, fzf, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "cdw";
|
name = "cdw";
|
||||||
|
|
@ -2295,7 +2297,7 @@ This script allows for quick git worktree switching.
|
||||||
This script allows for quick git branch switching.
|
This script allows for quick git branch switching.
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/cdb/default.nix
|
#+begin_src nix :tangle pkgs/cdb/default.nix
|
||||||
{ writeShellApplication, fzf }:
|
{ writeShellApplication, fzf, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "cdb";
|
name = "cdb";
|
||||||
|
|
@ -2316,12 +2318,12 @@ This script lets me quickly backup files by appending =.bak= to the filename.
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/bak/default.nix
|
#+begin_src nix :tangle pkgs/bak/default.nix
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "bak";
|
name = "bak";
|
||||||
text = ''
|
text = ''
|
||||||
cp "$1"{,.bak}
|
cp -r "$1"{,.bak}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2337,7 +2339,7 @@ This app starts a configuratble timer and uses TTS to say something once the tim
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/timer/default.nix
|
#+begin_src nix :tangle pkgs/timer/default.nix
|
||||||
{ writeShellApplication, speechd }:
|
{ writeShellApplication, speechd, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "timer";
|
name = "timer";
|
||||||
|
|
@ -2383,12 +2385,14 @@ This is a shorthand for calling emacsclient mostly. Also, it hides the kittyterm
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/e/default.nix
|
#+begin_src nix :tangle pkgs/e/default.nix
|
||||||
{ writeShellApplication, emacs30-pgtk, sway, jq }:
|
{ self, writeShellApplication, emacs30-pgtk, sway, jq }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "e";
|
name = "e";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ emacs30-pgtk sway jq ];
|
runtimeInputs = [ emacs30-pgtk sway jq ];
|
||||||
text = builtins.readFile ../../scripts/e.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -2510,12 +2514,14 @@ This app checks for different apps that I keep around in the scratchpad for quic
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/swarselcheck/default.nix
|
#+begin_src nix :tangle pkgs/swarselcheck/default.nix
|
||||||
{ writeShellApplication, kitty, element-desktop-wayland, vesktop, spotify-player, jq }:
|
{ self, writeShellApplication, kitty, element-desktop-wayland, vesktop, spotify-player, jq }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarselcheck";
|
name = "swarselcheck";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ kitty element-desktop-wayland vesktop spotify-player jq ];
|
runtimeInputs = [ kitty element-desktop-wayland vesktop spotify-player jq ];
|
||||||
text = builtins.readFile ../../scripts/swarselcheck.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -2555,12 +2561,14 @@ This scripts checks if there are uncommited changes in either my dotfile repo, m
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/waybarupdate/default.nix
|
#+begin_src nix :tangle pkgs/waybarupdate/default.nix
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "waybarupdate";
|
name = "waybarupdate";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/waybarupdate.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -2581,12 +2589,14 @@ This app quickly toggles between 5% and 0% transparency.
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/opacitytoggle/default.nix
|
#+begin_src nix :tangle pkgs/opacitytoggle/default.nix
|
||||||
{ writeShellApplication, sway }:
|
{ self, writeShellApplication, sway }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "opacitytoggle";
|
name = "opacitytoggle";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ sway ];
|
runtimeInputs = [ sway ];
|
||||||
text = builtins.readFile ../../scripts/opacitytoggle.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -2621,11 +2631,13 @@ This utility is used to compare the current state of the root directory with the
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/fs-diff/default.nix
|
#+begin_src nix :tangle pkgs/fs-diff/default.nix
|
||||||
{ writeShellApplication }:
|
{ self, writeShellApplication }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "fs-diff";
|
name = "fs-diff";
|
||||||
text = builtins.readFile ../../scripts/fs-diff.sh;
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -2654,12 +2666,14 @@ This utility checks if there are updated packages in nixpkgs-unstable. It does s
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/update-checker/default.nix
|
#+begin_src nix :tangle pkgs/update-checker/default.nix
|
||||||
{ writeShellApplication, nvd }:
|
{ self, writeShellApplication, nvd }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "update-checker";
|
name = "update-checker";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ nvd ];
|
runtimeInputs = [ nvd ];
|
||||||
text = builtins.readFile ../../scripts/update-checker.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -2672,7 +2686,7 @@ This utility checks if there are updated packages in nixpkgs-unstable. It does s
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/github-notifications/default.nix
|
#+begin_src nix :tangle pkgs/github-notifications/default.nix
|
||||||
{ writeShellApplication, jq }:
|
{ writeShellApplication, jq, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "github-notifications";
|
name = "github-notifications";
|
||||||
|
|
@ -2715,12 +2729,14 @@ This utility checks if there are updated packages in nixpkgs-unstable. It does s
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/screenshare/default.nix
|
#+begin_src nix :tangle pkgs/screenshare/default.nix
|
||||||
{ writeShellApplication, sway }:
|
{ self, writeShellApplication, sway }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "screenshare";
|
name = "screenshare";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ sway ];
|
runtimeInputs = [ sway ];
|
||||||
text = builtins.readFile ../../scripts/screenshare.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -3075,12 +3091,14 @@ This program sets up a new NixOS host remotely. It also takes care of secret man
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/swarsel-bootstrap/default.nix
|
#+begin_src nix :tangle pkgs/swarsel-bootstrap/default.nix
|
||||||
{ writeShellApplication, openssh }:
|
{ self, writeShellApplication, openssh }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-bootstrap";
|
name = "swarsel-bootstrap";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ openssh ];
|
runtimeInputs = [ openssh ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-bootstrap.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -3181,12 +3199,14 @@ This program builds a configuration locally.
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/swarsel-rebuild/default.nix
|
#+begin_src nix :tangle pkgs/swarsel-rebuild/default.nix
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-rebuild";
|
name = "swarsel-rebuild";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-rebuild.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -3363,12 +3383,14 @@ This program sets up a new NixOS host locally.
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/swarsel-install/default.nix
|
#+begin_src nix :tangle pkgs/swarsel-install/default.nix
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-install";
|
name = "swarsel-install";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-install.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -3457,12 +3479,14 @@ This program sets up a new NixOS host locally.
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/swarsel-postinstall/default.nix
|
#+begin_src nix :tangle pkgs/swarsel-postinstall/default.nix
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-postinstall";
|
name = "swarsel-postinstall";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-postinstall.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -3474,7 +3498,7 @@ This program sets up a new NixOS host locally.
|
||||||
This script allows for quick git branch switching.
|
This script allows for quick git branch switching.
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/t2ts/default.nix
|
#+begin_src nix :tangle pkgs/t2ts/default.nix
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "t2ts";
|
name = "t2ts";
|
||||||
|
|
@ -3494,7 +3518,7 @@ This script allows for quick git branch switching.
|
||||||
This script allows for quick git branch switching.
|
This script allows for quick git branch switching.
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/ts2t/default.nix
|
#+begin_src nix :tangle pkgs/ts2t/default.nix
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "ts2t";
|
name = "ts2t";
|
||||||
|
|
@ -3511,7 +3535,7 @@ This script allows for quick git branch switching.
|
||||||
This script allows for quick git branch switching.
|
This script allows for quick git branch switching.
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/vershell/default.nix
|
#+begin_src nix :tangle pkgs/vershell/default.nix
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "vershell";
|
name = "vershell";
|
||||||
|
|
@ -3528,7 +3552,7 @@ This script allows for quick git branch switching.
|
||||||
This script allows for quick git branch switching.
|
This script allows for quick git branch switching.
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/eontimer/default.nix
|
#+begin_src nix :tangle pkgs/eontimer/default.nix
|
||||||
{ pkgs, python3Packages }:
|
{ pkgs, python3Packages, ... }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "eontimer";
|
pname = "eontimer";
|
||||||
|
|
@ -4167,7 +4191,7 @@ At work I am using several services that are using SSO login - however, as I am
|
||||||
Set in firefox =about:config > toolkit.legacyUserProfileCustomizations.stylesheets= to true. This should in principle be set automatically using the below config, but it seems not to be working reliably
|
Set in firefox =about:config > toolkit.legacyUserProfileCustomizations.stylesheets= to true. This should in principle be set automatically using the below config, but it seems not to be working reliably
|
||||||
|
|
||||||
#+begin_src nix :noweb yes :tangle modules/home/firefox.nix
|
#+begin_src nix :noweb yes :tangle modules/home/firefox.nix
|
||||||
{ lib, pkgs, ... }:
|
{ self, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
lock-false = {
|
lock-false = {
|
||||||
Value = false;
|
Value = false;
|
||||||
|
|
@ -4183,7 +4207,7 @@ Set in firefox =about:config > toolkit.legacyUserProfileCustomizations.styleshee
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {
|
default = {
|
||||||
isDefault = false;
|
isDefault = false;
|
||||||
userChrome = builtins.readFile ../../programs/firefox/chrome/userChrome.css;
|
userChrome = builtins.readFile "${self}/programs/firefox/chrome/userChrome.css";
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
tridactyl
|
tridactyl
|
||||||
tampermonkey
|
tampermonkey
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
mkPackages = names: pkgs: builtins.listToAttrs (map
|
mkPackages = names: pkgs: builtins.listToAttrs (map
|
||||||
(name: {
|
(name: {
|
||||||
inherit name;
|
inherit name;
|
||||||
value = pkgs.callPackage "${self}/pkgs/${name}" { };
|
value = pkgs.callPackage "${self}/pkgs/${name}" { inherit self; };
|
||||||
})
|
})
|
||||||
names);
|
names);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }:
|
{ self, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
lock-false = {
|
lock-false = {
|
||||||
Value = false;
|
Value = false;
|
||||||
|
|
@ -14,7 +14,7 @@ in
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {
|
default = {
|
||||||
isDefault = false;
|
isDefault = false;
|
||||||
userChrome = builtins.readFile ../../programs/firefox/chrome/userChrome.css;
|
userChrome = builtins.readFile "${self}/programs/firefox/chrome/userChrome.css";
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
tridactyl
|
tridactyl
|
||||||
tampermonkey
|
tampermonkey
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "bak";
|
name = "bak";
|
||||||
text = ''
|
text = ''
|
||||||
cp "$1"{,.bak}
|
cp -r "$1"{,.bak}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication, fzf }:
|
{ writeShellApplication, fzf, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "cdb";
|
name = "cdb";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication, fzf }:
|
{ writeShellApplication, fzf, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "cdw";
|
name = "cdw";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# taken from https://github.com/NixOS/nixpkgs/issues/186570#issuecomment-1627797219
|
# taken from https://github.com/NixOS/nixpkgs/issues/186570#issuecomment-1627797219
|
||||||
{ appimageTools, fetchurl, writeScriptBin, pkgs }:
|
{ appimageTools, fetchurl, writeScriptBin, pkgs, ... }:
|
||||||
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, emacs30-pgtk, sway, jq }:
|
{ self, writeShellApplication, emacs30-pgtk, sway, jq }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "e";
|
name = "e";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ emacs30-pgtk sway jq ];
|
runtimeInputs = [ emacs30-pgtk sway jq ];
|
||||||
text = builtins.readFile ../../scripts/e.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, python3Packages }:
|
{ pkgs, python3Packages, ... }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "eontimer";
|
pname = "eontimer";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{ writeShellApplication }:
|
{ self, writeShellApplication }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "fs-diff";
|
name = "fs-diff";
|
||||||
text = builtins.readFile ../../scripts/fs-diff.sh;
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication, jq }:
|
{ writeShellApplication, jq, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "github-notifications";
|
name = "github-notifications";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication, fzf, findutils, home-manager }:
|
{ writeShellApplication, fzf, findutils, home-manager, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "hm-specialisation";
|
name = "hm-specialisation";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, sway }:
|
{ self, writeShellApplication, sway }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "opacitytoggle";
|
name = "opacitytoggle";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ sway ];
|
runtimeInputs = [ sway ];
|
||||||
text = builtins.readFile ../../scripts/opacitytoggle.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, libnotify, pass, fuzzel, wtype }:
|
{ self, writeShellApplication, libnotify, pass, fuzzel, wtype }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "pass-fuzzel";
|
name = "pass-fuzzel";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ libnotify (pass.withExtensions (exts: [ exts.pass-otp ])) fuzzel wtype ];
|
runtimeInputs = [ libnotify (pass.withExtensions (exts: [ exts.pass-otp ])) fuzzel wtype ];
|
||||||
text = builtins.readFile ../../scripts/pass-fuzzel.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, sway }:
|
{ self, writeShellApplication, sway }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "screenshare";
|
name = "screenshare";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ sway ];
|
runtimeInputs = [ sway ];
|
||||||
text = builtins.readFile ../../scripts/screenshare.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, openssh }:
|
{ self, writeShellApplication, openssh }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-bootstrap";
|
name = "swarsel-bootstrap";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ openssh ];
|
runtimeInputs = [ openssh ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-bootstrap.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-install";
|
name = "swarsel-install";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-install.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-postinstall";
|
name = "swarsel-postinstall";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-postinstall.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarsel-rebuild";
|
name = "swarsel-rebuild";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/swarsel-rebuild.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, kitty, element-desktop-wayland, vesktop, spotify-player, jq }:
|
{ self, writeShellApplication, kitty, element-desktop-wayland, vesktop, spotify-player, jq }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "swarselcheck";
|
name = "swarselcheck";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ kitty element-desktop-wayland vesktop spotify-player jq ];
|
runtimeInputs = [ kitty element-desktop-wayland vesktop spotify-player jq ];
|
||||||
text = builtins.readFile ../../scripts/swarselcheck.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "t2ts";
|
name = "t2ts";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication, speechd }:
|
{ writeShellApplication, speechd, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "timer";
|
name = "timer";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "ts2t";
|
name = "ts2t";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, nvd }:
|
{ self, writeShellApplication, nvd }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "update-checker";
|
name = "update-checker";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ nvd ];
|
runtimeInputs = [ nvd ];
|
||||||
text = builtins.readFile ../../scripts/update-checker.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ writeShellApplication }:
|
{ writeShellApplication, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "vershell";
|
name = "vershell";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ writeShellApplication, git }:
|
{ self, writeShellApplication, git }:
|
||||||
|
let
|
||||||
writeShellApplication {
|
|
||||||
name = "waybarupdate";
|
name = "waybarupdate";
|
||||||
|
in
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = builtins.readFile ../../scripts/waybarupdate.sh;
|
text = builtins.readFile "${self}/scripts/${name}.sh";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue