aboutsummaryrefslogtreecommitdiff
path: root/src/system/files
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/files')
-rw-r--r--src/system/files/dnf.conf9
-rw-r--r--src/system/files/dnf/dnf.conf9
-rw-r--r--src/system/files/systemd/sys/wireguard.service14
-rw-r--r--src/system/files/systemd/user/syncthing.service13
4 files changed, 45 insertions, 0 deletions
diff --git a/src/system/files/dnf.conf b/src/system/files/dnf.conf
new file mode 100644
index 0000000..a3f55fb
--- /dev/null
+++ b/src/system/files/dnf.conf
@@ -0,0 +1,9 @@
+[main]
+gpgcheck=1
+installonly_limit=3
+clean_requirements_on_remove=True
+best=False
+skip_if_unavailable=True
+defaultyes=True
+max_parallel_downloads=10
+deltarpm=True
diff --git a/src/system/files/dnf/dnf.conf b/src/system/files/dnf/dnf.conf
new file mode 100644
index 0000000..a3f55fb
--- /dev/null
+++ b/src/system/files/dnf/dnf.conf
@@ -0,0 +1,9 @@
+[main]
+gpgcheck=1
+installonly_limit=3
+clean_requirements_on_remove=True
+best=False
+skip_if_unavailable=True
+defaultyes=True
+max_parallel_downloads=10
+deltarpm=True
diff --git a/src/system/files/systemd/sys/wireguard.service b/src/system/files/systemd/sys/wireguard.service
new file mode 100644
index 0000000..76a2968
--- /dev/null
+++ b/src/system/files/systemd/sys/wireguard.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Wireguard
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+User=root
+ExecStart=/usr/bin/wg-quick up wg0
+ExecStop=/usr/bin/wg-quick down wg0
+
+[Install]
+WantedBy=multi-user.target
diff --git a/src/system/files/systemd/user/syncthing.service b/src/system/files/systemd/user/syncthing.service
new file mode 100644
index 0000000..67fa2cd
--- /dev/null
+++ b/src/system/files/systemd/user/syncthing.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Syncthing podman container
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/usr/bin/podman-compose -f /home/aaditya/containers/syncthing/compose.yaml up -d
+ExecStop=/usr/bin/podman-compose -f /home/aaditya/containers/syncthing/compose.yaml down
+
+[Install]
+WantedBy=multi-user.target