add deploy-rs

This commit is contained in:
陈浩南 2023-08-20 21:38:39 +08:00
parent 78ca1676d7
commit 78dad12e2c
3 changed files with 14 additions and 6 deletions

View File

@ -766,11 +766,18 @@
sshUser = "root";
user = "root";
fastConnection = true;
nodes =
{
vps6.profiles.system.path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.vps6;
};
nodes = builtins.listToAttrs (builtins.map
(node:
{
name = node;
value =
{
hostname = node;
profiles.system.path = inputs.self.nixosConfigurations.${node}.pkgs.deploy-rs.lib.activate.nixos
inputs.self.nixosConfigurations.${node};
};
})
[ "vps6" ]);
};
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
};
}

View File

@ -24,6 +24,7 @@ inputs:
touchix = topInputs.touchix.packages."${prev.system}";
nix-vscode-extensions = topInputs.nix-vscode-extensions.extensions."${prev.system}";
nur-xddxdd = topInputs.nur-xddxdd.overlays.default final prev;
deploy-rs = { inherit (prev) deploy-rs; inherit ((topInputs.deploy-rs.overlay final prev).deploy-rs) lib; };
})
];})
./fileSystems ./kernel ./hardware ./packages ./boot ./system ./virtualization ./services ./bugs ./users

View File

@ -116,7 +116,7 @@ inputs:
wayland-utils clinfo glxinfo vulkan-tools dracut etcher
# nix tools
nix-template appimage-run nil nixd nix-alien ssh-to-age nix-serve node2nix nix-prefetch-github
prefetch-npm-deps nix-prefetch-docker deploy-rs
prefetch-npm-deps nix-prefetch-docker deploy-rs.deploy-rs
# instant messager
element-desktop telegram-desktop discord qq nur-xddxdd.wechat-uos # jail
inputs.config.nur.repos.linyinfeng.wemeet # native # nur-xddxdd.wine-wechat thunder