about summary refs log tree commit diff
path: root/machines/devhell
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2018-11-03 13:18:15 +0000
committerdevhell <devhell@mailfresser.de>2018-11-03 13:18:15 +0000
commit3a2dd5017fe941a5d8d563c2397ac9a284f68856 (patch)
tree2e62035783b0805194629df514d09dd5efee1753 /machines/devhell
parent94386b32890e79947e3e0106ebf5346e76c774cf (diff)
machines/{eris,titan}: Unify configs
I've become increasingly aware that my configurations drift, and while
this is still not amazing in terms of DRY and whatnot, it's all I can do
for now.
Diffstat (limited to 'machines/devhell')
-rw-r--r--machines/devhell/eris.nix70
-rw-r--r--machines/devhell/titan.nix3
2 files changed, 57 insertions, 16 deletions
diff --git a/machines/devhell/eris.nix b/machines/devhell/eris.nix
index c7f71d09..9edc4089 100644
--- a/machines/devhell/eris.nix
+++ b/machines/devhell/eris.nix
@@ -28,13 +28,11 @@
 
   hardware = {
     opengl = {
-      extraPackages = [ pkgs.vaapiIntel ];
+      enable = true;
+      extraPackages = [ pkgs.libvdpau-va-gl pkgs.vaapiVdpau pkgs.vaapiIntel ];
     };
   };
 
-  networking.hostName = "eris";
-  networking.networkmanager.enable = true;
-
   fileSystems."/" = {
     device = "/dev/disk/by-uuid/4788e218-db0f-4fd6-916e-e0c484906eb0";
     fsType = "btrfs";
@@ -53,8 +51,27 @@
 
   swapDevices = [ ];
 
+  # FIXME Check if this is still necessary in the future
+  systemd.services.systemd-networkd-wait-online.enable = false;
+
+  # XXX Ensure that these are added in addition to the DHCP proviced DNS servers
+  systemd.network.networks."99-main".dns = [ "1.1.1.1" "8.8.8.8" ];
+
+  networking = {
+    hostName = "eris";
+    wireless.iwd.enable = true;
+    useNetworkd = true;
+  };
+
+  powerManagement = {
+    powertop.enable = true;
+    cpuFreqGovernor = "powersave";
+  };
+
+  virtualisation.docker.enable = false;
+
   nix = {
-    maxJobs = 4;
+    maxJobs = lib.mkDefault 4;
     extraOptions = ''
       auto-optimise-store = true
     '';
@@ -71,11 +88,11 @@
   vuizvui.user.devhell.profiles.services.enable = true;
 
   services = {
-    tftpd.enable = true;
+    tftpd.enable = false;
     gnome3.gnome-keyring.enable = true;
     printing = {
       enable = true;
-      drivers = [ pkgs.gutenprint pkgs.hplip pkgs.cups-brother-hl1110 ];
+      drivers = [ pkgs.foo2zjs pkgs.hplip pkgs.cups-brother-hl1110 ];
     };
   };
 
@@ -110,17 +127,23 @@
     layout = "gb";
     videoDrivers = [ "intel" ];
 
-    synaptics = {
+    libinput = {
       enable = true;
-      twoFingerScroll = true;
-      palmDetect = true;
+      disableWhileTyping = true;
+      middleEmulation = true;
     };
+#    synaptics = {
+#      enable = true;
+#      twoFingerScroll = true;
+#      palmDetect = true;
+#    };
 
     # XXX: Factor out and make DRY, because a lot of the stuff here is
     # duplicated in the other machine configurations.
     displayManager.sessionCommands = ''
-      ${pkgs.xorg.xsetroot}/bin/xsetroot -solid black
-      ${pkgs.networkmanagerapplet}/bin/nm-applet &
+      ${pkgs.nitrogen}/bin/nitrogen --restore &
+      #${pkgs.xorg.xsetroot}/bin/xsetroot -solid black
+      #${pkgs.networkmanagerapplet}/bin/nm-applet &
       #${pkgs.pasystray}/bin/pasystray &
       #${pkgs.compton}/bin/compton -f &
       ${pkgs.rofi}/bin/rofi &
@@ -207,19 +230,38 @@
   nixpkgs.config.mpv.vaapiSupport = true;
 
   environment.systemPackages = with pkgs; [
+    #connmanui
+    #cura
+    #ipmiutil
+    #ipmiview
+    #networkmanagerapplet
+    #offlineimap
+    #openjdk8
+    #skype
+    #thunderbird
     aircrackng
+    cdrtools
+    dvdplusrwtools
+    glxinfo
     horst
+    ipmitool
+    iw
     kismet
+    libva
+    libvdpau-va-gl
     minicom
-    networkmanagerapplet
+    netalyzr
     pamixer
     pmtools
     pmutils
+    pythonPackages.alot
     reaverwps
+    signal-desktop
     snort
+    vaapiVdpau
+    vdpauinfo
     wavemon
     xbindkeys
     xorg.xbacklight
-    iw
   ];
 }
diff --git a/machines/devhell/titan.nix b/machines/devhell/titan.nix
index 16ad36d3..231b15c7 100644
--- a/machines/devhell/titan.nix
+++ b/machines/devhell/titan.nix
@@ -59,7 +59,7 @@
   networking = {
     hostName = "titan";
     wireless.enable = true;
-    useNetworkd= true;
+    useNetworkd = true;
   };
 
   powerManagement = {
@@ -93,7 +93,6 @@
       enable = true;
       drivers = [ pkgs.foo2zjs pkgs.cups-brother-hl1110 ];
     };
-    dnscrypt-proxy.enable = false;
   };
 
   services.acpid = {