feat: base flake
This commit is contained in:
parent
1abeb0fac5
commit
6b6ef3c4a2
1 changed files with 33 additions and 0 deletions
33
flake.nix
Normal file
33
flake.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
description = "Deployment for skynet";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
# gonna start off with a fairly modern base
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||||
|
|
||||||
|
# utility stuff
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
agenix.url = "github:ryantm/agenix";
|
||||||
|
deploy-rs.url = "github:serokell/deploy-rs";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, deploy-rs }: {
|
||||||
|
nixosConfigurations.some-random-system = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
#./some-random-system/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
deploy.nodes.some-random-system.profiles.system = {
|
||||||
|
user = "root";
|
||||||
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.some-random-system;
|
||||||
|
};
|
||||||
|
|
||||||
|
# This is highly advised, and will prevent many possible mistakes
|
||||||
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue