From 053cf6a43400c62129f982339b0fb63ab6f29e5c Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:12:04 +0200 Subject: j bln: +dcso-vpn --- jeschli/1systems/bln/dcso-vpn.nix | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 jeschli/1systems/bln/dcso-vpn.nix (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/bln/dcso-vpn.nix b/jeschli/1systems/bln/dcso-vpn.nix new file mode 100644 index 000000000..0a5623bf0 --- /dev/null +++ b/jeschli/1systems/bln/dcso-vpn.nix @@ -0,0 +1,44 @@ +with import ; +{ ... }: + +{ + + users.extraUsers = { + dcsovpn = rec { + name = "dcsovpn"; + uid = genid "dcsovpn"; + description = "user for running dcso openvpn"; + home = "/home/${name}"; + }; + }; + + users.extraGroups.dcsovpn.gid = genid "dcsovpn"; + + services.openvpn.servers = { + dcso = { + config = '' + client + dev tun + tun-mtu 1356 + mssfix + proto udp + float + remote 217.111.55.41 1194 + nobind + user dcsovpn + group dcsovpn + persist-key + persist-tun + ca ${toString } + cert ${toString } + key ${toString } + verb 3 + mute 20 + auth-user-pass ${toString } + route-method exe + route-delay 2 + ''; + updateResolvConf = true; + }; + }; +} -- cgit v1.2.3 From 1c64a03b396177010885147e1ff704e12f2f1b07 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:14:15 +0200 Subject: j bln: +debian efi bootentry --- jeschli/1systems/bln/config.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/bln/config.nix b/jeschli/1systems/bln/config.nix index c5f8101ea..1680bcfb4 100644 --- a/jeschli/1systems/bln/config.nix +++ b/jeschli/1systems/bln/config.nix @@ -11,8 +11,22 @@ ]; - boot.loader.systemd-boot.enable = true; +# boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.loader.efi.efiSysMountPoint = "/boot"; + boot.loader.grub = { + devices = [ "nodev" ]; + efiSupport = true; + enable = true; + extraEntries = '' + menuentry "Debian" { + insmod ext2 + insmod chain + chainloader /EFI/debian/grubx64.efi + } + ''; + version = 2; + }; jeschliFontSize = 20; -- cgit v1.2.3 From 05c8cf3df5f6166c21dfd2dc316bf5de957dce94 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:14:43 +0200 Subject: j bln: -hipchat --- jeschli/1systems/bln/config.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/bln/config.nix b/jeschli/1systems/bln/config.nix index 1680bcfb4..8b9603abb 100644 --- a/jeschli/1systems/bln/config.nix +++ b/jeschli/1systems/bln/config.nix @@ -70,7 +70,6 @@ sqlite # internet thunderbird - hipchat chromium google-chrome # programming languages -- cgit v1.2.3 From 505bfbfbe53375f13ab8f43b4fc3d53ff0e1e6e4 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:32:37 +0200 Subject: j bln: +vagrant --- jeschli/1systems/bln/config.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/bln/config.nix b/jeschli/1systems/bln/config.nix index c9a7a34e2..a8329c412 100644 --- a/jeschli/1systems/bln/config.nix +++ b/jeschli/1systems/bln/config.nix @@ -76,6 +76,7 @@ texlive.combined.scheme-full pandoc redis + vagrant # document viewer zathura ]; -- cgit v1.2.3 From e4d1396ed6e5191f253e52cb130575291ed17cb4 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:33:26 +0200 Subject: j brauerei: +virtualbox --- jeschli/1systems/brauerei/config.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index 49f439a06..4e8314c6a 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -8,6 +8,7 @@ + ]; krebs.build.host = config.krebs.hosts.brauerei; @@ -127,6 +128,7 @@ # Define a user account. Don't forget to set a password with ‘passwd’. users.extraUsers.jeschli = { # TODO: define as krebs.users isNormalUser = true; + extraGroups = ["docker" "vboxusers"]; uid = 1000; }; users.extraUsers.jamie = { -- cgit v1.2.3 From b875ed8c639b3fb612e9a65bfe1b261ff879c2e8 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:35:38 +0200 Subject: j brauerei: wpa_supplicant -> networkmanager --- jeschli/1systems/brauerei/config.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index 4e8314c6a..c3326d376 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -25,9 +25,10 @@ preLVM = true; allowDiscards = true; } ]; - # networking.hostName = "nixos"; +# networking.hostName = "brauerei"; # Define your hostname. - networking.wireless.enable = true; +# networking.wireless.enable = true; + networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant. # Select internationalisation properties. # i18n = { -- cgit v1.2.3 From 3f33121a46a842a44138359e0498c119463cc7a0 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:36:56 +0200 Subject: j brauerei: +elixir +elm --- jeschli/1systems/brauerei/config.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index c3326d376..9796f10b8 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -68,6 +68,8 @@ chromium google-chrome # programming languages + elixir + elmPackages.elm exercism go gcc -- cgit v1.2.3 From 2a3f60d6fb3cd8d5f1ead4e5ff43fc9364eedad3 Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 09:47:43 +0200 Subject: j brauerei: +evince --- jeschli/1systems/brauerei/config.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index 9796f10b8..59a811028 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -88,6 +88,7 @@ jetbrains.webstorm jetbrains.goland # document viewer + evince zathura # xorg xorg.xbacklight -- cgit v1.2.3 From 53a9a1a9de7b07462cb1e08401558b87b640f17a Mon Sep 17 00:00:00 2001 From: jeschli Date: Tue, 19 Jun 2018 19:00:25 +0200 Subject: j brauerei: +vagrant --- jeschli/1systems/brauerei/config.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index 59a811028..235d64dcd 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -76,6 +76,7 @@ ghc python35 python35Packages.pip + vagrant # go tools golint gotools -- cgit v1.2.3 From abfe2564422a8302ba0da11b5db238b8fbddd45a Mon Sep 17 00:00:00 2001 From: jeschli Date: Wed, 27 Jun 2018 17:01:04 +0200 Subject: j brauerei: vagrant fix --- jeschli/1systems/brauerei/config.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index 235d64dcd..a8b361925 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -1,5 +1,5 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { imports = [ @@ -76,7 +76,17 @@ ghc python35 python35Packages.pip - vagrant + (vagrant.override { + bundlerEnv = bundlerEnv.override { + bundler = bundler.overrideAttrs (old: { + name = "bundler-1.16.1"; + src = fetchurl { + url = "https://rubygems.org/gems/bundler-1.16.1.gem"; + sha256 = "1s2nq4qnffxg3kwrk7cnwxcvfihlhxm9absl2l6d3qckf3sy1f22"; + }; + }); + }; + }) # go tools golint gotools -- cgit v1.2.3 From 8db484c87945fa513263c2d1088ca3af17080936 Mon Sep 17 00:00:00 2001 From: jeschli Date: Wed, 27 Jun 2018 17:01:37 +0200 Subject: j brauerei: xserver --- jeschli/1systems/brauerei/config.nix | 37 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 21 deletions(-) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index a8b361925..5a6ad7652 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -116,31 +116,26 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; + services.xserver = { - # Enable CUPS to print documents. - # services.printing.enable = true; + # Don't install feh into systemPackages + # refs + desktopManager.session = lib.mkForce []; - # Enable the X11 windowing system. - # services.xserver.enable = true; - # services.xserver.layout = "us"; - # services.xserver.xkbOptions = "eurosign:e"; + enable = true; + display = 11; + tty = 11; + + dpi = 96; - # Enable touchpad support. - # services.xserver.libinput.enable = true; +# videoDrivers = [ "nvidia" ]; + synaptics = { + enable = true; + twoFingerScroll = true; + accelFactor = "0.035"; + }; + }; - # Enable the KDE Desktop Environment. - # services.xserver.displayManager.sddm.enable = true; - # services.xserver.desktopManager.plasma5.enable = true; - # services.xserver.displayManager.sddm.enable = true; - # services.xserver.windowManager.xmonad.enable = true; - # services.xserver.windowManager.xmonad.enableContribAndExtras = true; - # - # Define a user account. Don't forget to set a password with ‘passwd’. users.extraUsers.jeschli = { # TODO: define as krebs.users isNormalUser = true; extraGroups = ["docker" "vboxusers"]; -- cgit v1.2.3 From 7ee237d1ad6c26c7569d3e26875dec5b077c1650 Mon Sep 17 00:00:00 2001 From: jeschli Date: Wed, 27 Jun 2018 17:24:25 +0200 Subject: j bln: fix xserver service --- jeschli/1systems/bln/config.nix | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'jeschli/1systems') diff --git a/jeschli/1systems/bln/config.nix b/jeschli/1systems/bln/config.nix index 7d371341d..c06c59281 100644 --- a/jeschli/1systems/bln/config.nix +++ b/jeschli/1systems/bln/config.nix @@ -106,14 +106,23 @@ services.printing.enable = true; services.printing.drivers = [ pkgs.postscript-lexmark ]; - # Enable the X11 windowing system. - services.xserver.videoDrivers = [ "nvidia" ]; - -# services.xserver.windowManager.xmonad.enable = true; -# services.xserver.windowManager.xmonad.enableContribAndExtras = true; -# services.xserver.displayManager.sddm.enable = true; -# services.xserver.dpi = 100; -# fonts.fontconfig.dpi = 100; + services.xserver = { + + desktopManager.session = lib.mkForce []; + + enable = true; + display = 11; + tty = 11; + + dpi = 200; + + videoDrivers = [ "nvidia" ]; + synaptics = { + enable = false; + }; + + }; + users.extraUsers.jeschli = { isNormalUser = true; -- cgit v1.2.3