From f19ea59aa6898795d9fba04a04d2aea52966801c Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 8 Jun 2020 12:21:51 +1000 Subject: [PATCH] Added daedalus --- hosts/dionach.nix | 3 +-- nix/sources.json | 18 +++++++++++++++--- roles/daedalus.nix | 18 ++++++++++++++++++ roles/desktop_common.nix | 1 + 4 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 roles/daedalus.nix diff --git a/hosts/dionach.nix b/hosts/dionach.nix index 077a425..28fee38 100644 --- a/hosts/dionach.nix +++ b/hosts/dionach.nix @@ -7,6 +7,7 @@ imports = [ ../hardware/purism_librem_15.nix # Include the results of the hardware scan. ../roles/android.nix # Provide an Android dev environment + ../roles/daedalus.nix # The open source cryptocurrency wallet for ADA ../roles/desktop-feeds.nix # Tools for news feeds and podcasts ../roles/haskell-dev.nix # Haskel dev environment ../roles/host_common.nix # Common host configuration options @@ -75,8 +76,6 @@ gnused google-authenticator # 2FA google-chrome # A freeware web browser developed by Google - gphoto2 - gphoto2fs gvfs imagemagick iptables # iptables diff --git a/nix/sources.json b/nix/sources.json index 4ea7418..6b6a8ff 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -5,10 +5,22 @@ "homepage": "https://cardano.org", "owner": "input-output-hk", "repo": "cardano-node", - "rev": "044e82d68a5e5d05258c93eda6c00d8541e4d977", - "sha256": "0ds1k350n84qq8sbdpin0fkbsk8pq5b7hyv23yqkslzvrgdh400g", + "rev": "9925ef37dccbe7f423f3ceb81a5e1da3d924393b", + "sha256": "1yw5axs33g33znqxjkmjlrgks8ky79mc6lj2f28m2i2qfifyz12y", "type": "tarball", - "url": "https://github.com/input-output-hk/cardano-node/archive/044e82d68a5e5d05258c93eda6c00d8541e4d977.tar.gz", + "url": "https://github.com/input-output-hk/cardano-node/archive/9925ef37dccbe7f423f3ceb81a5e1da3d924393b.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, + "daedalus": { + "branch": "refs/tags/1.1.0", + "description": "The open source cryptocurrency wallet for ada, built to grow with the community", + "homepage": "https://daedaluswallet.io/", + "owner": "input-output-hk", + "repo": "daedalus", + "rev": "25866a431aba60bf73aeb1a51f9134143145fa07", + "sha256": "1jwqm14fxzd8qglwyxm989rajfjnvjql1mbx135fl1sw75znd7ih", + "type": "tarball", + "url": "https://github.com/input-output-hk/daedalus/archive/25866a431aba60bf73aeb1a51f9134143145fa07.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "niv": { diff --git a/roles/daedalus.nix b/roles/daedalus.nix new file mode 100644 index 0000000..587bf7c --- /dev/null +++ b/roles/daedalus.nix @@ -0,0 +1,18 @@ +# NixOps configuration for the hosts running Daedalus + +{ config, pkgs, lib, ... }: + +let + + sources = import ../nix/sources.nix; + daedalusProject = import sources.daedalus {}; + +in + +{ + + environment.systemPackages = [ + daedalusProject.daedalus + ]; + +} diff --git a/roles/desktop_common.nix b/roles/desktop_common.nix index 75c0d81..6b11554 100644 --- a/roles/desktop_common.nix +++ b/roles/desktop_common.nix @@ -7,6 +7,7 @@ [ ../roles/games-kids.nix ../roles/host_common.nix + ../roles/daedalus.nix ../roles/openssh.nix ../secrets/user-craige.nix ../secrets/user-fiona.nix