summaryrefslogtreecommitdiffstats
path: root/jeschli/krops.nix
diff options
context:
space:
mode:
Diffstat (limited to 'jeschli/krops.nix')
-rw-r--r--jeschli/krops.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/jeschli/krops.nix b/jeschli/krops.nix
index dbf94bd0..9a8a7667 100644
--- a/jeschli/krops.nix
+++ b/jeschli/krops.nix
@@ -9,19 +9,29 @@
(krebs-source { test = test; })
{
nixos-config.symlink = "stockholm/jeschli/1systems/${name}/config.nix";
+ nixpkgs-unstable.git = {
+ url = "https://github.com/nixos/nixpkgs-channels";
+ ref = "nixos-unstable";
+ };
secrets = if test then {
file = toString ./2configs/tests/dummy-secrets;
} else {
file = "${lib.getEnv "HOME"}/secrets/${name}";
};
}
+ {
+ home-manager.git = {
+ url = https://github.com/rycee/home-manager;
+ ref = "2ccbf43";
+ };
+ }
];
in {
# usage: $(nix-build --no-out-link --argstr name HOSTNAME -A deploy)
- deploy = pkgs.krops.writeDeploy "${name}-deploy" {
+ deploy = { target ? "root@${name}/var/src" }: pkgs.krops.writeDeploy "${name}-deploy" {
source = source { test = false; };
- target = "root@${name}/var/src";
+ inherit target;
};
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)