add resume repo as input to flake and use it as nginx root

This commit is contained in:
Yisroel Baum 2026-05-12 19:39:47 +03:00
parent cb5d682b7d
commit 8d0f110ea7
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 38 additions and 3 deletions

View file

@ -2,6 +2,7 @@
config,
pkgs,
domainName,
resume,
...
}:
{
@ -106,7 +107,7 @@
enableACME = true;
locations = {
"/" = {
root = "/var/www/yisroelbaum";
root = "${resume.packages.x86_64-linux.default}";
};
};
};

21
flake.lock generated
View file

@ -36,10 +36,31 @@
"type": "github"
}
},
"resume": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1778603439,
"narHash": "sha256-XRgVjHF1IT9KO7uHkpLfdOojZ41yiqJxT2IWLGZvm8U=",
"ref": "refs/heads/master",
"rev": "afc18efdd263d32168e9e2969f9b2a433e0b0202",
"revCount": 7,
"type": "git",
"url": "https://git.yisroelbaum.com/yisroelbaum/MyResume"
},
"original": {
"type": "git",
"url": "https://git.yisroelbaum.com/yisroelbaum/MyResume"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"resume": "resume",
"sops-nix": "sops-nix",
"tide": "tide"
}

View file

@ -16,9 +16,22 @@
url = "git+https://git.yisroelbaum.com/yisroelbaum/TIDE";
inputs.nixpkgs.follows = "nixpkgs";
};
resume = {
url = "git+https://git.yisroelbaum.com/yisroelbaum/MyResume";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, sops-nix, tide, ... }:
outputs =
{
self,
nixpkgs,
home-manager,
sops-nix,
tide,
resume,
...
}:
let
system = "x86_64-linux";
domainName = "yisroelbaum.com";
@ -36,7 +49,7 @@
home-manager.users.yisroel = ./home-manager/home.nix;
}
];
specialArgs = { inherit domainName; };
specialArgs = { inherit domainName resume; };
};
devShells."${system}".default = let
pkgs = import nixpkgs { inherit system; };