summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/accounting.nix1
-rw-r--r--modules/dev.nix2
-rw-r--r--modules/infrastructure.nix9
-rw-r--r--modules/javascript.nix3
-rw-r--r--modules/laptop.nix4
-rw-r--r--modules/lisp.nix11
-rw-r--r--modules/nitrokey.nix4
-rw-r--r--modules/synaptics.nix35
-rw-r--r--modules/user-interface.nix31
-rw-r--r--modules/x250.nix5
10 files changed, 72 insertions, 33 deletions
diff --git a/modules/accounting.nix b/modules/accounting.nix
index 0b180a8..5882436 100644
--- a/modules/accounting.nix
+++ b/modules/accounting.nix
@@ -1,6 +1,7 @@
 { config, pkgs, ... }:
 
 { environment.systemPackages = with pkgs; [
+    aqbanking
     ledger
     bean-add
     beancount
diff --git a/modules/dev.nix b/modules/dev.nix
index d3fe92f..48679cb 100644
--- a/modules/dev.nix
+++ b/modules/dev.nix
@@ -4,6 +4,8 @@
     mercurial
     gitAndTools.hub
 
+    editorconfig-core-c
+
     ag
     ripgrep
 
diff --git a/modules/infrastructure.nix b/modules/infrastructure.nix
new file mode 100644
index 0000000..b41816e
--- /dev/null
+++ b/modules/infrastructure.nix
@@ -0,0 +1,9 @@
+{ config, pkgs, ... }:
+
+{ environment.systemPackages = with pkgs; [
+    ansible
+    hugo
+
+    nixops
+  ];
+}
diff --git a/modules/javascript.nix b/modules/javascript.nix
index d950fe5..cc5b89e 100644
--- a/modules/javascript.nix
+++ b/modules/javascript.nix
@@ -6,7 +6,10 @@ let
 in
 { environment.systemPackages = with pkgs; [
     nodejs-8_x
+    pkgsUnstable.flow
     pkgsUnstable.nodePackages.yarn
     pkgsUnstable.nodePackages.tern
+    pkgsUnstable.nodePackages.node2nix
+    pkgsUnstable.nodePackages.nodemon
   ];
 }
diff --git a/modules/laptop.nix b/modules/laptop.nix
index 3d6894c..f0c88e7 100644
--- a/modules/laptop.nix
+++ b/modules/laptop.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 { boot.kernelModules = [ "coretemp" ];
   boot.extraModulePackages = with config.boot.kernelPackages; [
@@ -62,7 +62,7 @@
 
   services.xserver = {
     libinput = {
-      enable = true;
+      enable = lib.mkDefault true;
       naturalScrolling = true;
       disableWhileTyping = true;
     };
diff --git a/modules/lisp.nix b/modules/lisp.nix
new file mode 100644
index 0000000..ffaa711
--- /dev/null
+++ b/modules/lisp.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, ... }:
+
+{ environment.systemPackages = with pkgs; [
+    ccl
+    sbcl
+    lispPackages.quicklisp
+
+    dust
+    pixie
+  ];
+}
diff --git a/modules/nitrokey.nix b/modules/nitrokey.nix
index a256c33..ac85e35 100644
--- a/modules/nitrokey.nix
+++ b/modules/nitrokey.nix
@@ -4,7 +4,9 @@ let
   pkgsUnstable = import <nixos-unstable> {};
   # pkgsUnstable = pkgs;
 in
-{ services.pcscd.enable = true;
+{ programs.ssh.startAgent = false;
+
+  services.pcscd.enable = true;
 
   services.tor = {
     enable = true;
diff --git a/modules/synaptics.nix b/modules/synaptics.nix
index 0e9db17..1028db3 100644
--- a/modules/synaptics.nix
+++ b/modules/synaptics.nix
@@ -1,24 +1,27 @@
 { config, pkgs, ... }:
 
-{ services.xserver.synaptics = {
-    enable = true;
+{ services.xserver = {
+    libinput.enable = false;
+    synaptics = {
+      enable = true;
 
-    accelFactor = "0.001";
+      accelFactor = "0.05";
 
-    minSpeed = "0.4";
-    maxSpeed = "2.0";
+      minSpeed = "0.2";
+      maxSpeed = "1.0";
 
-    palmDetect = true;
-    palmMinWidth = 5;
-    palmMinZ = 20;
+      palmDetect = true;
+      palmMinWidth = 5;
+      palmMinZ = 20;
 
-    twoFingerScroll = true;
-    vertTwoFingerScroll = true;
-    horizTwoFingerScroll = true;
-    additionalOptions = ''
-      Option "RBCornerButton" "3"
-      Option "VertScrollDelta" "-111"
-      Option "HorizScrollDelta" "-111"
-    '';
+      twoFingerScroll = true;
+      vertTwoFingerScroll = true;
+      horizTwoFingerScroll = true;
+      additionalOptions = ''
+        Option "RBCornerButton" "3"
+        Option "VertScrollDelta" "-111"
+        Option "HorizScrollDelta" "-111"
+      '';
+    };
   };
 }
diff --git a/modules/user-interface.nix b/modules/user-interface.nix
index 2111d8b..d8a2b6a 100644
--- a/modules/user-interface.nix
+++ b/modules/user-interface.nix
@@ -1,8 +1,20 @@
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 let
   pkgsUnstable = import <nixos-unstable> {};
   # pkgsUnstable = pkgs;
+  emacsPackage = import ../packages/emacs.nix {
+    inherit (pkgs) stdenv;
+    pkgs = pkgsUnstable;
+    emacs = pkgs.lib.overrideDerivation (pkgs.emacs.override {
+        withGTK2 = false;
+        withGTK3 = true;
+      }) (attrs: {
+        postInstall = attrs.postInstall + ''
+          rm $out/share/applications/emacs.desktop
+        '';
+      });
+  };
 in
 { # programs.browserpass.enable = true;
   programs.info.enable = true;
@@ -11,6 +23,9 @@ in
     firefox-bin
     pcmanfm
 
+    epdfview
+    geeqie
+
     lxappearance
 
     vdirsyncer
@@ -46,19 +61,9 @@ in
   services.emacs = {
     enable = true;
     defaultEditor = true;
-    package = import ../packages/emacs.nix {
-      inherit (pkgs) stdenv;
-      pkgs = pkgsUnstable;
-      emacs = pkgs.lib.overrideDerivation (pkgs.emacs.override {
-          withGTK2 = false;
-          withGTK3 = true;
-        }) (attrs: {
-          postInstall = attrs.postInstall + ''
-            rm $out/share/applications/emacs.desktop
-          '';
-        });
-    };
+    package = emacsPackage;
   };
+  systemd.user.services.emacs.serviceConfig.ExecStart = lib.mkForce "${pkgs.bash}/bin/bash -c 'source ${config.system.build.setEnvironment}; exec ${emacsPackage}/bin/emacs --daemon --debug-init'";
 
   services.redshift = {
     enable = true;
diff --git a/modules/x250.nix b/modules/x250.nix
index 025bc30..a6509bf 100644
--- a/modules/x250.nix
+++ b/modules/x250.nix
@@ -1,6 +1,9 @@
 { config, pkgs, ... }:
 
-{ boot.extraModulePackages = with config.boot.kernelPackages; [
+{ imports = [
+    ./synaptics.nix
+  ];
+  boot.extraModulePackages = with config.boot.kernelPackages; [
     acpi_call
   ];