pass deploy checks too

This commit is contained in:
Anish Lakhwara 2022-12-07 02:20:01 +10:00
parent 4f2bb9479e
commit d8da4009c3
2 changed files with 26 additions and 21 deletions

View file

@ -70,6 +70,7 @@
"x86_64-darwin" "x86_64-darwin"
]; ];
unstableOverlay = final: prev: { unstableOverlay = final: prev: {
# We already have these in scope
unstable = unstable.legacyPackages.${prev.system}; unstable = unstable.legacyPackages.${prev.system};
deploy = deploy-rs.packages.${prev.system}.deploy-rs; deploy = deploy-rs.packages.${prev.system}.deploy-rs;
}; };
@ -211,7 +212,7 @@
# Available through 'home-manager --flake .#your-username@your-hostname' # Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = { homeConfigurations = {
"anish@work" = home-manager.lib.homeManagerConfiguration { "anish@work" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance pkgs = nixpkgsFor."x86_64-linux"; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
modules = [ modules = [
./home/core.nix ./home/core.nix
@ -221,29 +222,33 @@
}; };
deploy.nodes = { deploy.nodes = {
curve.profiles.system = { box = {
user = "anish";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.curve;
};
box.profiles.system = {
user = "anish";
hostname = "mossnet.lan"; hostname = "mossnet.lan";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.box; profiles.system = {
user = "anish";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.box;
};
}; };
helix.profiles.system = { helix = {
user = "anish";
hostname = "sealight.xyz"; hostname = "sealight.xyz";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix; profiles.system = {
user = "anish";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix;
};
}; };
lituus.profiles.system = { lituus = {
user = "anish";
hostname = "git.sealight.xyz"; hostname = "git.sealight.xyz";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lituus; profiles.system = {
user = "anish";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lituus;
};
}; };
cube.profiles.system = { cube = {
user = "anish";
hostname = "anish.lakhwara.com"; hostname = "anish.lakhwara.com";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.cube; profiles.system = {
user = "anish";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.cube;
};
}; };
}; };

View file

@ -44,10 +44,10 @@
]; ];
}; };
services.loki = { # services.loki = {
#enable = true; # enable = true;
#configFile = /var/loki-config.yaml; # configFile = /var/loki-config.yaml;
}; # };
#systemd.services.promtail = { #systemd.services.promtail = {
# description = "Promtail service for Loki"; # description = "Promtail service for Loki";