diff --git a/flake.nix b/flake.nix index 600a73f..29d7cf4 100644 --- a/flake.nix +++ b/flake.nix @@ -166,8 +166,6 @@ }) (builtins.attrNames (builtins.readDir ./modules))); - inherit machines; - nixosConfigurations = builtins.listToAttrs (map (machine: { name = machine; @@ -178,6 +176,21 @@ }; }) (builtins.attrNames machines)); + + deploy.nodes = { + gitea = { + hostname = "10.0.0.201"; + # fastConnection = true; + + profiles = { + system = { + sshUser = "root"; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.gitea; + user = "root"; + }; + }; + }; + }; } // (flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ]) ( @@ -227,7 +240,8 @@ shfmt.enable = true; }; }; - }; + + } // deploy-rs.lib.${system}.deployChecks self.deploy; devShells.default = with pkgs; mkShell { diff --git a/machines/eitri/configuration.nix b/machines/eitri/configuration.nix index cc1d308..584ba30 100644 --- a/machines/eitri/configuration.nix +++ b/machines/eitri/configuration.nix @@ -11,6 +11,12 @@ in ../../users/erwin ]; + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + eboskma = { users.erwin = { enable = true;