diff options
author | lassulus <lassulus@lassul.us> | 2018-09-29 20:43:20 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-09-29 20:43:20 +0200 |
commit | 7e1bcc4d4ba3d30d29d3f7c6b49eadedde2da98e (patch) | |
tree | da7379bff81c18917b6229d97fe92a444523cbad | |
parent | 2440120c88cb2e709fa70950949768f30c5d8a0f (diff) | |
parent | dfda0fdeee91841d32670c4854c4736905b08793 (diff) |
Merge branch 'master' of prism:krops into HEAD
-rw-r--r-- | README.md | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -14,10 +14,9 @@ create a krops.nix somewhere ``` let #krops = ./.; - krops = (import <nixpkgs> {}).fetchgit { + krops = builtins.fetchGit { url = https://cgit.krebsco.de/krops/; - rev = "3022582ade8049e6ccf18f358cedb996d6716945"; - sha256 = "0k3zhv2830z4bljcdvf6ciwjihk2zzcn9y23p49c6sba5hbsd6jb"; + ref = "master"; }; lib = import "${krops}/lib"; @@ -25,9 +24,8 @@ let source = lib.evalSource [{ nixpkgs.git = { - ref = "4b4bbce199d3b3a8001ee93495604289b01aaad3"; - url = https://github.com/NixOS/nixpkgs; - + ref = "origin/nixos-18.03"; + url = https://github.com/NixOS/nixpkgs-channels; }; nixos-config.file = toString (pkgs.writeText "nixos-config" '' { pkgs, ... }: { @@ -36,13 +34,16 @@ let boot.loader.systemd-boot.enable = true; services.openssh.enable = true; environment.systemPackages = [ pkgs.git ]; + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-rsa ADD_YOUR_OWN_PUBLIC_KEY_HERE user@localhost" + ]; } ''); }]; in pkgs.krops.writeDeploy "deploy" { source = source; - target = "root@192.168.56.101"; + target = "root@YOUR_IP_ADDRESS_OR_HOST_NAME_HERE"; } ``` |