Skip to content

Commit

Permalink
feat: Add laptop + steamdeck to syncthing, misc improvements
Browse files Browse the repository at this point in the history
Add laptop and steamdeck cert and key secrets

Sync notes folder by default
  • Loading branch information
lpchaim committed Oct 6, 2024
1 parent 45dedd9 commit 2a8b2f1
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,21 @@ creation_rules:
- *raspberrypi
- *steamdeck
- *wsl
- path_regex: secrets/hosts/[^/]+\.(yaml|json|env|ini)$
- path_regex: secrets/hosts/desktop.yaml
key_groups:
- age:
- *master1
- *master2
- *desktop
- path_regex: secrets/hosts/laptop.yaml
key_groups:
- age:
- *master1
- *master2
- *laptop
- path_regex: secrets/hosts/steamdeck.yaml
key_groups:
- age:
- *master1
- *master2
- *steamdeck
8 changes: 7 additions & 1 deletion modules/home/syncthing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ in
qt\widgetstyle=
EOF
'';
Unit.X-Restart-Triggers = [syncthing syncthingtray];
Unit.X-Restart-Triggers = [
syncthing
syncthingtray
"syncthing.systemunit.service"
"syncthing-init.systemunit.service"
"syncthing-relay.systemunit.service"
];
Unit.X-SwitchMethod = "restart";
};
}
15 changes: 14 additions & 1 deletion modules/nixos/syncthing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,32 @@ in
versioning = null;
devices = allDevices;
};
"${home}/Notes/Logseq" = {
id = "6ymhp-fehcm";
label = "Notes/Logseq";
type = "sendreceive";
versioning = null;
devices = allDevices;
};
"${home}/.steam/steam/userdata/85204334/config/grid" = {
id = "steam-custom-icons";
label = "Steam/Custom Icons";
type = "sendreceive";
versioning = null;
devices = allDevices;
devices = ["desktop" "laptop" "steamdeck" "server"];
};
};
devices = {
desktop.id = "Q7UXFUW-Q4QWALL-AVBRBPW-Y2S44CV-IR4H3V4-OT2GH4V-6WCXBR4-STJXFQJ";
desktop.name = "Desktop";
laptop.id = "VFFQPOF-XAPVKHO-4PUSIVT-ACYNHAZ-GOQBWC6-SEYBXGE-2MBBMRS-TJRD4QL";
laptop.name = "Laptop";
phone.id = "PDMAJC4-SIXM4NI-UDMSLPU-3QSBSM2-ZUBLQDU-MNCR2HH-XUJIG52-PH4IKQC";
phone.name = "Phone";
server.id = "X5LHXQ6-NOCD2NO-RQ7FPLO-WFLLFRE-5BTTVL6-XLH3DAV-4ZIYI47-EEOVYAK";
server.name = "Server";
steamdeck.id = "OBZRWRW-B7DYVZC-RL5JV3D-6YNWG4O-MAIN2GY-KTEBY6V-DWQK36S-5E2O7AB";
steamdeck.name = "Steam Deck";
};
};
};
Expand Down
41 changes: 41 additions & 0 deletions secrets/hosts/laptop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
syncthing:
cert: ENC[AES256_GCM,data:B9xpRnRVkSv9o9jUrFsW4xFeCNqLYonfftRJ93zgiBXGllkg1H2AJHIbXEwX1R2knRPXcMwobu2mdiRZ4cbE4ov8U1WDL6ADm2SY7r4U1NeZej46PFbDjsRtf8PyvAC52wQc3xRCsM2/ZVx+zILiBnPrCk5PORgPsh3uVBq0IFkMXyAoT30/4jk8Apk6XRViQe8tjWqDPtalsJYxW5ax4HR5anTsmomwxeMOhqdCiTWTzmh/QuIBMRkoCx6Q/b583vkjfho4+7MHa5zj6Nqvf3l4g8yhUJgv65lbDCNsOuDzYvSikNFZnrj9JUf34j26lmDNndU9EzBQdEjd0hv6/pygdzUdeRJ0ngylwsy3TZ4xY7YorFtsSli+l5hy6watIvklwkn3VOLRj+1HUlQtfSl6BMloGxjrwAbmW3n0hMk2tH6AKgBSMmRnblfuolnOnS5Ak++/gMQe7vwqV7rdBFRH1TTky6dWhElhA1dnlC1p5Ztn8Q5G8fa3CVF9H2EjaG3HIa0c9ySwx3JsFHK0Aqx62d1CYyFUaYWiDmHitklVOiQ33tm3Nk1jlhNHJhnK4CptyUbOYvQebSA+MWffXK772JM23xZHAV24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cmu4hd4sd89hl7szhd0z8vg6tx9hk3xsvuljm9gsj7n0l4nsl6ad4u
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB0M2JFc2IvQlRvNWFQY3R2
YjQ3ejFjZEtTNHBIdzkvMURhRDl0WVhtdUE0ClBwTjE3Z3QzMVp6MWozZXBidUVh
ZUxBbHFFRDdhVWRNajloeHRqSDYwdHMKLS0tIDdGRlFPRm0vSTJVdnVFam5jY1FX
M0cyWEhZUzdHZEtaMzJza3VUbzRvdWcK77RKdJlexwrDXURM330/9ELVB5bheQNH
fKE4ZXKdbe4GJH9N5g4BIYBbvjHbzdBoju+/pGo0//qAts8ljRMRZg==
-----END AGE ENCRYPTED FILE-----
- recipient: age10fa7ce7w6q0ppk5l2gvg6d02g9cmj26rpt00ct54d4latqsnwajs90a43h
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBERzBad1JHWXl6M2lkY1ZT
b0dLSjVSd0pGNExCSEFkdW90eVVoNWNZV1VNCmdLajllUE9UQ013bldZTHV6WlFL
MGtrNXJOWWc2ZWpIeFVDMUg3bjJpUVkKLS0tIFd0SW5pNFZrS3lOODR1NmJOY0dL
aEtnWXpBdGZDb3F1N0FPbDBBUlpDUVEK9v/TI4HAgPZDnTzCmxfVqsmfvoNbX6do
wn56ZTwkn52YweFRTQ0zB2xfTD/kgSHrJ+Rc+oDX1NPs9uKsJpVpbQ==
-----END AGE ENCRYPTED FILE-----
- recipient: age1ke3gya92cy465lp9yxwygckgtg8tcsh366vgh4ywu6edl7a7ca0sgjxrjg
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA5MG1SOXZaTHROcXlXMmJI
bGRHQjQxcnQwZnRtY0s3TGx6TDJFeTFVbkNzCmRrbzdOSDdVZWJMRWIyekQ4bHdP
NWtzc0h3d1RzanMvMHVYcW5VZ3Q4cTgKLS0tIGpyTExBTk9XM25JNGdWK05qL2R3
a3JNMVBzTUJXbWQ1QXEvOWcyRHpQdjQKZUESMU0pVBWlVBZR9tMJ7Q+S1bvcIlha
5VS+W8aANb7L8kJQ6SSD5x87Ay15eimwQyvhvPx5Iq6NnEbxEa0Mlg==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-10-06T12:27:44Z"
mac: ENC[AES256_GCM,data:bkQ8/hYQI+oCW30leILWUef50JSdevJtDA2SmHgVMtefI1G1sSfHIOke29FNl1wGexkj8OFLoQlm4zegnt6WJDqN4Q2GoTAHTki2tdf7YNq+ocMs8HCqcsAikQtjoRTRmO2bhU+9JYnAA1M18upbfi+gUGxNCgyGaF7uRbNp4wE=,iv:yGgALEOO//qR3mXVKJP3y3TfxLtkiXkOiU4tGT0V4OI=,tag:IdirrNVQFJ8AQNP1ozCQVA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.0
41 changes: 41 additions & 0 deletions secrets/hosts/steamdeck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
syncthing:
cert: ENC[AES256_GCM,data:MTVLUjGNEzZjZ8q3rBxBOQ2BeXdQuiqfPh40eh+/lNOf7eeKh2q8ZNKGR0ZI8TxhyKiK1oO0mq65KlvrVDhsTuNpXUVBSrQ5nvVuETJJNn9FVi0UIUOqELfGtaKq6xw+RbKv3TBnKDyz5P9co1rfoVa5hvWF7rBkXNrkiH1FFXxtvpgEeYy8j5vMfKkW0YhTUth+4mhQiMUu2QJtv4efXeEceY+SCihPc/fOC20Fq/fkXCoNg4OblRJmrrQWyZzZeIV5uCfg2c13t76IyINpC2XX1SL3+I4/ugsF+jerKe9p6B/Zk6PSxaDR+IwGmP2UcwRClheL/XS0B9z8rWXlgS0tIhH5whod27pTkPePyeGH7XqMQsfP75u0bdtfyCKws4LQ8RrU8BjmS60g0VRcSu4Ren/E1+mwZPGtVJfkjwM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GHepfpP+D9VxADr6KHsk7J8ePL5BE=,iv:iA+JnG+XlJYsLMxrHD5sbxMzc4KDsX/HZ4MKrFiXDMA=,tag:Wvv5O88t6tpzICE8Q1dTuA==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1tq2gcmu4hd4sd89hl7szhd0z8vg6tx9hk3xsvuljm9gsj7n0l4nsl6ad4u
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA1VXpXMzVqTVFOdzFDZGVU
OTFtajBzK1NodTUrekNnWDNPd2gwZXAzU0Y4CnN4bkM3ampHdjF0OWNsRkY2SDMz
TmpWbHJyYTIybEFybXU1Skp3cmNsZWcKLS0tIHloMXh0STVJaWkza1krSzNTRElV
ckNKbVVKdGlhSXdzeStzZFRPb2hDODQKptZyFl1fSo6S8Hdf3U/CQ/a7ALSuZx0c
3V0+y/pqwE5ok0BJ48ktc7zmpvDLxc1sD3vkqY6oSj79pIhHVQNSYQ==
-----END AGE ENCRYPTED FILE-----
- recipient: age10fa7ce7w6q0ppk5l2gvg6d02g9cmj26rpt00ct54d4latqsnwajs90a43h
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAxZ1UxNGhkOHlkSGlQV2dF
azdSeXVXWXhsME5nSFRXa2lNQ1BXOG9uSGprCkQrcW9TZnZmajBTTVd5VFV0SFBn
Y3hpWmttSWxpNitHbWxvQ0lHOUdsajgKLS0tICtmKzhPTFhLNVU5UDFURHc2U3Nu
UCtzZTAwOU4wU1RmcXRXcG15OTNGTFkKPbbfEN4oaoSn3JoMMkXY4q/kObEkAvrL
QuOc+Mkl73qFYNvDL76NH5wqkHKmC+wIPSAaPujC3DK96sO3jLkW2g==
-----END AGE ENCRYPTED FILE-----
- recipient: age1rsz0jrlkqs2z2p3r4a6qhwnsmyhwgh72mtxvvfwm00qtn8lq9arqa29vum
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAxVkNGb0I1bkRMb3IxOWxX
eDlqWmxlYTI1YmhZNldkSXVrajRId240MzFZCjJ5U0EwYTBwaDF1SVUrRUdWWTBW
TzFqQ0hRS1NxanZuTWpMZFB4eFRLWUEKLS0tIEc2S1VSL0k0R202aUkvbHNHNHR1
NnVDaEVqc2NFZDhFQUtXSUQxWWxram8KjPoPNp7eLhHXzTDQDB/LzK3S7pYPNmvs
rndU+MpNz9OSDh+z/wa79U4eFIPHt4LSzYr8k1+8wQo3ZKaVCLn1CA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-10-06T13:09:18Z"
mac: ENC[AES256_GCM,data:HiUcURqxk3YODpFKVOYT/PzTpDj+m8MgGkBbcFrCLisZu90/WtF6Mx+Y4hG3sXNU8ELr6DE3Ehw1XdcJon79vIjyqxY74tYgx61w7QMhyYjf73MKLU7qxvcQWiu+ag1z9VEADzr5lIC5wnh/bGJ/z7mKY6JXII9pipCdAVJstjo=,iv:7LDIhO9QCvJQtiEtjGKrRo37efSX0ef8NtORctkn4UU=,tag:A/oxSuVO5XVoTusyJZh+oQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.0

0 comments on commit 2a8b2f1

Please sign in to comment.