summary refs log tree commit diff
path: root/modules/base.nix
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-11 21:30:28 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-11 21:30:28 +0100
commit1d517e4ce6fa91f67d713128c0a52c59e1235db7 (patch)
tree8783331e2adfdc55b45caf86135ed93a0dc48db2 /modules/base.nix
parentInitial commit (diff)
downloadRory-Open-Architecture-1d517e4ce6fa91f67d713128c0a52c59e1235db7.tar.xz
Deduplicate some configuration
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'modules/base.nix')
-rw-r--r--modules/base.nix54
1 files changed, 15 insertions, 39 deletions
diff --git a/modules/base.nix b/modules/base.nix
index 8f2102b..69cb20e 100644
--- a/modules/base.nix
+++ b/modules/base.nix
@@ -3,46 +3,30 @@
 {
   imports =
     [
-       ./hardware-configuration.nix
-       ./packages/vim.nix
-       ./users.nix
+      ./packages/vim.nix
+      ./users.nix
     ];
 
-  boot = {
-	loader = {
-		grub = {
-			enable = true;
-			version = 2;
-			device = "/dev/sda"; # nodev for EFI only
-			
-			# EFI
-			efiSupport = false;
-			efiInstallAsRemovable = false;
-		};
-	};
-  };
-
   networking = {
-	hostName = lib.mkDefault "Rory-nix-base";
-		
-	firewall = {
-		enable = false;
-		# allowedTCPPorts = [ ... ];
-		# allowedUDPPorts = [ ... ];
-	};
+	  hostName = lib.mkDefault "Rory-nix-base";
+    firewall = {
+      enable = false;
+      # allowedTCPPorts = [ ... ];
+      # allowedUDPPorts = [ ... ];
+    };
   };
 
   #time.timeZone = "Europe/Brussels";
   i18n.defaultLocale = "en_US.UTF-8";
 
   services = {
-	openssh = {
-          enable = true;
-          #allow more logins in cases where i have many ssh keys on a system
-          extraConfig = ''
-            MaxAuthTries 32
-            '';
-	};	
+    openssh = {
+      enable = true;
+      #allow more logins in cases where i have many ssh keys on a system
+      extraConfig = ''
+        MaxAuthTries 32
+        '';
+    };	
   };
 
   security.sudo.wheelNeedsPassword = false;
@@ -51,14 +35,6 @@
   sound.enable = true;
   hardware.pulseaudio.enable = true;
 
-  users.users.Rory = {
-    isNormalUser = true;
-    extraGroups = [ "wheel" ];
-    packages = with pkgs; [
-    ];
-    initialPassword = "password";
-  };
-
   environment.systemPackages = with pkgs; [
     wget
     neofetch