From 627fe030cbff66b7cdbce077fc79e8cbb1619d79 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Wed, 31 May 2023 17:35:28 +0200 Subject: [PATCH] add another discord bot --- flake.lock | 30 +++++++++---------- hosts/falkenstein-1/default.nix | 2 ++ .../falkenstein-1/modules/pfersel/default.nix | 12 ++++++++ hosts/thinkpad/default.nix | 1 + 4 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 hosts/falkenstein-1/modules/pfersel/default.nix diff --git a/flake.lock b/flake.lock index 7077b97..6c1f26e 100644 --- a/flake.lock +++ b/flake.lock @@ -185,11 +185,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1685380658, - "narHash": "sha256-LPih0Q//p8IurXG9kGRVGAqV4AUKVYj9xkk3sYYAj6I=", + "lastModified": 1685542719, + "narHash": "sha256-kQFdcC0HTdmMJmJ6wpa4i5+iZWTojs+73QEEX19xvJY=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "51a930f802c71a0e67f05e7b176ded74e8e95f87", + "rev": "1844e8adadb44199f6d0bf26dc7c0db80c18ddaa", "type": "github" }, "original": { @@ -206,11 +206,11 @@ ] }, "locked": { - "lastModified": 1681065697, - "narHash": "sha256-QPzwwlGKX95tl6ZEshboZbEwwAXww6lNLdVYd6T9Mrc=", + "lastModified": 1684265364, + "narHash": "sha256-AxNnWbthsuNx73HDQr0eBxrcE3+yfl/WsaXZqUFmkpQ=", "owner": "hyprwm", "repo": "hyprland-protocols", - "rev": "4d29e48433270a2af06b8bc711ca1fe5109746cd", + "rev": "8c279b9fb0f2b031427dc5ef4eab53f2ed835530", "type": "github" }, "original": { @@ -336,11 +336,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1683014792, - "narHash": "sha256-6Va9iVtmmsw4raBc3QKvQT2KT/NGRWlvUlJj46zN8B8=", + "lastModified": 1685383865, + "narHash": "sha256-3uQytfnotO6QJv3r04ajSXbEFMII0dUtw0uqYlZ4dbk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1a411f23ba299db155a5b45d5e145b85a7aafc42", + "rev": "5e871d8aa6f57cc8e0dc087d1c5013f6e212b4ce", "type": "github" }, "original": { @@ -618,11 +618,11 @@ "flake": false, "locked": { "host": "gitlab.freedesktop.org", - "lastModified": 1682436395, - "narHash": "sha256-GGEjkQO9m7YLYIXIXM76HWdhjg4Ye+oafOtyaFAYKI4=", + "lastModified": 1685491729, + "narHash": "sha256-YfpP8tKpcr0Lxlr3PdoMaY3GD/uJRl6E5pp5KQCEuzg=", "owner": "wlroots", "repo": "wlroots", - "rev": "6830bfc17fd94709e2cdd4da0af989f102a26e59", + "rev": "3f0487d310974f6ff889ca80e4fb4005553814ed", "type": "gitlab" }, "original": { @@ -644,11 +644,11 @@ ] }, "locked": { - "lastModified": 1682439384, - "narHash": "sha256-zHDa8LCZs05TZHQSIZ3ucwyMPglBGHcqTBzfkLjYXTM=", + "lastModified": 1685385764, + "narHash": "sha256-r+XMyOoRXq+hlfjayb+fyi9kq2JK48TrwuNIAXqlj7U=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "c0e233955568fbea4e859336f6d3d14d51294d7c", + "rev": "4d9ff0c17716936e0b5ca577a39e263633901ed1", "type": "github" }, "original": { diff --git a/hosts/falkenstein-1/default.nix b/hosts/falkenstein-1/default.nix index d6963c0..dfb61ae 100644 --- a/hosts/falkenstein-1/default.nix +++ b/hosts/falkenstein-1/default.nix @@ -8,6 +8,7 @@ ./modules/mail ./modules/networks ./modules/nginx + ./modules/pfersel ./modules/purge ./modules/trucksimulatorbot ]; @@ -36,6 +37,7 @@ htop-vim helix lsof + python3 ]; programs.git = { enable = true; diff --git a/hosts/falkenstein-1/modules/pfersel/default.nix b/hosts/falkenstein-1/modules/pfersel/default.nix new file mode 100644 index 0000000..04c1874 --- /dev/null +++ b/hosts/falkenstein-1/modules/pfersel/default.nix @@ -0,0 +1,12 @@ +{ ... }: +{ + # currently quite ugly and stateful. #todo nixify + systemd.services.pfersel = { + after = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + WorkingDirectory = "/root/Pfersel"; + ExecStart = "/root/Pfersel/venv/bin/python3 bot.py"; + }; + }; +} diff --git a/hosts/thinkpad/default.nix b/hosts/thinkpad/default.nix index a63a522..622ce7c 100755 --- a/hosts/thinkpad/default.nix +++ b/hosts/thinkpad/default.nix @@ -106,6 +106,7 @@ programs.light.enable = true; services = { + homed.enable = true; blueman.enable = true; # bluetooth devmon.enable = true; # automount stuff printing = {