about summary refs log tree commit diff
path: root/machines/profpatsch/shiki.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/profpatsch/shiki.nix')
-rw-r--r--machines/profpatsch/shiki.nix88
1 files changed, 26 insertions, 62 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index f916905d..4d66f81e 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -51,12 +51,17 @@ in {
       support32Bit = true;
     };
     # steam
-    hardware.opengl.driSupport32Bit = true;
-
     # needed by some games (TODO: general module for games)
-    # hardware.opengl.driSupport32Bit = true;
+    hardware.opengl.driSupport32Bit = true;
 
-    vuizvui.hardware.thinkpad.enable = true;
+    # TODO: kinda broken?
+    # i18n = {
+    #   inputMethod = {
+    #     enabled = "fcitx";
+    #     Japanese input
+    #     fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
+    #   };
+    # };
 
     ######
     # Nix
@@ -110,8 +115,10 @@ in {
     #   wifiAndEthernet = {
     #     interfaces = [ "wlp3s0" "enp0s25" ];
     #     driverOptions = {
-    #       miimon = "100";
+    #       # how often to check for link failures, i.e. ethernet down (ms)
+    #       miimon = "500";
     #       primary = "enp0s25";
+    #       primary_reselect = "always";
     #       mode = "active-backup";
     #     };
     #   };
@@ -137,7 +144,6 @@ in {
         wpa_supplicant_gui   # configure wireless connections
       ];
       xPkgs = [
-        dmenu             # simple UI menu builder
         dunst             # notification daemon (interfaces with libnotify)
         # TODO: replace by xscreensaver or i3lock
         alock             # lock screen
@@ -156,6 +162,7 @@ in {
         # myPkgs.fast-init             # fast-init of haskell projects
         gitAndTools.git-annex        # version controlled binary file storage
         gitAndTools.git-dit          # decentral issue tracking for git
+        gitAndTools.git-hub          # lightweight GitHub integration
 
         # TODO: move to user config
         go
@@ -166,7 +173,7 @@ in {
         pkgs.vuizvui.profpatsch.nix-http-serve # serve nix builds and rebuild on reloads
         pkgs.vuizvui.profpatsch.nman # open man pages in temporary nix shell
         pkgs.vuizvui.profpatsch.warpspeed    # trivial http file server
-        pkgs.vuizvui.profpatsch.nix-gen      # generate nix expressions
+        # pkgs.vuizvui.profpatsch.nix-gen      # generate nix expressions
         pkgs.vuizvui.profpatsch.watch-server # restart server on code change
         pkgs.vuizvui.profpatsch.until        # restart until cmd succeeds
         myPkgs.execlineb-with-builtins
@@ -192,7 +199,6 @@ in {
         gimp                 # graphics
         inkscape             # vector graphics
         libreoffice          # a giant ball of C++, that sometimes helps with proprietary shitformats
-        lilyterm-git         # terminal emulator, best one around
         myPkgs.mpv           # you are my sun and my stars, and you play my stuff.
         pass                 # standard unix password manager
         picard               # jean-luc, music tagger
@@ -204,8 +210,14 @@ in {
         youtube-dl           # download videos
         zathura              # pdf viewer
       ];
-      userScripts = with pkgs.vuizvui.profpatsch; [
+      userScripts = with pkgs.vuizvui.profpatsch;
+        let
+          di-notify = pkgs.writers.writeBashBin "display-infos-notify" ''
+            ${pkgs.libnotify}/bin/notify-send "$(${display-infos}/bin/display-infos)"
+          '';
+        in [
         display-infos  # show time & battery
+        di-notify      # same, but pipe to libnotify
         show-qr-code   # display a QR code
         backlight      # adjust laptop backlight
       ];
@@ -224,6 +236,8 @@ in {
         redshift   # increases screen warmth at night (so i don’t have to feel cold)
         # pdfjam is the best CLI pdf modification suite
         (texlive.combine { inherit (texlive) scheme-small pdfjam; })
+        # move script/nix-cache-binary to here
+        cdb
       ];
     in systemPkgs ++ xPkgs ++ guiPkgs
     ++ programmingTools ++ documentation
@@ -242,63 +256,16 @@ in {
       LidSwitchIgnoreInhibited=no
     '';
 
+    # TMP
+
+    vuizvui.services.guix.enable = true;
     ###################
     # Graphical System
 
     services.xserver = {
-      enable = true;
-      layout = "de";
-      xkbVariant = "neo";
-      xkbOptions = "altwin:swap_alt_win";
-      serverFlagsSection = ''
-        Option "StandbyTime" "10"
-        Option "SuspendTime" "20"
-        Option "OffTime" "30"
-      '';
-
-      synaptics = {
-        enable = true;
-        minSpeed = "0.6";
-        maxSpeed = "1.5";
-        accelFactor = "0.015";
-        twoFingerScroll = true;
-        vertEdgeScroll = false;
-      };
-
-
       videoDrivers = [ "intel" ];
-
-      displayManager = {
-        sessionCommands = with pkgs; ''
-            #TODO add as nixpkg
-            export PATH+=":$HOME/scripts" #add utility scripts
-            export EDITOR=emacsclient
-            export TERMINAL=${lilyterm}/bin/lilyterm
-
-            ${xorg.xset}/bin/xset r rate 250 35
-
-            set-background &
-            # TODO xbindkeys user service file
-            ${lib.getBin xbindkeys}/bin/xbindkeys
-            # synchronize clipboards
-            ${lib.getBin autocutsel}/bin/autocutsel -s PRIMARY &
-          '';
-      };
-
     };
 
-    fonts.fontconfig = {
-      enable = true;
-      defaultFonts = {
-        monospace = [ "Source Code Pro" "DejaVu Sans Mono" ]; # TODO does not work
-        sansSerif = [ "Liberation Sans" ];
-      };
-      ultimate = {
-        enable = true;
-        substitutions = "combi";
-        preset = "ultimate4";
-      };
-    };
     fonts.fonts = with pkgs; [
       unfreeAndNonDistributablePkgs.corefonts
       source-han-sans-japanese
@@ -328,9 +295,6 @@ in {
       };
     };
 
-    # TODO: base config?
-    vuizvui.programs.fish.fasd.enable = true;
-
     vuizvui.user.profpatsch.programs.scanning = {
       enable = true;
       #remoteScanners = ''