diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-03 20:14:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-03 20:14:25 +0200 |
commit | e0f73777601e56a1dec00d1d2b015fe3af5aba9c (patch) | |
tree | 7deaefba98c912e05a81105b871f5585cd0e85ef | |
parent | b8681db85c2237c84b2e7c045210f86a30106942 (diff) | |
download | nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar.gz nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar.bz2 nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar.xz nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.zip |
gitolite on odin
-rw-r--r-- | odin.nix | 16 | ||||
-rw-r--r-- | odin/hw.nix | 23 |
2 files changed, 30 insertions, 9 deletions
@@ -404,6 +404,22 @@ | |||
404 | }; | 404 | }; |
405 | }; | 405 | }; |
406 | 406 | ||
407 | services.gitolite = { | ||
408 | enable = true; | ||
409 | adminPubkey = buildins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); | ||
410 | dataDir = "/srv/git"; | ||
411 | user = "gitolite"; | ||
412 | group = "git"; | ||
413 | enableGitAnnex = true; | ||
414 | extraGitoliteRc = '' | ||
415 | $RC{LOG_DEST} = 'syslog'; | ||
416 | $RC{GROUPLIST_PGM} = 'printf "@self-key-managers"'; | ||
417 | $RC{HOSTNAME} = '${networking.hostName}'; | ||
418 | $RC{LOCAL_CODE} = "$rc{GL_ADMIN_BASE}/local"; | ||
419 | push(@{$RC{ENABLE}}, qw(create fork D repo-specific-hooks macros git-annex-shell ua)); | ||
420 | ''; | ||
421 | }; | ||
422 | |||
407 | systemd.status-mail = { | 423 | systemd.status-mail = { |
408 | recipient = "root@odin.asgard.yggdrasil"; | 424 | recipient = "root@odin.asgard.yggdrasil"; |
409 | onFailure = [ "nixos-upgrade" | 425 | onFailure = [ "nixos-upgrade" |
diff --git a/odin/hw.nix b/odin/hw.nix index 1d1c7eaa..ae8cf825 100644 --- a/odin/hw.nix +++ b/odin/hw.nix | |||
@@ -34,7 +34,7 @@ | |||
34 | boot.extraModulePackages = [ ]; | 34 | boot.extraModulePackages = [ ]; |
35 | 35 | ||
36 | fileSystems."/" = | 36 | fileSystems."/" = |
37 | { device = "/dev/disk/by-uuid/8dea04a6-4485-4cd2-bab5-d23321a11df9"; | 37 | { device = "/dev/ssd-raid1/root"; |
38 | fsType = "ext4"; | 38 | fsType = "ext4"; |
39 | }; | 39 | }; |
40 | 40 | ||
@@ -44,43 +44,48 @@ | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | fileSystems."/srv/hlidskjalf" = | 46 | fileSystems."/srv/hlidskjalf" = |
47 | { device = "/dev/disk/by-uuid/e796f44c-2b0b-40a8-af22-90beb898d25e"; | 47 | { device = "/dev/raid6/hlidskjalf"; |
48 | fsType = "ext4"; | ||
49 | }; | ||
50 | |||
51 | fileSystems."/srv/git" = | ||
52 | { device = "/dev/raid6/git"; | ||
48 | fsType = "ext4"; | 53 | fsType = "ext4"; |
49 | }; | 54 | }; |
50 | 55 | ||
51 | fileSystems."/home" = | 56 | fileSystems."/home" = |
52 | { device = "/dev/disk/by-uuid/e4737a9e-2a25-4247-936d-c0c4bad82970"; | 57 | { device = "/dev/raid6/home"; |
53 | fsType = "ext4"; | 58 | fsType = "ext4"; |
54 | options = [ "defaults" "quota" ]; | 59 | options = [ "defaults" "quota" ]; |
55 | }; | 60 | }; |
56 | 61 | ||
57 | fileSystems."/root" = | 62 | fileSystems."/root" = |
58 | { device = "/dev/disk/by-uuid/04d2f6cb-80de-43a4-80bd-d569e2304b6a"; | 63 | { device = "/dev/raid6/root"; |
59 | fsType = "ext4"; | 64 | fsType = "ext4"; |
60 | }; | 65 | }; |
61 | 66 | ||
62 | fileSystems."/srv/media" = | 67 | fileSystems."/srv/media" = |
63 | { device = "/dev/disk/by-uuid/09959dcd-e8ca-4958-89b2-993cc79fe8f7"; | 68 | { device = "/dev/raid6/media"; |
64 | fsType = "ext4"; | 69 | fsType = "ext4"; |
65 | }; | 70 | }; |
66 | 71 | ||
67 | fileSystems."/srv/mail" = | 72 | fileSystems."/srv/mail" = |
68 | { device = "/dev/disk/by-uuid/d43c25b5-2c0f-4ac9-9f0b-de93c33442a1"; | 73 | { device = "/dev/raid6/mail"; |
69 | fsType = "ext4"; | 74 | fsType = "ext4"; |
70 | }; | 75 | }; |
71 | 76 | ||
72 | fileSystems."/nix/store" = | 77 | fileSystems."/nix/store" = |
73 | { device = "/dev/disk/by-uuid/b36a581c-e38c-4c25-9073-18a313cce286"; | 78 | { device = "/dev/ssd-nvme/nix-store"; |
74 | fsType = "xfs"; | 79 | fsType = "xfs"; |
75 | }; | 80 | }; |
76 | 81 | ||
77 | fileSystems."/var/spool" = | 82 | fileSystems."/var/spool" = |
78 | { device = "/dev/disk/by-uuid/5cb9231d-8d8d-45bf-b581-7a3422b0c3fe"; | 83 | { device = "/dev/raid6/spool"; |
79 | fsType = "xfs"; | 84 | fsType = "xfs"; |
80 | }; | 85 | }; |
81 | 86 | ||
82 | swapDevices = | 87 | swapDevices = |
83 | [ { device = "/dev/disk/by-uuid/a27e368d-e1ed-41e5-8bcb-6e5865670532"; } | 88 | [ { device = "/dev/ssd-raid1/swap"; } |
84 | ]; | 89 | ]; |
85 | 90 | ||
86 | nix.maxJobs = lib.mkDefault 8; | 91 | nix.maxJobs = lib.mkDefault 8; |