summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-04-21 16:01:31 +0200
committerlassulus <lassulus@lassul.us>2018-04-21 16:01:31 +0200
commit70052cb8c9fedcda1ba8d5270afdf92bc1dd13ff (patch)
treee5dc00d933f1fadde9af0b0092b09b7f841a9373
parentb08c606eabe87292e4dc792e7f6faa7d0b679d58 (diff)
onebutton.r: make it work
-rw-r--r--krebs/1systems/onebutton/config.nix1
-rw-r--r--krebs/1systems/onebutton/source.nix13
2 files changed, 10 insertions, 4 deletions
diff --git a/krebs/1systems/onebutton/config.nix b/krebs/1systems/onebutton/config.nix
index 08a9d6423..19159c8fb 100644
--- a/krebs/1systems/onebutton/config.nix
+++ b/krebs/1systems/onebutton/config.nix
@@ -29,4 +29,5 @@
};
swapDevices = [ { device = "/swapfile"; size = 1024; } ];
+ services.openssh.enable = true;
}
diff --git a/krebs/1systems/onebutton/source.nix b/krebs/1systems/onebutton/source.nix
index 3ecaf9006..8f25881c9 100644
--- a/krebs/1systems/onebutton/source.nix
+++ b/krebs/1systems/onebutton/source.nix
@@ -1,11 +1,16 @@
+with import <stockholm/lib>;
let
pkgs = import <nixpkgs> {};
-in import <stockholm/krebs/source.nix> {
- name = "onebutton";
- nixpkgs.file = pkgs.fetchFromGitHub {
+ nixpkgs = pkgs.fetchFromGitHub {
owner = "nixos";
repo = "nixpkgs-channels";
rev = "6c064e6b"; # only binary cache for unstable arm6
- sha256 = "0ssaaaaaaaaaaaawkgjk8c75mvhgn5z7g1dkb78r8vrih9428bb8";
+ sha256 = "1rqzh475xn43phagrr30lb0fd292c1s8as53irihsnd5wcksnbyd";
+ };
+in import <stockholm/krebs/source.nix> {
+ name = "onebutton";
+ override.nixpkgs = mkForce {
+ file = toString nixpkgs;
};
+
}