Compare commits
3 commits
245dd2c657
...
324d2d94f3
| Author | SHA1 | Date | |
|---|---|---|---|
| 324d2d94f3 | |||
| 016ae5ec54 | |||
| 92b257e1af |
1 changed files with 17 additions and 14 deletions
31
flake.nix
31
flake.nix
|
|
@ -81,18 +81,21 @@
|
|||
# deploy-rs unfortunately uses an `import nixpkgs`, and its
|
||||
# library functions depend on an instantiated nixpkgs, so we
|
||||
# can't get around multi-nixpkgs-eval.
|
||||
deployRsPackages = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.deploy-rs.overlays.default
|
||||
(final: prev: {
|
||||
deploy-rs = {
|
||||
inherit (nixpkgs.legacyPackages.${system}) deploy-rs;
|
||||
inherit (prev.deploy-rs) lib;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
inherit
|
||||
(import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.deploy-rs.overlays.default
|
||||
(_: prev: {
|
||||
deploy-rs = {
|
||||
inherit (nixpkgs.legacyPackages.${system}) deploy-rs;
|
||||
inherit (prev.deploy-rs) lib;
|
||||
};
|
||||
})
|
||||
];
|
||||
})
|
||||
deploy-rs
|
||||
;
|
||||
in
|
||||
{
|
||||
##################
|
||||
|
|
@ -120,7 +123,7 @@
|
|||
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deployRsPackages.deploy-rs.lib.${system}.activate.nixos self.nixosConfigurations.hetzner-1;
|
||||
path = deploy-rs.lib.activate.nixos self.nixosConfigurations.hetzner-1;
|
||||
};
|
||||
|
||||
sshUser = "tlater";
|
||||
|
|
@ -174,7 +177,7 @@
|
|||
|
||||
packages = nixpkgs.lib.attrValues {
|
||||
inherit (sops-nix.packages.${system}) sops-import-keys-hook sops-init-gpg-key;
|
||||
inherit (deployRsPackages.deploy-rs) deploy-rs;
|
||||
inherit (deploy-rs) deploy-rs;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue