From 52993be543d4a8c11f2cebbec9f8661734ef77be Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 29 Jul 2023 17:21:48 +0300 Subject: [PATCH] host: add talos server --- .agenix_config.nix | Bin 5467 -> 6134 bytes Makefile | 3 +- nixos/hosts/canigou/data.secret.nix | Bin 156 -> 53 bytes nixos/hosts/canigou/default.nix | 1 - nixos/hosts/default.nix | 6 ++++ nixos/hosts/istal/services/wireguard.nix | 8 ++---- nixos/hosts/tatos/data.secret.nix | Bin 0 -> 155 bytes nixos/hosts/tatos/default.nix | 27 ++++++++++++++++++ nixos/hosts/tatos/hardware-configuration.nix | 10 +++++++ nixos/hosts/tatos/networking.secret.nix | Bin 0 -> 929 bytes .../services/update_ru_routes.nix | 0 .../services/update_ru_routes.sh | 0 .../{canigou => tatos}/services/wireguard.nix | 18 ++++++------ nixos/modules/wireguard-client.nix | 20 ++----------- nixos/shared/networking.secret.nix | Bin 405 -> 482 bytes secrets/wireguard-canigou-private.age | Bin 1361 -> 0 bytes secrets/wireguard-tatos-private.age | Bin 0 -> 1435 bytes 17 files changed, 59 insertions(+), 34 deletions(-) create mode 100644 nixos/hosts/tatos/data.secret.nix create mode 100644 nixos/hosts/tatos/default.nix create mode 100644 nixos/hosts/tatos/hardware-configuration.nix create mode 100644 nixos/hosts/tatos/networking.secret.nix rename nixos/hosts/{canigou => tatos}/services/update_ru_routes.nix (100%) rename nixos/hosts/{canigou => tatos}/services/update_ru_routes.sh (100%) rename nixos/hosts/{canigou => tatos}/services/wireguard.nix (82%) delete mode 100644 secrets/wireguard-canigou-private.age create mode 100644 secrets/wireguard-tatos-private.age diff --git a/.agenix_config.nix b/.agenix_config.nix index c133e78f053f80ae8ed7c92dcb8326653b0e8e76..c296fdb1abef3d51ff84f68b5ab6e452b84ca1b9 100644 GIT binary patch literal 6134 zcmVG-j^WT?#Q{$$3#~#CN#2!c6cG@qZK| zlEjy@Jb0bd+l<>Xmj-HhhpK&G^3h{%+Cdjl0xR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-PI0=Q}h6+37!@wtO$8MBiO2sDmGrhR=;$Do)iO0FYNFJd9mN`$d6wsp0tb z3W6x8Oww%zb83LA_?Plb&_F0|I#yn{&YO~V;j30^U{Eb7@S({}6#X@q3ZOLD&HLV2 zSparSCz1kQ(HAXO`cA?dCJ_Lt%dm+H%8r|(h^^RXn`wX<8O(FexzM zD0tH>?xwqM{?}I?P{=?G4RmwBTNFpBRrbAk-E+fS?O9h#Zt8fhj@c8Gy` z0%>*Gu~9S7faw79sV^K$%ed%Y2dt3H$NXqBK?59duWMcNN3LhVOVTlm6++yhC6cUZ zBENmaIxyuj&(@9_>bl~|f&*-tHV%3&<^U)=u17Z}oFryfC`33(uH;)WR__=$VDRN= z^Tn1tAGeI2vs=1Mqv{fkEI#z7m{Xs2P>ZwN4}$=s3?7=vS3#|2aFoueCWEC^9)h}a zOW5|0eH{c@hY@#Lv=5*>;E0?m^eDqC*-b7sE;)5tit2H|*=6@!@HK*#CqCTNSj;3| z1;OgE-#NMJzaN;_9&ldm+njM`1zavO% zP88m(wDiew>~TSn)(UU@*$zaYDo>6a2a?)Z0z7!zD6!e6j2#9duoSS<^AZ;)BQm$v Ri^I5q KHtpKf4%i7kcusr( diff --git a/nixos/hosts/canigou/default.nix b/nixos/hosts/canigou/default.nix index 621fc3e..69c0c13 100644 --- a/nixos/hosts/canigou/default.nix +++ b/nixos/hosts/canigou/default.nix @@ -14,7 +14,6 @@ in ../../shared/garbage-collector.nix ../../shared/docker-swarm.nix - ./services/wireguard.nix ./services/miniflux.nix ./services/telegram-bot.nix ]; diff --git a/nixos/hosts/default.nix b/nixos/hosts/default.nix index 028490d..235d8cd 100644 --- a/nixos/hosts/default.nix +++ b/nixos/hosts/default.nix @@ -66,4 +66,10 @@ in targetHost = (import ./istal/data.secret.nix).addr; }; + + tatos = { + system = "x86_64-linux"; + + targetHost = (import ./tatos/data.secret.nix).addr; + }; } diff --git a/nixos/hosts/istal/services/wireguard.nix b/nixos/hosts/istal/services/wireguard.nix index f665266..4c69395 100644 --- a/nixos/hosts/istal/services/wireguard.nix +++ b/nixos/hosts/istal/services/wireguard.nix @@ -1,7 +1,7 @@ { config, pkgs, ... }: let - canigouData = import ../../canigou/data.secret.nix; + tatosData = import ../../tatos/data.secret.nix; istalData = import ../data.secret.nix; inherit (istalData.wireguard) port; @@ -41,12 +41,10 @@ in privateKeyFile = config.age.secrets.wireguard-istal-private.path; peers = [ - # List of allowed peers. { - publicKey = canigouData.wireguard.publicKey; - # List of IPs assigned to this peer within the tunnel subnet. Used to configure routing. + publicKey = tatosData.wireguard.publicKey; allowedIPs = [ "10.20.30.0/24" ]; - endpoint = "${canigouData.addr}:${toString canigouData.wireguard.port}"; + endpoint = "${tatosData.addr}:${toString tatosData.wireguard.port}"; persistentKeepalive = 25; } ]; diff --git a/nixos/hosts/tatos/data.secret.nix b/nixos/hosts/tatos/data.secret.nix new file mode 100644 index 0000000000000000000000000000000000000000..c25e89326fde24304d29a5363186164d644ed812 GIT binary patch literal 155 zcmV;M0A&9FM@dveQdv+`0A7KmigIAGJu=8E_C08cW!cg%11PE^Lyjt>Z=2btL1C!{ zb{UYh7vHcHyRaGQ&hyc@olhaeD#;(kg(})gn#hai^PDbxhKe}5>BbK068d`J$1S+e z2{YeZ9`N3HPvvKKOJtism J^Y*O_*TpeAOvC^H literal 0 HcmV?d00001 diff --git a/nixos/hosts/tatos/default.nix b/nixos/hosts/tatos/default.nix new file mode 100644 index 0000000..956b037 --- /dev/null +++ b/nixos/hosts/tatos/default.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: + +let + data = import ../../../data.nix; +in +{ + imports = [ + ./hardware-configuration.nix + ./networking.secret.nix # generated at runtime by nixos-infect + + ../../modules/nix.nix + ../../shared/common.nix + ../../shared/garbage-collector.nix + + ./services/wireguard.nix + ]; + + boot.kernelPackages = pkgs.linuxPackages_6_1; + boot.tmp.cleanOnBoot = true; + + zramSwap.enable = true; + + networking.hostName = "tatos"; + + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan; +} diff --git a/nixos/hosts/tatos/hardware-configuration.nix b/nixos/hosts/tatos/hardware-configuration.nix new file mode 100644 index 0000000..ceb5686 --- /dev/null +++ b/nixos/hosts/tatos/hardware-configuration.nix @@ -0,0 +1,10 @@ +{ modulesPath, ... }: + +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub.device = "/dev/sda"; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + +} diff --git a/nixos/hosts/tatos/networking.secret.nix b/nixos/hosts/tatos/networking.secret.nix new file mode 100644 index 0000000000000000000000000000000000000000..c59c683899c905a8639a5617391e538737b40327 GIT binary patch literal 929 zcmV;S177?9M@dveQdv+`09LhFU0|=@*>d_fe?<*A!a!*<`+cUy?R3h1N5IZu=Oz*w z0~Q5u{gNo zrB1fiOyeqL=SygbDLH$dwy1EcW2YgHFq z%d|6d*|A@(QmB3vL?QQpOoA;khDx2yf5)G}f^CxSP_u1N){NUK(IhSx&6rBP7%1>a z>NTUav_qFmhVQ(4UB8Kh?5HSsU*EobMEPA{2ah9E1vMK4)2v;uWgrg&E@$9@fZ~_B z4XEn9v-0%3K_L(Y#V4h^&#fRd?)2Q(GAxpJw4x$B`Yc9#bgAJt_;iQMKne!6#x|?z z#|xj#GO0O%$!Q!Tb~LGgShY{0imfKJ)yAD!ylctT_ecu5__?d8;z6@D#u6BKZO3L( zU8mkr)lPZ0FBr$L&NbaRt||Q)sSiiv<=Iv&xwq&8bSi0s&uNy)nEChpEGo|V^$a`4 zil{MEL;WBkwoE@Yyhyk=AXb%LYa)P*0SlCQZ-M~C?oVDq$yP$I7bc<&Wj*2Xi#%xh#eY}LzQfz~=R0K;wz zmpsOX8;4x2Lmz$QvSHUoL{ii< zbgrXRXZ7uY#z+j%R`7?2_PO-B&uCaO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jY8w;5Utd1L*7%S7_EYA8*4YCniXhx2=rd>$Mk&JT7)2`(z|Wr;m?b?R_d z@_h4LSE(moyMEX!Wh!R;8wJxISk8|MtUnV5jC4wSN*|Yld;nohsu&lb*E%nM+EzeJhQbEiV@fAL?UZIj%b374^;`R%6cAPyK?HEiO$O|DDX(HP5ewj-JTnn12 zcq%+ThH0WzweNBJ6s70vzWpZN57iCQnKAy}${?{G@$ib)CLSN=C~U4`ti+xE41GQ~+#c2d=}DHAvk(xjBE?t3S;GzI zU@~dt--Uq$Q4SYB^x0u1TZHH6tol-T6%=xL3COu8-bFj(?6*T*^cxj7^>>(@1;C7- zy8{vB-Kih~>@d@XTK@uDIo(#Ps}77f4y1pPpG?ImoUG=9SroI@>ur;ao{@@A1#5S? z*~+SEfD%x|829~qmE*1b<(lgnb;%33P>pjrZm}ulK1%@?VoJRf8 z&^OGZQAn6KkGM4hfxj5tv8XaA*F+`U;(3=dU>lUBMuHB2dWSM=wY{4OM=%?V^J@{y zq(lHgCZrs`q(XBwn8f=*n#3Reux34=FJm~MnHai@5YZw6!Nlp1A*>q?{uTU)UIS)5 zjs_A8OxLQh1UU~kcZyI&*W+ol@C!tR2y+P`Bw^j`E2*UlH`2`FfP)2jTatgDFH6?i z?Og=uK6P%^h?Y~6<*4#r>&_j)ji0Bcu*XFU)zS{+r3R!_5WZ%L)$#50f(jw+yJ5wl z>gx*uHb*IUtn+RF0~rhi6^|bSac!QYM>#NZbDi)^6v<#90r| zASyy_PXLEptPi$Lz`>-|_`?XPH3&orE?-;l&9*s`^1MHo1>fXI0fd&D-h#S(1ru$DwGz4LTwHi@QyuDIE^Ak1?#j1Bh1z{q5@GK-*jERagYIj zcyut2>$7*{*8FPRAv_3WU+OYxkPW diff --git a/secrets/wireguard-tatos-private.age b/secrets/wireguard-tatos-private.age new file mode 100644 index 0000000000000000000000000000000000000000..1039776b10ca3fb94157055e16f4431d89bdddcb GIT binary patch literal 1435 zcmV;M1!VdFM@dveQdv+`0J1K8%=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