summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-05-06 15:48:38 +0200
committersils <sils@sils.li>2023-05-06 15:50:18 +0200
commit911b8e67fac04c3981cd07cfd5220b9703996d00 (patch)
treef12fb595593e5c01b784b6bab77ea65fde031c2b /hosts
parentBuild(flake): Update (diff)
downloadnix-config-911b8e67fac04c3981cd07cfd5220b9703996d00.tar.gz
nix-config-911b8e67fac04c3981cd07cfd5220b9703996d00.zip
Feat(treewide): Get river working
Diffstat (limited to 'hosts')
-rw-r--r--hosts/thinklappi/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/hosts/thinklappi/default.nix b/hosts/thinklappi/default.nix
index ba379a8..4f0145a 100644
--- a/hosts/thinklappi/default.nix
+++ b/hosts/thinklappi/default.nix
@@ -2,11 +2,7 @@
   config,
   pkgs,
   ...
-}: let
-  compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
-    ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${../../files/neoqwertz.xkb} $out
-  '';
-in {
+}: {
   imports = [
     ./basesystem.nix
     ../../sys
@@ -16,9 +12,7 @@ in {
     printing.enable = true;
     xserver = {
       layout = "de";
-      #xkbVariant = ",neo";
       xkbOptions = "grp:win_space_toggle";
-      displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
     };
     pipewire = {
       enable = true;
@@ -30,10 +24,14 @@ in {
   };
 
   hardware = {
+    opengl.enable = true;
     bluetooth.enable = true;
     pulseaudio.enable = false;
   };
-  security.rtkit.enable = true;
+  security = {
+    rtkit.enable = true;
+    pam.services.swaylock = {};
+  };
 
   environment.systemPackages = [pkgs.xorg.xkbcomp];
 
@@ -53,7 +51,6 @@ in {
   console = {
     font = "Lat2-Terminus16";
     keyMap = "de";
-    #useXkbConfig = true; # use xkbOptions in tty.
   };
 
   programs.ssh.startAgent = true;