feat(deploy-rs): Setup deploy-rs for server.

This commit is contained in:
CronyAkatsuki 2025-05-04 00:04:47 +02:00
parent 4ddc7a062f
commit e5ca1f83d9
2 changed files with 125 additions and 23 deletions

View file

@ -61,6 +61,9 @@
# Neovim nightly
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
# Deploy-rs
deploy-rs.url = "github:serokell/deploy-rs";
};
outputs = {
@ -70,8 +73,21 @@
auto-cpufreq,
git-hooks,
nix-on-droid,
deploy-rs,
...
} @ inputs: {
deploy.nodes = {
dedi = {
hostname = "dedi";
profiles.ivek = {
sshUser = "ivek";
user = "ivek";
path = deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations."ivek";
sshOpts = [];
magicRollback = false;
};
};
};
homeConfigurations = {
"ivek" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {system = "x86_64-linux";};