Commit Graph

453 Commits

Author SHA1 Message Date
Andreas Zweili 4d71c0bb83 Remove the default value from config 2022-11-02 21:27:28 +01:00
Andreas Zweili 2c801b3947 Move the nginx configs back to the system
I think should try to keep modules separate from each other and combine them on
the host level to keep them more flexible.
2022-11-02 21:05:56 +01:00
Andreas Zweili 9399099b8f Change volumes for plex 2022-11-02 16:53:45 +01:00
Andreas Zweili 19f27c4a38 Readd missing variable 2022-11-02 15:47:01 +01:00
Andreas Zweili 77ac872435 Add the docker role to all relevant roles
I need this especially for lazydocker
2022-11-02 15:43:38 +01:00
Andreas Zweili fa35a3271c Add docker config for plex 2022-11-02 15:40:09 +01:00
Andreas Zweili a5253f585e Remove unused line break 2022-11-02 14:54:37 +01:00
Andreas Zweili fddbf4b170 Add a module for heimdall 2022-11-02 14:21:10 +01:00
Andreas Zweili 4e669f4026 Reformat the nginx config 2022-11-02 14:15:56 +01:00
Andreas Zweili 591903f1ac Move the nginx config to rss-bridge 2022-11-02 11:32:26 +01:00
Andreas Zweili bdaf0c9504 Add a module for rss-bridge 2022-11-02 11:30:13 +01:00
Andreas Zweili 4b2883f8cd Add WIP config for ttrss in a container 2022-11-02 10:49:45 +01:00
Andreas Zweili 692be5e2bb Reenable pipewire on gwyn 2022-11-01 11:53:24 +01:00
Andreas Zweili e4cfa30145 Add the media share 2022-10-17 21:58:03 +02:00
Andreas Zweili 493efbbed4 Allow ping on all systems 2022-09-17 19:25:57 +02:00
Andreas Zweili 6620582c8c Fix interface config 2022-09-17 18:57:03 +02:00
Andreas Zweili babdc30042 Enable DHCP on the second interface of loki-test 2022-09-17 18:56:15 +02:00
Andreas Zweili 61c24ad33a Add loki-test 2022-09-16 12:23:48 +02:00
Andreas Zweili 6da69b8bf3 Update the nginx configs to include an fpm config 2022-09-12 18:13:05 +02:00
Andreas Zweili 4c9ea24f91 Rename raspi to proxy 2022-09-07 20:09:47 +02:00
Andreas Zweili 71ee362447 Correct IP for test_server 2022-09-07 20:08:01 +02:00
Andreas Zweili d43bbf7bfb Remove unused server 2022-09-07 20:07:53 +02:00
Andreas Zweili 09dddeffb9 Rename raspi to proxy 2022-09-07 20:07:44 +02:00
Andreas Zweili be486d9176 Remove unused subdomain 2022-09-07 20:07:27 +02:00
Andreas Zweili 1529ae6c38 Remove unused argument 2022-09-07 17:49:11 +02:00
Andreas Zweili a0bd746957 rewrite to hostname 2022-09-06 23:03:29 +02:00
Andreas Zweili 85a06a9233 use the hostname properly 2022-09-06 20:14:29 +02:00
Andreas Zweili 216cd0b97b Add hunspell globaly 2022-09-01 09:10:56 +02:00
Andreas Zweili 59e22d3584 Replace freac with sound-juicer
The version NixOS is broken.
2022-08-30 18:36:10 +02:00
Andreas Zweili 4e9d134503 Move the import to modules 2022-08-29 22:10:25 +02:00
Andreas Zweili eeb48df35a Migrate the libimobiledevice to a normal module
The reason is because I want to have the usbmuxd service in that config as well.
2022-08-29 22:09:05 +02:00
Andreas Zweili 315a01ede5 Remove unused inputs 2022-08-28 11:49:06 +02:00
Andreas Zweili 625d407195 Rewrite the Telegram notifications to writeShellScript 2022-08-28 11:43:48 +02:00
Andreas Zweili db328bd2f6 Enable Telegram notifications on all restic services 2022-08-27 17:17:38 +02:00
Andreas Zweili 77297e9fc5 Finish the Telegram notifications 2022-08-27 17:16:23 +02:00
Andreas Zweili a5740499f7 Send Telegram notifications on failure 2022-08-27 17:15:05 +02:00
Andreas Zweili 7dcd542904 Add telegram notifications 2022-08-27 16:30:54 +02:00
Andreas Zweili 5030f8fecd Add Plexamp 2022-08-27 15:11:05 +02:00
Andreas Zweili 812743faf7 Correct Infomaniak mount path 2022-08-23 21:31:19 +02:00
Andreas Zweili aa73b24c0e Use the short tags again 2022-08-23 21:29:45 +02:00
Andreas Zweili c5ff867d1b Add a tag to the gwyn backups 2022-08-23 21:28:37 +02:00
Andreas Zweili 4c900d7371 Correct list snapshots command 2022-08-23 21:27:57 +02:00
Andreas Zweili 6e43fc6a4c Correct the infomaniak repo URL 2022-08-23 21:27:40 +02:00
Andreas Zweili 90d5a6bd50 Replace ScriptBin with ShellScriptBin 2022-08-23 21:27:27 +02:00
Andreas Zweili e637fd1643 Add the hostname to the tag 2022-08-23 20:59:48 +02:00
Andreas Zweili 0318bc3818 Reformat the aliases 2022-08-23 20:13:31 +02:00
Andreas Zweili 601c458703 Add a restic-forget command 2022-08-23 20:13:21 +02:00
Andreas Zweili 22015f45cb Enable pulseaudio 2022-08-21 14:23:40 +02:00
Andreas Zweili f469e58863 Remove Pipewire from desktop 2022-08-18 20:16:23 +02:00
Andreas Zweili 80f186c94c Cleanup the restic-server-mysql-client config 2022-08-17 22:24:08 +02:00
Andreas Zweili 8573054568 Clean up the restic-server-client config 2022-08-17 22:22:21 +02:00
Andreas Zweili aeb5188ea2 Enable volatile journald logs 2022-08-17 21:38:38 +02:00
Andreas Zweili b2af245a14 Finalize the tmpfs on /var/log 2022-08-17 21:16:02 +02:00
Andreas Zweili 52785d4d54 Replace the default syslog config 2022-08-17 20:40:05 +02:00
Andreas Zweili d1574001c1 Add log-to-ram module 2022-08-17 20:26:46 +02:00
Andreas Zweili 8d87f25055 Add freac 2022-08-17 19:13:21 +02:00
Andreas Zweili ff8fe8f227 Quickemu 2022-08-15 15:25:56 +02:00
Andreas Zweili 3b65060551 Extend SSH config 2022-08-15 14:55:47 +02:00
Andreas Zweili e7ceaaa3fc Remove the literate emacs config 2022-08-12 09:21:49 +02:00
Andreas Zweili 3e9d8965e9 Enable Pipewire with EasyEffects
With EasyEffects I can use an equalizer for AutoEQ in Linux.
2022-08-10 20:46:38 +02:00
Andreas Zweili d7f04aa258 Add thumbnails script 2022-08-08 16:45:08 +02:00
Andreas Zweili 7813884bb7 Add replace-listings 2022-08-08 16:29:06 +02:00
Andreas Zweili 4a476b45d9 Reorder scripts 2022-08-08 16:21:44 +02:00
Andreas Zweili ca221cbc27 Add heif-to-jpeg 2022-08-08 12:04:57 +02:00
Andreas Zweili 94755febc2 Add files-to-lowercase.sh 2022-08-08 12:00:08 +02:00
Andreas Zweili 61ebe01a4f Use writeShellScriptBin for inline scripts
Since those scripts aren't read from a script file they don't contain a shebang
so I can use writeShellScriptBin without a problem.
2022-08-08 11:57:47 +02:00
Andreas Zweili 47e345b5f3 Add files-to-lowercase 2022-08-08 11:44:19 +02:00
Andreas Zweili eb93c9137a Add the compress-pdf script 2022-08-08 11:44:00 +02:00
Andreas Zweili 05185aa8d7 Use writeScriptBin
Other than writeShellScriptBin writeScriptBin doesn't replace the Shebang.
I probably have to rewrite this at some point but for the moment it's easier
this way.
2022-08-08 11:41:26 +02:00
Andreas Zweili a9a0b5bb94 replace int with string for env variable 2022-08-07 15:52:51 +02:00
Andreas Zweili e9cc3d7bdb Allow unfree packages in the shell as well 2022-08-07 13:51:06 +02:00
Andreas Zweili b37a2607c0 Add a separate share for logs 2022-07-14 13:06:28 +02:00
Andreas Zweili e09ea027cf Add nix-ld and nix-alien 2022-06-27 18:53:24 +02:00
Andreas Zweili a9dd480131 Remove all unsupported options 2022-06-20 21:59:27 +02:00
Andreas Zweili fda785dcb2 Remove another unsupported option 2022-06-20 21:14:35 +02:00
Andreas Zweili af5152772b Merge message options 2022-06-20 21:12:21 +02:00
Andreas Zweili fd8aa03a31 Remove tmux from the common role 2022-06-20 21:06:55 +02:00
Andreas Zweili 429725cd1c Remove unknown option 2022-06-20 21:04:55 +02:00
Andreas Zweili 108981f800 More design changes 2022-06-20 21:00:06 +02:00
Andreas Zweili 5bf08b78be Adjust the clock in tmux 2022-06-20 20:55:05 +02:00
Andreas Zweili 565556b9b5 Move the tmux statusbar to the top 2022-06-20 20:52:23 +02:00
Andreas Zweili 52ffbdbfbf Add a keybind to dump the output from tmux 2022-06-20 20:52:03 +02:00
Andreas Zweili eca8d13844 Increase the tmux history 2022-06-20 20:51:45 +02:00
Andreas Zweili 76792e4e93 Reattach to the same session with tmux 2022-06-20 19:09:04 +02:00
Andreas Zweili 7b9e3ca525 Remove the Wallabag server from the proxy 2022-06-14 22:03:57 +02:00
Andreas Zweili a4d10dfe80 Force the NFS version to 4.0
QNAP isn't ready yet.
2022-06-14 21:12:29 +02:00
Andreas Zweili e2c74a1c61 Try to downgrade the NFS version 2022-06-14 20:44:21 +02:00
Andreas Zweili d9558231eb Increase the garbage collection to 30 days 2022-06-08 10:39:25 +02:00
Andreas Zweili 9f8e3ff62a Try with quotes 2022-06-07 23:50:33 +02:00
Andreas Zweili 89f560353a Add noatime and hard to the restic-server share 2022-06-07 23:32:59 +02:00
Andreas Zweili eb2c85ef06 Add noatime to the data-share 2022-06-07 23:32:48 +02:00
Andreas Zweili e5ba2097e9 Backup the database with --single-transaction 2022-06-01 20:11:38 +02:00
Andreas Zweili 48429d5d87 Correct firewall command 2022-05-31 23:32:45 +02:00
Andreas Zweili 33318d70d4 Merge branch '22-05' of git.2li.ch:Nebucatnetzer/nixos into 22-05 2022-05-31 22:24:20 +02:00
Andreas Zweili ffc9635f85 Add a module to backup servers with MariaDB 2022-05-31 22:23:53 +02:00
Andreas Zweili 6271e68d1c Add tags to restic backups 2022-05-31 22:23:38 +02:00
Andreas Zweili 125026a213 #22 Merge branch 'master' into 22-05 2022-05-31 20:42:31 +02:00
Andreas Zweili 636fc55096 Bind MariaDB to correct IP and open firewall port for Docker 2022-05-31 20:41:21 +02:00
Andreas Zweili 5abf0570e6 Correct the ACME defaults 2022-05-31 20:41:06 +02:00
Andreas Zweili 1984639b99 Reenable Flakes 2022-05-31 09:13:36 +02:00
Andreas Zweili c74107c525 Update to 22.05 2022-05-31 09:11:44 +02:00
Andreas Zweili 3616bbc646 Enable TLP on my notebooks 2022-05-27 13:15:15 +02:00
Andreas Zweili 5ce8793dfd Change MariaDB bind address 2022-05-23 16:10:39 +02:00
Andreas Zweili ab107ded5e Bind MariaDB to specific IP 2022-05-23 16:03:00 +02:00
Andreas Zweili be01f4ab95 Add a mariadb module 2022-05-23 15:59:07 +02:00
Andreas Zweili 092ba56a53 Remove unused systems 2022-05-20 13:43:43 +02:00
Andreas Zweili 5311d6bf21 Remove the photos domain 2022-05-19 22:45:02 +02:00
Andreas Zweili a8d13ad53b Remove the webmail domain 2022-05-19 22:44:41 +02:00
Andreas Zweili d8c5915e73 Change HTTPS port for mail 2022-05-19 21:49:35 +02:00
Andreas Zweili d44bb98997 Make the port customisable 2022-05-19 21:41:45 +02:00
Andreas Zweili cadcd7981d Update HSTS to match my Traefik config 2022-05-18 21:29:36 +02:00
Andreas Zweili af102123e7 Increase the HTTPS security 2022-05-18 21:22:13 +02:00
Andreas Zweili 5f4a2d3c8d Enable NGINX optimisation 2022-05-18 21:19:30 +02:00
Andreas Zweili 3fe353deb4 Move common ACME configs into separate module 2022-05-18 21:17:15 +02:00
Andreas Zweili 6dcb525a6f Merge the haproxy and raspi-haproxy config 2022-05-18 20:57:00 +02:00
Andreas Zweili 7869c0360f Set missing ACME settings 2022-05-17 22:18:43 +02:00
Andreas Zweili 88d88b136b Add missing parenthesis 2022-05-17 22:15:35 +02:00
Andreas Zweili 0a8fd8fbb9 Open port 443 2022-05-17 22:11:02 +02:00
Andreas Zweili 130295ede7 Add a nginx config for letsencrypt 2022-05-17 22:05:50 +02:00
Andreas Zweili 48d7f23201 Ignore the .mozilla folder 2022-05-17 07:11:52 +02:00
Andreas Zweili 6bf48f68d2 Add lnav to data-share module 2022-05-16 17:55:10 +02:00
Andreas Zweili 9652b7732d Add a syslog module 2022-05-06 15:07:45 +02:00
Andreas Zweili e383ddccce Correct attribute in ntp module 2022-05-05 22:27:26 +02:00
Andreas Zweili 8dd5c1ad45 Add an ntp module 2022-05-05 22:26:05 +02:00
Andreas Zweili 5bf55f525d Make the data-share laptop friendly 2022-05-05 22:25:22 +02:00
Andreas Zweili ed91388b57 Move the test server to the correct proxy 2022-05-05 00:08:53 +02:00
Andreas Zweili 0823dd148f Add a test server 2022-05-04 23:41:46 +02:00
Andreas Zweili 32369f2774 Add workaround for git the security bug
https://github.com/NixOS/nixpkgs/issues/169193
2022-05-04 21:02:18 +02:00
Andreas Zweili b4d5fa105f add an alias to unlock restic 2022-04-16 15:44:53 +02:00
Andreas Zweili e1be43cb4d extend the rebuild command 2022-04-16 15:24:10 +02:00
Andreas Zweili a09463fa77 change tmux config 2022-04-11 17:02:41 +02:00
Andreas Zweili abf2ce16f5 move tmux into its one file 2022-03-28 18:08:54 +02:00
Andreas Zweili 425b753a5d add my local domain to the network config 2022-03-27 16:14:54 +02:00
Andreas Zweili b634c9e5c3 add a shortcut for timestamps 2022-03-25 10:48:21 +01:00
Andreas Zweili 5f80e7022c Merge pull request 'raspi-test' (#1) from raspi-test into master
Reviewed-on: #1
2022-03-20 14:37:55 +01:00
Andreas Zweili cd6320bfe7 try to only run restic on AC power 2022-03-18 16:51:39 +01:00
Andreas Zweili c215955d43 Merge branch 'master' of https://git.2li.ch/Nebucatnetzer/nixos into raspi-test 2022-03-16 16:11:59 +01:00
Andreas Zweili 89345cb548 move the mk-network into the proxmox-vm 2022-03-16 16:11:28 +01:00
Andreas Zweili 65c6248fd6 enable haproxy on raspi 2022-03-16 15:55:00 +01:00
Andreas Zweili e6e2f6f199 add agenix directly to the base config 2022-03-16 15:22:13 +01:00
Andreas Zweili 6e4b951381 add agenix cli command 2022-03-16 14:46:33 +01:00
Andreas Zweili 77f1ad0a67 add a common-x86 module 2022-03-15 17:51:12 +01:00
Andreas Zweili 653db00302 more tries 2022-03-07 23:33:41 +01:00
Andreas Zweili 5b009eaedd open more required ports for nomad 2022-03-07 23:28:31 +01:00
Andreas Zweili c039c8465a try to bootstrap 2022-03-07 23:26:10 +01:00
Andreas Zweili 0aca0fe0c8 and again 2022-03-07 23:08:57 +01:00
Andreas Zweili 6046e572bd move the firewall option out of nomad 2022-03-07 23:00:12 +01:00
Andreas Zweili 011f4454f5 fix the nomad configs 2022-03-07 22:54:56 +01:00
Andreas Zweili 5f52293916 add settings for nomad 2022-03-07 22:33:33 +01:00
Andreas Zweili fdb0d398d1 remove http backend 2022-03-07 14:41:25 +01:00
Andreas Zweili b53b51ff9e clean out old servers 2022-03-07 14:39:50 +01:00
Andreas Zweili c9dac639ac remove the photoprism_server backend 2022-03-07 14:38:04 +01:00
Andreas Zweili 21c25a33a8 add photoprism_server to proxy 2022-03-07 14:24:34 +01:00
Andreas Zweili f8aa9bc451 remove media-share from plex 2022-03-07 12:11:21 +01:00
Andreas Zweili efc43800e0 remove the download-share
I'm mounting it directly with docker
2022-03-07 10:40:11 +01:00
Andreas Zweili 08b9875467 correct path to server data 2022-03-07 09:44:42 +01:00
Andreas Zweili 6855ec08b0 try to set SETENV for sudo users 2022-03-04 18:28:49 +01:00
Andreas Zweili e65d75d81a add environment variable 2022-03-04 17:33:15 +01:00
Andreas Zweili 293bd24977 add helm and kubectl to k3s master 2022-03-04 17:18:27 +01:00
Andreas Zweili a02c6a7097 add hardcoded path to token
I later have to change this to something like agenix path or so.
2022-03-04 16:28:01 +01:00
Andreas Zweili a786764de2 correct path to k3s token 2022-03-04 16:20:16 +01:00
Andreas Zweili 8c8d5bb390 add missing requirements 2022-03-04 15:51:32 +01:00
Andreas Zweili 53fe933894 add k3s to the environment for cli commands 2022-03-04 15:50:23 +01:00
Andreas Zweili 0084e2a3b8 open firewall on k3s master 2022-03-04 15:48:04 +01:00
Andreas Zweili 4ef6bbbf78 add missing semicolons 2022-03-04 15:37:49 +01:00
Andreas Zweili e9a98bc906 add configs for k3s 2022-03-04 15:30:06 +01:00
Andreas Zweili da559409cc remove the EXTENSIONS_GALLERY
didn't really work
2022-03-01 23:43:25 +01:00
Andreas Zweili 479bf4b7de another try 2022-03-01 23:15:21 +01:00
Andreas Zweili f090323db2 try to add extension market to code-server 2022-03-01 22:55:19 +01:00
Andreas Zweili c45e3ba2f3 add more restic aliases 2022-03-01 16:54:46 +01:00
Andreas Zweili 22f26bfaa7 correct alias 2022-03-01 15:23:39 +01:00
Andreas Zweili 5144d0b3b2 test an alias for restic 2022-03-01 15:01:50 +01:00
Andreas Zweili 95328660e3 fix the code-server terminal 2022-02-28 20:49:06 +01:00
Andreas Zweili 11eed2d500 add missing parameter 2022-02-28 19:03:37 +01:00
Andreas Zweili a7ed1c36bf remove duplicate file 2022-02-28 18:31:13 +01:00
Andreas Zweili 4d7a91d2fa correct username 2022-02-28 18:30:59 +01:00
Andreas Zweili 3e6e0cfead correct the path to the password 2022-02-28 18:24:51 +01:00
Andreas Zweili b4e44a94aa rewrite the restic-server-client 2022-02-28 18:19:50 +01:00
Andreas Zweili 7c3afa3115 correct service names 2022-02-28 18:13:09 +01:00
Andreas Zweili 9741417f52 rewrite the restic service to fit my needs 2022-02-28 18:11:11 +01:00
Andreas Zweili 3e0562f088 run prune command as restic user 2022-02-28 17:33:18 +01:00
Andreas Zweili f7ab7d8f93 limit forget command to current host 2022-02-28 17:32:55 +01:00
Andreas Zweili 1e92c945a5 rename services 2022-02-28 17:16:23 +01:00
Andreas Zweili ad38533750 correct the forget service 2022-02-28 17:15:14 +01:00
Andreas Zweili b9105eb9f0 extend the prune service 2022-02-28 17:14:57 +01:00
Andreas Zweili 59ef08b93f correct systemd options 2022-02-28 16:56:32 +01:00
Andreas Zweili 6989e9932b remove unusable command 2022-02-28 16:39:36 +01:00
Andreas Zweili b4648966e7 another one 2022-02-28 16:37:18 +01:00
Andreas Zweili 6d39a0ea16 another try 2022-02-28 16:36:23 +01:00
Andreas Zweili 264986d505 try to allow remote rebuilds without password 2022-02-28 16:35:04 +01:00
Andreas Zweili 58e9474d4f move the prune tasks into seperate services 2022-02-28 16:23:03 +01:00
Andreas Zweili 47c794b59e add a prune timer to the backup server 2022-02-28 15:10:58 +01:00
Andreas Zweili d65f4dcb31 remove the old restic repo 2022-02-28 14:44:03 +01:00
Andreas Zweili fa6783ff6a correct download share path 2022-02-28 11:52:33 +01:00
Andreas Zweili f9490a9f9e add a config for jdownloader 2022-02-28 11:52:04 +01:00
Andreas Zweili d2a35f84d0 remove the version file 2022-02-23 10:43:04 +01:00
Andreas Zweili bb75d99841 add additional ssh key 2022-02-21 11:39:17 +01:00
Andreas Zweili 85c73e44f0 move vars into a separate file 2022-02-21 11:36:12 +01:00
Andreas Zweili 075576d220 correct variables 2022-02-16 22:27:50 +01:00
Andreas Zweili 9081f84152 rewrite inputs 2022-02-16 22:19:13 +01:00