This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / machines / green / config.nix
2.0 kB 82 lines
1{ 2 config, 3 pkgs, 4 ... 5}: 6{ 7 clan.core.vars.password-store.secretLocation = "/var/state/secret-vars"; 8 9 imports = [ 10 ../../configs 11 ../../configs/retiolum.nix 12 13 ../../configs/syncthing.nix 14 15 ../../configs/weechat.nix 16 ../../configs/bitlbee.nix 17 18 ../../configs/pass.nix 19 20 ../../configs/git-brain.nix 21 ../../configs/et-server.nix 22 23 ../../configs/atuin-server.nix 24 ../../configs/autoupdate.nix 25 ]; 26 27 krebs.build.host = config.krebs.hosts.green; 28 29 krebs.sync-containers3.inContainer = { 30 enable = true; 31 pubkey = config.clan.core.vars.generators.green-container.files."green.sync.pub".path; 32 }; 33 34 clan.core.vars.generators.green-container = { 35 files."green.sync.key" = { }; 36 files."green.sync.pub".secret = false; 37 runtimeInputs = with pkgs; [ 38 coreutils 39 openssh 40 ]; 41 script = '' 42 ssh-keygen -t ed25519 -N "" -f "$out"/green.sync.key 43 mv "$out"/green.sync.key.pub "$out"/green.sync.pub 44 ''; 45 }; 46 47 systemd.tmpfiles.rules = [ 48 "d /home/lass/.local/share 0700 lass users -" 49 "d /home/lass/.local 0700 lass users -" 50 "d /home/lass/.config 0700 lass users -" 51 52 "d /var/state/lass_ssh 0700 lass users -" 53 "L+ /home/lass/.ssh - - - - ../../var/state/lass_ssh" 54 "d /var/state/lass_gpg 0700 lass users -" 55 "L+ /home/lass/.gnupg - - - - ../../var/state/lass_gpg" 56 "d /var/state/lass_sync 0700 lass users -" 57 "L+ /home/lass/sync - - - - ../../var/state/lass_sync" 58 59 "d /var/state/git 0700 git nogroup -" 60 "L+ /var/lib/git - - - - ../../var/state/git" 61 62 "d /var/state/zerotier-one 0700 root root -" 63 "L+ /var/lib/zerotier-one - - - - ../../var/state/zerotier-one" 64 ]; 65 66 krebs.iptables.tables.nat.PREROUTING.rules = [ 67 { 68 predicate = "-i eth0 -p tcp -m tcp --dport 22"; 69 target = "ACCEPT"; 70 } 71 ]; 72 73 # workaround for ssh access from yubikey via android 74 services.openssh.extraConfig = '' 75 HostKeyAlgorithms +ssh-rsa 76 PubkeyAcceptedAlgorithms +ssh-rsa 77 ''; 78 79 environment.systemPackages = [ 80 pkgs.rbw 81 ]; 82}