Combine scripts and custom packages
All checks were successful
/ check (push) Successful in 1m40s

This commit is contained in:
Oliver Davies 2025-07-10 22:50:41 +01:00
parent 7780eca7a9
commit 5341b761ad
15 changed files with 29 additions and 38 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, pkgs, ... }:
{ {
imports = [ ../common ]; imports = [ ../common ];
@ -37,6 +37,12 @@
}; };
}; };
home.packages = with pkgs; [
tag-release
todos-add
update-all-git-repos
];
xdg.configFile."pam-gnupg".text = '' xdg.configFile."pam-gnupg".text = ''
C0D940F9A390F286FCAAE8439D501171E39D0A47 C0D940F9A390F286FCAAE8439D501171E39D0A47
''; '';

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, pkgs, ... }:
{ {
imports = [ imports = [
@ -96,6 +96,19 @@
}; };
}; };
home.packages = with pkgs; [
backup-websites
build-glove80
displayselect
mounter
move-firefox-screenshots
setbg
tag-release
todos-add
unmounter
update-all-git-repos
];
xdg.configFile."pam-gnupg".text = '' xdg.configFile."pam-gnupg".text = ''
098EE055DAD2B9CB68154C6759DD38292D2273B6 098EE055DAD2B9CB68154C6759DD38292D2273B6
1E21B58D69FFEFAD077F152A50FEA938A3413F50 1E21B58D69FFEFAD077F152A50FEA938A3413F50

View file

@ -101,12 +101,9 @@
abook abook
acpi acpi
arandr arandr
backup-websites
brightnessctl brightnessctl
build-glove80
cdrkit cdrkit
cpufrequtils cpufrequtils
displayselect
dvdbackup dvdbackup
dvdplusrwtools dvdplusrwtools
ffmpegthumbnailer ffmpegthumbnailer
@ -131,7 +128,6 @@
sxiv sxiv
tailscale tailscale
ttyper ttyper
upload-to-files
xcape xcape
xsel xsel
yt-dlp yt-dlp

View file

@ -1,19 +0,0 @@
{ pkgs, ... }:
{
# TODO: separate desktop-only scripts?
home.packages =
let
scriptNames = [
"create-script"
"mounter"
"move-firefox-screenshots"
"setbg"
"tag-release"
"todos-add"
"unmounter"
"update-all-git-repos"
];
in
map (name: pkgs.callPackage ./${name}.nix { }) scriptNames;
}

View file

@ -9,7 +9,6 @@
./cli/node.nix ./cli/node.nix
./cli/notes.nix ./cli/notes.nix
./cli/ranger.nix ./cli/ranger.nix
./cli/scripts
./cli/starship.nix ./cli/starship.nix
./cli/sxhkd.nix ./cli/sxhkd.nix
./cli/tmux-sessionizer.nix ./cli/tmux-sessionizer.nix

View file

@ -8,12 +8,19 @@ in
{ {
backup-websites = callPackage ./backup-websites.nix { }; backup-websites = callPackage ./backup-websites.nix { };
build-glove80 = callPackage ./build-glove80.nix { }; build-glove80 = callPackage ./build-glove80.nix { };
create-script = callPackage ./create-script.nix { };
dev-commit = callPackage ./dev-commit.nix { }; dev-commit = callPackage ./dev-commit.nix { };
displayselect = callPackage ./displayselect { }; displayselect = callPackage ./displayselect { };
mounter = callPackage ./mounter.nix { };
move-firefox-screenshots = callPackage ./move-firefox-screenshots.nix { };
notes = callPackage ./notes { }; notes = callPackage ./notes { };
passmenu-otp = callPackage ./passmenu-otp.nix { }; passmenu-otp = callPackage ./passmenu-otp.nix { };
setbg = callPackage ./setbg.nix { };
tag-release = callPackage ./tag-release.nix { };
tmux-sessionizer = callPackage ./tmux-sessionizer { }; tmux-sessionizer = callPackage ./tmux-sessionizer { };
upload-to-files = callPackage ./upload-to-files.nix { }; todos-add = callPackage ./todos-add.nix { };
unmounter = callPackage ./unmounter.nix { };
update-all-git-repos = callPackage ./update-all-git-repos.nix { };
vimPlugins = prev.vimPlugins // vimPlugins; vimPlugins = prev.vimPlugins // vimPlugins;
} }

View file

@ -1,11 +0,0 @@
{ pkgs }:
with pkgs;
writeShellApplication {
name = "upload-to-files";
text = ''
${pkgs.rsync}/bin/rsync -avz --info=progress2 "$1" ssh.oliverdavies.uk:/var/www/vhosts/files.oliverdavies.uk
'';
}