pass deploy checks too
This commit is contained in:
parent
4f2bb9479e
commit
d8da4009c3
31
flake.nix
31
flake.nix
|
@ -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,31 +222,35 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
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";
|
||||||
|
profiles.system = {
|
||||||
|
user = "anish";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.box;
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.box;
|
||||||
};
|
};
|
||||||
helix.profiles.system = {
|
};
|
||||||
user = "anish";
|
helix = {
|
||||||
hostname = "sealight.xyz";
|
hostname = "sealight.xyz";
|
||||||
|
profiles.system = {
|
||||||
|
user = "anish";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix;
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix;
|
||||||
};
|
};
|
||||||
lituus.profiles.system = {
|
};
|
||||||
user = "anish";
|
lituus = {
|
||||||
hostname = "git.sealight.xyz";
|
hostname = "git.sealight.xyz";
|
||||||
|
profiles.system = {
|
||||||
|
user = "anish";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lituus;
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lituus;
|
||||||
};
|
};
|
||||||
cube.profiles.system = {
|
};
|
||||||
user = "anish";
|
cube = {
|
||||||
hostname = "anish.lakhwara.com";
|
hostname = "anish.lakhwara.com";
|
||||||
|
profiles.system = {
|
||||||
|
user = "anish";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.cube;
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.cube;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue