summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-12 04:08:52 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-12 04:08:52 +0100
commit3998319e9ad931e328ebf3520945a513ad0fab54 (patch)
tree83bb57fd351006fe6d2d62dbf9b78a61b391bc1b
parentSwitch on rebuild (diff)
downloadRory-Open-Architecture-3998319e9ad931e328ebf3520945a513ad0fab54.tar.xz
Add dotnet to bot vm
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rw-r--r--host/Rory-discordbots/configuration.nix31
-rw-r--r--host/Rory-discordbots/services.nix17
2 files changed, 27 insertions, 21 deletions
diff --git a/host/Rory-discordbots/configuration.nix b/host/Rory-discordbots/configuration.nix
index 0a8f731..4a0f307 100644
--- a/host/Rory-discordbots/configuration.nix
+++ b/host/Rory-discordbots/configuration.nix
@@ -7,22 +7,21 @@
     ];
 
   networking = {
-	hostName = "RoryNix";
-	networkmanager.enable = true;
-	wireless.enable = false;
-  	
-	firewall = {
-		enable = false;
-		# allowedTCPPorts = [ ... ];
-		# allowedUDPPorts = [ ... ];
-	};
+    hostName = "RoryNix";
+    networkmanager.enable = true;
+    wireless.enable = false;
+      
+    firewall = {
+      enable = false;
+      # allowedTCPPorts = [ ... ];
+      # allowedUDPPorts = [ ... ];
+    };
   };
 
   #time.timeZone = "Europe/Brussels";
   i18n.defaultLocale = "en_US.UTF-8";
 
   services = {
- 	
     openssh = {
             enable = true;
             extraConfig = ''
@@ -46,17 +45,7 @@
   };
 
   environment.systemPackages = with pkgs; [
-    wget
-    neofetch
-    lnav
-    pciutils
-    zsh
-    feh
-    git
-    lsd
-    sshfs
-    kitty.terminfo
-    vimPlugins.vim-nix
+    dotnet-sdk_7
   ];
 
 
diff --git a/host/Rory-discordbots/services.nix b/host/Rory-discordbots/services.nix
new file mode 100644
index 0000000..e2177d1
--- /dev/null
+++ b/host/Rory-discordbots/services.nix
@@ -0,0 +1,17 @@
+{ config, pkgs, lib, ... }:
+
+{
+  systemd.services."foo@" = {
+    description = "foo";
+    wantedBy = [ "multi-user.target" ];
+    serviceConfig = {
+      Type = "simple";
+      ExecStart = "${pkgs.foo}/bin/foo";
+      User = "foo";
+      Group = "foo";
+      Restart = "always";
+      RestartSec = "5s";
+    };
+  }
+}
+