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"
];
unstableOverlay = final: prev: {
# We already have these in scope
unstable = unstable.legacyPackages.${prev.system};
deploy = deploy-rs.packages.${prev.system}.deploy-rs;
};
@ -211,7 +212,7 @@
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
"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; };
modules = [
./home/core.nix
@ -221,29 +222,33 @@
};
deploy.nodes = {
curve.profiles.system = {
user = "anish";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.curve;
};
box.profiles.system = {
user = "anish";
box = {
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 = {
user = "anish";
helix = {
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 = {
user = "anish";
lituus = {
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 = {
user = "anish";
cube = {
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 = {
#enable = true;
#configFile = /var/loki-config.yaml;
};
# services.loki = {
# enable = true;
# configFile = /var/loki-config.yaml;
# };
#systemd.services.promtail = {
# description = "Promtail service for Loki";