mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-09 10:29:05 +02:00
Init deploy-rs
This commit is contained in:
parent
712b67baae
commit
6d13ae4c22
2 changed files with 94 additions and 10 deletions
18
flake.nix
18
flake.nix
|
@ -18,6 +18,10 @@
|
|||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
deploy-rs = {
|
||||
url = "github:serokell/deploy-rs";
|
||||
};
|
||||
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -35,7 +39,7 @@
|
|||
|
||||
};
|
||||
|
||||
outputs = { self, home-manager, nixpkgs, unstable, sops-nix, nur, ... }@inputs:
|
||||
outputs = { self, home-manager, nixpkgs, unstable, deploy-rs, sops-nix, nur, ... }@inputs:
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
pkgsrpi = import nixpkgs { system = "aarch64-linux"; };
|
||||
|
@ -51,6 +55,18 @@
|
|||
(builtins.attrNames (builtins.readDir ./modules)));
|
||||
|
||||
nixosConfigurations = builtins.mapAttrs (name: value: (mkMachine { host = name; host-config = value; modules = self.nixosModules; system = luj.machines.${name}.arch; })) (importConfig ./machines);
|
||||
|
||||
deploy.nodes.newton = {
|
||||
hostname = "newton.julienmalka.me";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
sshOpts = [ "-p" "45" ];
|
||||
fastConnection = true;
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.newton;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
packages."x86_64-linux" = {
|
||||
tinystatus = import ./packages/tinystatus { inherit pkgs; };
|
||||
flaresolverr = pkgs.callPackage ./packages/flaresolverr { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue