blob: 4948ea19c873cc830f39f37ffd59d0580c1f118a [file] [log] [blame]
{
description = "A flake to deploy and configure Clicks' NixOS server";
inputs.deploy-rs.url = "github:serokell/deploy-rs";
outputs = { self, nixpkgs, deploy-rs, ... }@inputs: {
nixosConfigurations.clicks =
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
nixpkgs.lib.nixosSystem {
inherit system pkgs;
modules = [
./default/configuration.nix
./default/hardware-configuration.nix
./modules/mongodb.nix
./modules/git.nix
./modules/caddy.nix
./modules/fuck.nix
./modules/node.nix
./modules/kitty.nix
./modules/tesseract.nix
./modules/doas.nix
./modules/code-server.nix
{
users.mutableUsers = false;
}
];
};
deploy.nodes.clicks = {
sudo = "doas -u";
profiles.system = {
remoteBuild = true;
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.clicks;
};
hostname = "192.168.89.74";
profilesOrder = [ "system" ];
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
};
}