From 37fff5a466ab7e2084b1a89a62602435516d51e8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Sep 2017 13:54:34 +0200 Subject: Add lisp module --- marvin.nix | 1 + modules/lisp.nix | 11 +++++++++++ satoshipad.nix | 1 + 3 files changed, 13 insertions(+) create mode 100644 modules/lisp.nix diff --git a/marvin.nix b/marvin.nix index ca080fab..fc08a9e2 100644 --- a/marvin.nix +++ b/marvin.nix @@ -22,6 +22,7 @@ ./modules/user.nix ./modules/user-interface.nix ./modules/dev.nix + ./modules/lisp.nix ./modules/javascript.nix ./modules/accounting.nix ./modules/passwords.nix diff --git a/modules/lisp.nix b/modules/lisp.nix new file mode 100644 index 00000000..ffaa7115 --- /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/satoshipad.nix b/satoshipad.nix index 53784715..1e4168f8 100644 --- a/satoshipad.nix +++ b/satoshipad.nix @@ -24,6 +24,7 @@ ./modules/user.nix ./modules/user-interface.nix ./modules/dev.nix + ./modules/lisp.nix ./modules/javascript.nix ./modules/satoshipay.nix ./modules/accounting.nix -- cgit 1.4.1 From 67a97cece0f462b149514a341fb6facf3abad815 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Sep 2017 13:59:26 +0200 Subject: Add infrastructure module --- marvin.nix | 1 + modules/infrastructure.nix | 9 +++++++++ satoshipad.nix | 1 + 3 files changed, 11 insertions(+) create mode 100644 modules/infrastructure.nix diff --git a/marvin.nix b/marvin.nix index fc08a9e2..7d6e7986 100644 --- a/marvin.nix +++ b/marvin.nix @@ -24,6 +24,7 @@ ./modules/dev.nix ./modules/lisp.nix ./modules/javascript.nix + ./modules/infrastructure.nix ./modules/accounting.nix ./modules/passwords.nix ./modules/network-manager.nix diff --git a/modules/infrastructure.nix b/modules/infrastructure.nix new file mode 100644 index 00000000..b41816e2 --- /dev/null +++ b/modules/infrastructure.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + ansible + hugo + + nixops + ]; +} diff --git a/satoshipad.nix b/satoshipad.nix index 1e4168f8..67fda3ec 100644 --- a/satoshipad.nix +++ b/satoshipad.nix @@ -27,6 +27,7 @@ ./modules/lisp.nix ./modules/javascript.nix ./modules/satoshipay.nix + ./modules/infrastructure.nix ./modules/accounting.nix ./modules/passwords.nix ./modules/network-manager.nix -- cgit 1.4.1 From da93d42ee1b52155080fd5a46f33e96c7e8346d3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Sep 2017 14:00:34 +0200 Subject: Import packages from marvin user profile --- modules/accounting.nix | 1 + modules/dev.nix | 2 ++ modules/javascript.nix | 3 +++ modules/user-interface.nix | 3 +++ 4 files changed, 9 insertions(+) diff --git a/modules/accounting.nix b/modules/accounting.nix index 0b180a81..5882436f 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 cf1958d5..453d365c 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/javascript.nix b/modules/javascript.nix index d950fe53..cc5b89e8 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/user-interface.nix b/modules/user-interface.nix index 2111d8b0..3f4fb6e6 100644 --- a/modules/user-interface.nix +++ b/modules/user-interface.nix @@ -11,6 +11,9 @@ in firefox-bin pcmanfm + epdfview + geeqie + lxappearance vdirsyncer -- cgit 1.4.1 From 45fcfe8435222078c2153f22b3f32d8bafb94633 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Sep 2017 14:38:21 +0200 Subject: x250: Use synaptics driver instead of libinput --- modules/laptop.nix | 4 ++-- modules/synaptics.nix | 35 +++++++++++++++++++---------------- modules/x250.nix | 5 ++++- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/modules/laptop.nix b/modules/laptop.nix index 3d6894cc..f0c88e7d 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/synaptics.nix b/modules/synaptics.nix index 0e9db17a..1028db35 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/x250.nix b/modules/x250.nix index 025bc302..a6509bf1 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 ]; -- cgit 1.4.1 From 94eaea428f207a3791e60092c3ef2a4a6e2fb669 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Sep 2017 14:38:36 +0200 Subject: user-interface: Run emacs with --debug-init --- modules/user-interface.nix | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/modules/user-interface.nix b/modules/user-interface.nix index 3f4fb6e6..d8a2b6a4 100644 --- a/modules/user-interface.nix +++ b/modules/user-interface.nix @@ -1,8 +1,20 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: let pkgsUnstable = import {}; # 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; @@ -49,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; -- cgit 1.4.1 From 9b2347d2832781c13f73e57ca775fd3583aeeaee Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Sep 2017 14:53:04 +0200 Subject: nitrokey: Disable ssh-agent --- modules/nitrokey.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nitrokey.nix b/modules/nitrokey.nix index a256c33d..ac85e352 100644 --- a/modules/nitrokey.nix +++ b/modules/nitrokey.nix @@ -4,7 +4,9 @@ let pkgsUnstable = import {}; # pkgsUnstable = pkgs; in -{ services.pcscd.enable = true; +{ programs.ssh.startAgent = false; + + services.pcscd.enable = true; services.tor = { enable = true; -- cgit 1.4.1