treewide: fix deploy issues
Using absolute path imports is apparently a horrible idea since that just messes up the store, and will bring a lot of issues since that copies it to the store separately.
This commit is contained in:
parent
040e849a9f
commit
73930f02ff
6 changed files with 23 additions and 23 deletions
|
@ -13,7 +13,6 @@
|
|||
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
||||
treefmtEval = eachSystem (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
|
||||
in {
|
||||
imports = [./modules];
|
||||
devShells = eachSystem (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
packages = [
|
||||
|
@ -30,7 +29,8 @@
|
|||
in
|
||||
import ./hosts {inherit inputs lib';};
|
||||
packages = eachSystem (pkgs: import ./pkgs {inherit inputs pkgs;});
|
||||
deploy.nodes = import ./nodes {inherit self inputs;};
|
||||
deploy.nodes = import ./nodes {inherit inputs;};
|
||||
checks = builtins.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
};
|
||||
inputs = {
|
||||
# nix related
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
mod = "${self}/system";
|
||||
{inputs, ...}: let
|
||||
system = "${inputs.self}/system";
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
@ -11,9 +7,9 @@ in {
|
|||
|
||||
inputs.agenix.nixosModules.default
|
||||
|
||||
"${mod}/services/forgejo.nix"
|
||||
"${mod}/services/searx.nix"
|
||||
"${mod}/services/portfolio.nix"
|
||||
"${system}/services/forgejo.nix"
|
||||
"${system}/services/searx.nix"
|
||||
"${system}/services/portfolio.nix"
|
||||
];
|
||||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
{specialArgs, ...}: let
|
||||
system = ../../system;
|
||||
home = ../../home;
|
||||
{
|
||||
inputs,
|
||||
specialArgs,
|
||||
...
|
||||
}: let
|
||||
system = "${inputs.self}/system";
|
||||
home = "${inputs.self}/home";
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
{specialArgs, ...}: let
|
||||
system = ../../system;
|
||||
home = ../../home;
|
||||
{
|
||||
inputs,
|
||||
specialArgs,
|
||||
...
|
||||
}: let
|
||||
system = "${inputs.self}/system";
|
||||
home = "${inputs.self}/home";
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
{inputs, ...}: {
|
||||
anastacia = {
|
||||
hostname = "2a01:4f8:1c1c:8495::1";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.anastacia;
|
||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.anastacia;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue