Skip to content

Commit 2bc7f78

Browse files
committed
lots of changes
1 parent a7c728b commit 2bc7f78

File tree

21 files changed

+978
-255
lines changed

21 files changed

+978
-255
lines changed

build-machines.nix

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
22
darwin = {
3-
#ohrid = {
4-
# hostName = "10.40.33.170";
5-
# maxJobs = 2;
6-
# sshUser = "sam";
7-
# sshKey = "/etc/nixos/keys/build";
8-
# system = "x86_64-darwin";
9-
#};
3+
ohrid = {
4+
hostName = "10.40.33.170";
5+
maxJobs = 2;
6+
sshUser = "root";
7+
sshKey = "/etc/nixos/keys/build";
8+
system = "x86_64-darwin";
9+
};
1010
#macvm = {
1111
# hostName = "10.40.33.160";
1212
# maxJobs = 1;
1313
# sshUser = "sam";
1414
# sshKey = "/etc/nixos/keys/build";
1515
# system = "x86_64-darwin";
1616
#};
17-
sarov-mac = {
18-
hostName = "sarov-mac";
19-
maxJobs = 2;
20-
sshUser = "builder";
21-
sshKey = "/etc/nixos/keys/build";
22-
system = "x86_64-darwin";
17+
#sarov-mac = {
18+
# hostName = "sarov-mac";
19+
# maxJobs = 2;
20+
# sshUser = "builder";
21+
# sshKey = "/etc/nixos/keys/build";
22+
# system = "x86_64-darwin";
2323

24-
};
24+
#};
2525
};
2626
linux = {
2727
optina = {

cachix.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# WARN: this file will get overwritten by $ cachix use <name>
3+
{ pkgs, lib, ... }:
4+
5+
let
6+
folder = ./cachix;
7+
toImport = name: value: folder + ("/" + name);
8+
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
9+
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
10+
in {
11+
inherit imports;
12+
nix.binaryCaches = ["https://cache.nixos.org/"];
13+
}
14+

cachix/hercules-ci.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
{
3+
nix = {
4+
binaryCaches = [
5+
"https://hercules-ci.cachix.org"
6+
];
7+
binaryCachePublicKeys = [
8+
"hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0="
9+
];
10+
};
11+
}
12+

cachix/iohk.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
{
3+
nix = {
4+
binaryCaches = [
5+
"https://iohk.cachix.org"
6+
];
7+
binaryCachePublicKeys = [
8+
"iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo="
9+
];
10+
};
11+
}
12+

hardware-configurations/irkutsk.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
fsType = "zfs";
1818
};
1919

20+
fileSystems."/nix" = { device = "zpool/nix";
21+
fsType = "zfs";
22+
};
23+
fileSystems."/var/lib/docker" = { device = "zpool/docker";
24+
fsType = "zfs";
25+
};
26+
fileSystems."/var/lib/containers" = { device = "zpool/containers";
27+
fsType = "zfs";
28+
};
2029
fileSystems."/home" =
2130
{ device = "zpool/home";
2231
fsType = "zfs";

machines/irkutsk.nix

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
let
22
custom_modules = import ../modules/modules-list.nix;
3-
nixosHardware = builtins.fetchTarball {
4-
url = "https://github.com/NixOS/nixos-hardware/archive/36d8bd88cd72cfa8ee4162e6580f0a8e7de132ba.tar.gz";
5-
sha256 = "00w075mlap81m82ria1s4z6aki3sgdap84lzfkxx747w2as7i1sv";
6-
};
7-
ouroborosNetwork = builtins.fetchTarball {
8-
url = "https://github.com/input-output-hk/ouroboros-network/archive/7bed99644a4c2e291478573c6bcafe28e2767bed.tar.gz";
9-
sha256 = "10s3c7zpa3a8zv875qzsiiw7anbx4pyl0j8ihlxh2k8zgfi6s4xp";
10-
};
11-
jormungandr = builtins.fetchTarball {
12-
url = "https://github.com/input-output-hk/jormungandr-nix/archive/243a38acd7ed0ffdc494fb8c824de6ebce0f6301.tar.gz";
13-
sha256 = "0sjjbiw2z84d7nj9pf8qhi595b4vxb8fmny2zfgjml39hx52sjdd";
14-
};
15-
163
in {
174
disabledModules = [ "services/networking/jormungandr.nix" ];
185
imports =
196
[ # Include the results of the hardware scan.
207
../hardware-configurations/irkutsk.nix
218
# Machine specific config
229
../nixconfigs/irkutsk.nix
23-
(import (nixosHardware + "/dell/xps/13-9380"))
24-
/home/sam/work/iohk/cardano-node/scratch/nix/nixos
25-
/home/sam/work/iohk/cardano-byron-proxy/master/nix/nixos
26-
/home/sam/work/iohk/jormungandr-nix/nixos
10+
<nixos-hardware/dell/xps/13-9380>
11+
#/home/sam/work/iohk/cardano-node/fix-defaults/nix/nixos
12+
#/home/sam/work/iohk/cardano-byron-proxy/master/nix/nixos
13+
#/home/sam/work/iohk/jormungandr-nix/reward-api/nixos
14+
../cachix.nix
2715
] ++ custom_modules;
2816

2917
}

modules/profiles/tmux/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, pkgs, lib, ... }:
1+
{ config, pkgs, lib, ... }:
22

33
with lib;
44

@@ -9,7 +9,7 @@ with lib;
99
programs.tmux = {
1010
enable = true;
1111
newSession = true;
12-
extraTmuxConf = builtins.readFile ./tmux.conf;
12+
extraConfig = builtins.readFile ./tmux.conf;
1313
terminal = "screen-256color";
1414
};
1515

modules/profiles/vim.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let
66
nvim = pkgs.neovim.override {
77
vimAlias = true;
88
configure = customization;
9+
extraPython3Packages = ps: [ ps.requests ps.html2text ps.markdown ];
910
};
1011
vim = pkgs.vim_configurable.customize {
1112
name = "vim";

modules/profiles/vim/customization.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ in
3535
"vim-markdown"
3636
"gitgutter"
3737
"vim-nix"
38-
"deoplete_nvim"
38+
#"deoplete_nvim"
3939
"repeat"
4040
"nerdtree"
4141
"UltiSnips"
@@ -46,6 +46,7 @@ in
4646
"splice_vim"
4747
"markdown_wiki"
4848
"tagbar"
49+
"confluence"
4950
] ++ (pkgs.lib.optionals dev dev_plugin_names);
5051
}
5152
];

modules/profiles/vim/plugins.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, fetchgit }:
1+
{ pkgs, fetchgit, fetchFromGitHub, python3 }:
22

33
let
44
buildVimPlugin = pkgs.vimUtils.buildVimPluginFrom2Nix;
@@ -139,4 +139,15 @@ in {
139139
};
140140
dependencies = [];
141141
};
142+
"confluence" = buildVimPlugin {
143+
name = "confluence";
144+
#src = fetchFromGitHub {
145+
# owner = "lusis";
146+
# repo = "confluence-vim";
147+
# rev = "8dd36c41ba79f3d1888555b777159129c94165f9";
148+
# sha256 = "1q2j1bn8izyzr3g8jsn9rcpcw02acvgg8r4f5m5kmqzk9kww558m";
149+
#};
150+
src = /home/sam/work/iohk/confluence-vim;
151+
dependencies = [];
152+
};
142153
}

modules/profiles/vim/vimrc.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ generic +
1010
(pkgs.lib.optionalString dev ''
1111
" wakatime
1212
let g:wakatime_Binary = "${pkgs.wakatime}/bin/wakatime"
13+
let g:confluence_url = "https://input-output.atlassian.net/wiki/rest/api/content"
14+
let g:confluence_user = "[email protected]"
15+
let g:confluence_apikey = "fLo3kHsKgBitys99G3pCCEE2"
16+
1317
${haskell}
1418
${javascript}
1519
'')

modules/profiles/zsh.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ with lib;
44

55
let
66
cfg = config.profiles.zsh;
7-
zsh_config = import ./zsh/config.nix {
8-
inherit (pkgs) writeText zsh-prezto less;
9-
};
7+
zsh_config = pkgs.callPackage ./zsh/config.nix {};
108
in {
119
options.profiles.zsh = {
1210
enable = mkEnableOption "enable zsh profile";

modules/profiles/zsh/config.nix

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ writeText, zsh-prezto, less }:
1+
{ writeText, zsh-prezto, less, coreutils }:
22

33
let
44
self = writeText "zsh-config"
@@ -100,6 +100,7 @@ let
100100
alias ssht="TERM=screen-256color ssh"
101101
alias nshell="nix-shell --run zsh"
102102
alias vi="nvim"
103+
alias cpf="${coreutils}/bin/cp"
103104
# only init if installed.
104105
fasd_cache="$HOME/.fasd-init-bash"
105106
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
@@ -137,24 +138,24 @@ let
137138
alias -g G='| grep' # now you can do: ls foo G something
138139
'';
139140
in {
140-
environment_etc =
141-
[ { source = "${zsh-prezto}/runcoms/zlogin";
142-
target = "zlogin";
143-
}
144-
{ source = "${zsh-prezto}/runcoms/zlogout";
145-
target = "zlogout";
146-
}
147-
{ source = self;
148-
target = "zpreztorc";
149-
}
150-
{ source = "${zsh-prezto}/runcoms/zprofile";
151-
target = "zprofile.local";
152-
}
153-
{ source = "${zsh-prezto}/runcoms/zshenv";
154-
target = "zshenv.local";
155-
}
156-
{ source = "${zsh-prezto}/runcoms/zshrc";
157-
target = "zshrc.local";
158-
}
159-
];
141+
environment_etc = {
142+
zlogin = {
143+
source = "${zsh-prezto}/runcoms/zlogin";
144+
};
145+
zlogout = {
146+
source = "${zsh-prezto}/runcoms/zlogout";
147+
};
148+
zpreztorc = {
149+
source = self;
150+
};
151+
"zprofile.local" = {
152+
source = "${zsh-prezto}/runcoms/zprofile";
153+
};
154+
"zshenv.local" = {
155+
source = "${zsh-prezto}/runcoms/zshenv";
156+
};
157+
"zshrc.local" = {
158+
source = "${zsh-prezto}/runcoms/zshrc";
159+
};
160+
};
160161
}

0 commit comments

Comments
 (0)