test and dev wrappers

This commit is contained in:
John Lancaster
2026-04-20 22:38:31 -05:00
parent 43ae292f39
commit 3fc3beb4ed
4 changed files with 112 additions and 65 deletions
+10 -11
View File
@@ -15,23 +15,18 @@ in
selfPkgs = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
resticPasswordFile = "${config.xdg.configHome}/restic/password.txt";
flakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic";
test-push = with pkgs; writeShellApplication {
name = "test-push";
runtimeInputs = [ nh ];
text = ''nh os switch ${flakeDir}#${testHost} --target-host root@${testTarget} -e none'';
};
in
{
imports = with inputs.self.modules.homeManager; [
rebuild
john
mysops
janus-ca
mtls
restic
docker
desktop
# sshCerts
step-client
mysops
# myPackage
# myStepClient
];
# TODO: make this more restrictive, rather than allowing all unfree packages
@@ -43,13 +38,17 @@ in
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.packages = with pkgs; [
nixos-rebuild
test-push
selfPkgs.jsl-zsh
selfPkgs.my-neovim
selfPkgs.step-client
selfPkgs.ssh-certs
# selfPkgs.step-bootstrap
# selfPkgs.wg-platform
# self'.packages.myWrappedPackage
# (inputs.self.wrappers.test-push.apply {
# inherit pkgs flakeDir;
# host = testHost;
# target = testTarget;
# }).wrapper
];
shell.program = "zsh";