diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-23 14:11:52 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-23 14:11:52 +0100 |
commit | 50c100ba31cfea05b73120421f08746429d56f24 (patch) | |
tree | b02309f7d749b59825f49d96f4eb68ccb75b69bd | |
parent | 7067c25c9db3581967bdb4f4962955ffd0365c52 (diff) | |
download | Nix-50c100ba31cfea05b73120421f08746429d56f24.tar.gz Nix-50c100ba31cfea05b73120421f08746429d56f24.tar.zst Nix-50c100ba31cfea05b73120421f08746429d56f24.zip |
Add missing tools for dilion
-rw-r--r-- | environments/immae-eu.nix | 15 | ||||
-rw-r--r-- | modules/private/system/dilion.nix | 18 | ||||
-rw-r--r-- | pkgs/crypto/cardano/daedalus.json | 8 | ||||
-rw-r--r-- | pkgs/crypto/sia/default.nix | 12 | ||||
-rw-r--r-- | pkgs/default.nix | 6 |
5 files changed, 43 insertions, 16 deletions
diff --git a/environments/immae-eu.nix b/environments/immae-eu.nix index 787d303..2cb624a 100644 --- a/environments/immae-eu.nix +++ b/environments/immae-eu.nix | |||
@@ -17,7 +17,7 @@ let | |||
17 | boinctui | 17 | boinctui |
18 | 18 | ||
19 | # cryptocurrencies | 19 | # cryptocurrencies |
20 | cardano cardano-cli sia monero | 20 | cardano cardano-cli sia monero_0_15_0_0 |
21 | xmr-stak | 21 | xmr-stak |
22 | solc | 22 | solc |
23 | iota-cli-app | 23 | iota-cli-app |
@@ -36,11 +36,11 @@ let | |||
36 | sieve-connect | 36 | sieve-connect |
37 | 37 | ||
38 | # git | 38 | # git |
39 | vcsh gitRepo gitAndTools.stgit tig ripgrep | 39 | vcsh gitRepo gitAndTools.stgit tig ripgrep mr |
40 | 40 | ||
41 | # graphical tools | 41 | # graphical tools |
42 | nextcloud-client firefox | 42 | nextcloud-client firefox |
43 | dwm dmenu st | 43 | dwm dmenu st xorg.xauth tigervnc |
44 | 44 | ||
45 | # images | 45 | # images |
46 | feh imagemagick tiv graphicsmagick qrcode | 46 | feh imagemagick tiv graphicsmagick qrcode |
@@ -74,7 +74,7 @@ let | |||
74 | # (nixos {}).manual.manpages | 74 | # (nixos {}).manual.manpages |
75 | 75 | ||
76 | # note taking | 76 | # note taking |
77 | note terminal-velocity jrnl | 77 | note terminal-velocity jrnl doing |
78 | 78 | ||
79 | # office | 79 | # office |
80 | sc-im ranger | 80 | sc-im ranger |
@@ -85,6 +85,8 @@ let | |||
85 | ldapvi | 85 | ldapvi |
86 | fzf | 86 | fzf |
87 | buku | 87 | buku |
88 | vimPlugins.vim-plug | ||
89 | mailcap | ||
88 | 90 | ||
89 | # password management | 91 | # password management |
90 | pass apg pwgen | 92 | pass apg pwgen |
@@ -94,10 +96,10 @@ let | |||
94 | 96 | ||
95 | # programming | 97 | # programming |
96 | pelican emacs26-nox ctags | 98 | pelican emacs26-nox ctags |
97 | wdiff patch | 99 | wdiff patch gnumake |
98 | 100 | ||
99 | # security | 101 | # security |
100 | keybase | 102 | keybase gnupg |
101 | 103 | ||
102 | # todolist/time management | 104 | # todolist/time management |
103 | taskwarrior vit timewarrior | 105 | taskwarrior vit timewarrior |
@@ -112,6 +114,7 @@ let | |||
112 | # system tools | 114 | # system tools |
113 | telnet bind.dnsutils httpie ngrep nmap p0f socat lsof psmisc | 115 | telnet bind.dnsutils httpie ngrep nmap p0f socat lsof psmisc |
114 | wget patchelf rename tmux (lib.meta.hiPrio nettools) | 116 | wget patchelf rename tmux (lib.meta.hiPrio nettools) |
117 | vlock mosh | ||
115 | 118 | ||
116 | # other tools | 119 | # other tools |
117 | pgloader s3cmd lftp jq cpulimit libxslt gandi-cli | 120 | pgloader s3cmd lftp jq cpulimit libxslt gandi-cli |
diff --git a/modules/private/system/dilion.nix b/modules/private/system/dilion.nix index 5b01a53..ab135b2 100644 --- a/modules/private/system/dilion.nix +++ b/modules/private/system/dilion.nix | |||
@@ -51,7 +51,7 @@ | |||
51 | in | 51 | in |
52 | ["command=\"${pkgs.rrsync_sudo}/bin/rrsync /var/lib/backup/eldiron/\" ${config.myEnv.rsync_backup.ssh_key.public}"]; | 52 | ["command=\"${pkgs.rrsync_sudo}/bin/rrsync /var/lib/backup/eldiron/\" ${config.myEnv.rsync_backup.ssh_key.public}"]; |
53 | }; | 53 | }; |
54 | security.sudo.extraRules = [ | 54 | security.sudo.extraRules = pkgs.lib.mkAfter [ |
55 | { | 55 | { |
56 | commands = [ | 56 | commands = [ |
57 | { command = "${pkgs.rsync}/bin/rsync"; options = [ "NOPASSWD" ]; } | 57 | { command = "${pkgs.rsync}/bin/rsync"; options = [ "NOPASSWD" ]; } |
@@ -59,6 +59,13 @@ | |||
59 | users = [ "backup" ]; | 59 | users = [ "backup" ]; |
60 | runAs = "root"; | 60 | runAs = "root"; |
61 | } | 61 | } |
62 | { | ||
63 | commands = [ | ||
64 | { command = "/home/immae/.nix-profile/root_scripts/*"; options = [ "NOPASSWD" ]; } | ||
65 | ]; | ||
66 | users = [ "immae" ]; | ||
67 | runAs = "root"; | ||
68 | } | ||
62 | ]; | 69 | ]; |
63 | 70 | ||
64 | system.activationScripts.backup_home = '' | 71 | system.activationScripts.backup_home = '' |
@@ -83,11 +90,20 @@ | |||
83 | ''; | 90 | ''; |
84 | }; | 91 | }; |
85 | 92 | ||
93 | security.pki.certificateFiles = [ | ||
94 | (pkgs.fetchurl { | ||
95 | url = "http://downloads.e.eriomem.net/eriomemca.pem"; | ||
96 | sha256 = "1ixx4c6j3m26j8dp9a3dkvxc80v1nr5aqgmawwgs06bskasqkvvh"; | ||
97 | }) | ||
98 | ]; | ||
99 | |||
86 | # This is equivalent to setting environment.sessionVariables.NIX_PATH | 100 | # This is equivalent to setting environment.sessionVariables.NIX_PATH |
87 | nix.nixPath = [ | 101 | nix.nixPath = [ |
88 | "home-manager=https://github.com/rycee/home-manager/archive/release-19.03.tar.gz" | 102 | "home-manager=https://github.com/rycee/home-manager/archive/release-19.03.tar.gz" |
89 | "nixpkgs=https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" | 103 | "nixpkgs=https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" |
90 | ]; | 104 | ]; |
105 | nix.binaryCaches = [ "https://hydra.iohk.io" ]; | ||
106 | nix.binaryCachePublicKeys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ]; | ||
91 | 107 | ||
92 | # This value determines the NixOS release with which your system is | 108 | # This value determines the NixOS release with which your system is |
93 | # to be compatible, in order to avoid breaking some software such as | 109 | # to be compatible, in order to avoid breaking some software such as |
diff --git a/pkgs/crypto/cardano/daedalus.json b/pkgs/crypto/cardano/daedalus.json index 5bb72f4..dcd14c5 100644 --- a/pkgs/crypto/cardano/daedalus.json +++ b/pkgs/crypto/cardano/daedalus.json | |||
@@ -1,15 +1,15 @@ | |||
1 | { | 1 | { |
2 | "tag": "0.12.1", | 2 | "tag": "0.15.1", |
3 | "meta": { | 3 | "meta": { |
4 | "name": "daedalus", | 4 | "name": "daedalus", |
5 | "url": "https://github.com/input-output-hk/daedalus", | 5 | "url": "https://github.com/input-output-hk/daedalus", |
6 | "branch": "refs/tags/0.12.1" | 6 | "branch": "refs/tags/0.15.1" |
7 | }, | 7 | }, |
8 | "github": { | 8 | "github": { |
9 | "owner": "input-output-hk", | 9 | "owner": "input-output-hk", |
10 | "repo": "daedalus", | 10 | "repo": "daedalus", |
11 | "rev": "1276852b9a766d9fd4cda10561254f1a8ddd33ed", | 11 | "rev": "998fd3189c9a54fac496dfef7a6224714c67bc80", |
12 | "sha256": "0jf6ibwf0r4587g1ixq6zvi40kzwy137jgay5136yfbg15xw14k2", | 12 | "sha256": "1r3gwfv6hn7lzp4h2s6849m7x12nxadsql358ss615krvdlnb6rr", |
13 | "fetchSubmodules": true | 13 | "fetchSubmodules": true |
14 | } | 14 | } |
15 | } | 15 | } |
diff --git a/pkgs/crypto/sia/default.nix b/pkgs/crypto/sia/default.nix index 45908af..27e4014 100644 --- a/pkgs/crypto/sia/default.nix +++ b/pkgs/crypto/sia/default.nix | |||
@@ -1,12 +1,15 @@ | |||
1 | { stdenv, fetchzip }: | 1 | { stdenv, fetchzip, autoPatchelfHook }: |
2 | stdenv.mkDerivation rec { | 2 | stdenv.mkDerivation rec { |
3 | version = "v1.3.7"; | 3 | version = "v1.4.3"; |
4 | name = "Sia-${version}"; | 4 | name = "Sia-${version}"; |
5 | src = fetchzip { | 5 | src = fetchzip { |
6 | url = "https://sia.tech/static/releases/${name}-linux-amd64.zip"; | 6 | url = "https://sia.tech/static/releases/${name}-linux-amd64.zip"; |
7 | sha256 = "1ljzwrlkx4hc16r8siiyakn039afipp95dyr83c8yfq3r3bfasqd"; | 7 | sha256 = "1i67zjzk4cwfzb1dxaxc1m41fa44sz1d0mf6dmlyg6pm4cyqizki"; |
8 | }; | 8 | }; |
9 | phases = "installPhase"; | 9 | phases = "installPhase fixupPhase"; |
10 | nativeBuildInputs = [ | ||
11 | autoPatchelfHook | ||
12 | ]; | ||
10 | installPhase = '' | 13 | installPhase = '' |
11 | mkdir -p $out/share/doc | 14 | mkdir -p $out/share/doc |
12 | mkdir -p $out/bin | 15 | mkdir -p $out/bin |
@@ -14,6 +17,5 @@ stdenv.mkDerivation rec { | |||
14 | cp -a $src/doc $out/share/doc/sia | 17 | cp -a $src/doc $out/share/doc/sia |
15 | cp -a $src/LICENSE $src/README.md $out/share/sia | 18 | cp -a $src/LICENSE $src/README.md $out/share/sia |
16 | cp -a $src/{siac,siad} $out/bin | 19 | cp -a $src/{siac,siad} $out/bin |
17 | cp -a $src/{siac,siad}.sig $out/share/sia/ | ||
18 | ''; | 20 | ''; |
19 | } | 21 | } |
diff --git a/pkgs/default.nix b/pkgs/default.nix index b6f9eae..3e77992 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix | |||
@@ -67,4 +67,10 @@ rec { | |||
67 | dovecot_fts-xapian = callPackage ./dovecot/plugins/fts_xapian { | 67 | dovecot_fts-xapian = callPackage ./dovecot/plugins/fts_xapian { |
68 | inherit mylibs; | 68 | inherit mylibs; |
69 | }; | 69 | }; |
70 | monero_0_15_0_0 = (import (builtins.fetchTarball { | ||
71 | name = "nixos-19.09"; | ||
72 | url = "https://releases.nixos.org/nixos/19.09/nixos-19.09.2145.c2c5dcc00b0/nixexprs.tar.xz"; | ||
73 | sha256 = "0dh8qc3lzrba5mxxxh57i1374wc7ha3c30h7wsmj5zr7bhc5zm4p"; | ||
74 | }) {}).monero; | ||
75 | |||
70 | } | 76 | } |