about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-19 15:58:52 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-19 15:58:52 +0200
commit763b2a81231348187a51bf6cc9cdc0fa7705404a (patch)
tree2ec0a31f0c204681c4d8ca6b4d353ac193c68da1 /modules
parentRefactor custom packages (diff)
downloadnixos-config-763b2a81231348187a51bf6cc9cdc0fa7705404a.tar.gz
nixos-config-763b2a81231348187a51bf6cc9cdc0fa7705404a.tar.bz2
nixos-config-763b2a81231348187a51bf6cc9cdc0fa7705404a.zip
Refractor codebase
Diffstat (limited to 'modules')
-rw-r--r--modules/virtualisation/default.nix10
-rw-r--r--modules/xorg/default.nix22
2 files changed, 17 insertions, 15 deletions
diff --git a/modules/virtualisation/default.nix b/modules/virtualisation/default.nix
index c81b3d4..82df906 100644
--- a/modules/virtualisation/default.nix
+++ b/modules/virtualisation/default.nix
@@ -1,8 +1,10 @@
-{ config, pkgs, ... }:
+{ config, pkgs, user, ... }:
 
 {
-  virtualisation.docker.enable = true;
-  users.users.baitinq.extraGroups = [ "docker" ];
+  virtualisation = {
+    docker.enable = true;
+    libvirtd.enable = true;
+  };
 
-  virtualisation.libvirtd.enable = true;
+  users.users.${user}.extraGroups = [ "docker" ];
 }
diff --git a/modules/xorg/default.nix b/modules/xorg/default.nix
index aeb4301..f75716a 100644
--- a/modules/xorg/default.nix
+++ b/modules/xorg/default.nix
@@ -1,19 +1,20 @@
-{ config, pkgs, ... }: {
-  services.xserver.enable = true;
+{ config, pkgs, ... }:
+{
+  services.xserver = {
+    enable = true;
 
-  # Configure keymap in X11
-  services.xserver.layout = "gb";
+    # Configure keymap in X11
+    layout = "gb";
 
-  services.xserver.displayManager.startx.enable = true;
-  services.xserver.windowManager.dwm.enable = true;
+    displayManager.startx.enable = true;
+    windowManager.dwm.enable = true;
 
-  # Enable touchpad support (enabled default in most desktopManager).
-  services.xserver.libinput.enable = true;
-  services.xserver.dpi = 96;
+    dpi = 96;
+  };
 
   systemd.user.services.polkit-gnome-authentication-agent-1 = {
     description = "polkit-gnome-authentication-agent-1";
-    #wants = [ "graphical-session.target" ];
+    wants = [ "graphical-session.target" ];
     wantedBy = [ "graphical-session.target" ];
     after = [ "graphical-session.target" ];
     serviceConfig = {
@@ -27,5 +28,4 @@
   };
   systemd.user.services.polkit-gnome-authentication-agent-1.enable = true;
 
-  #xsession.enable = true; NOT NEEDED RIGHT
 }