summaryrefslogtreecommitdiffstats
path: root/lass/2configs/dcso-dev.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-08-23 11:04:17 +0200
committerlassulus <lass@blue.r>2018-08-23 11:04:17 +0200
commit4d4f319e1657cf24d258c0f3ac95b74e161727d1 (patch)
tree75c2f560c400b221ca461c5255500b48f7176431 /lass/2configs/dcso-dev.nix
parent4abdb218c7bd88aad8b9178cdaaa6a97079f5ac6 (diff)
parent89951ebd816248bc4e62b2dad78b5db906c3cefe (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/dcso-dev.nix')
-rw-r--r--lass/2configs/dcso-dev.nix73
1 files changed, 0 insertions, 73 deletions
diff --git a/lass/2configs/dcso-dev.nix b/lass/2configs/dcso-dev.nix
deleted file mode 100644
index 830acb2e1..000000000
--- a/lass/2configs/dcso-dev.nix
+++ /dev/null
@@ -1,73 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
- mainUser = config.users.extraUsers.mainUser;
- inherit (import <stockholm/lib>) genid;
-
-in {
- users.extraUsers = {
- dev = {
- name = "dev";
- uid = genid "dev";
- extraGroups = [ "vboxusers" ];
- description = "user for collaborative development";
- home = "/home/dev";
- useDefaultShell = true;
- createHome = true;
- openssh.authorizedKeys.keys = [
- config.krebs.users.lass.pubkey
- config.krebs.users.lass-android.pubkey
- config.krebs.users.lass-mors.pubkey
- config.krebs.users.jeschli-bln.pubkey
- config.krebs.users.jeschli-brauerei.pubkey
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1T5+2epslFARSnETdr4wdolA6ocJaD4H9tmz6BZFQKXlwIq+OMp+sSEdwYwW3Lu9+mNbBHPxVVJDWg/We9DXB0ezXPM5Bs1+FcehmkoGwkmgKaFCDt0sL+CfSnog/3wEkN21O/rQxVFqMmiJ7WUDGci6IKCFZ5ZjOsmmfHg5p3LYxU9xv33fNr2v+XauhrGbFtQ7eDz4kSywxN/aw73LN4d8em0V0UV8VPI3Qkw7MamD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vpjk+aXQLn11Zt99MgmnnqUgvOKQi1Quog/SxnSBiloKqB6aA10a28Uxoxkr0KAfhWhX3XPpfGMlbVj4GJuevLp0sGDVQT2biUQ== rhaist@RH-NB"
- ];
- packages = with pkgs; [
- emacs25-nox
-
- (pkgs.symlinkJoin {
- name = "tmux";
- paths = [
- (pkgs.writeDashBin "tmux" ''
- exec ${pkgs.tmux}/bin/tmux -f ${pkgs.writeText "tmux.conf" ''
- set-option -g default-terminal screen-256color
-
- #use session instead of windows
- bind-key c new-session
- bind-key p switch-client -p
- bind-key n switch-client -n
- bind-key C-s switch-client -l
- ''} "$@"
- '')
- pkgs.tmux
- ];
- })
- ];
- };
- };
-
- krebs.iptables.tables.filter.INPUT.rules = [
- { predicate = "-p tcp --dport 8000"; target = "ACCEPT";}
- { predicate = "-p tcp --dport 9000"; target = "ACCEPT";}
- ];
-
- krebs.iptables.tables.filter.OUTPUT.rules = [
- { predicate = "-p tcp --dport 21"; target = "REJECT";}
- ];
-
- krebs.per-user.dev.packages = [
- pkgs.go
- ];
- environment.variables.GOPATH = "$HOME/go";
-
- security.sudo.extraConfig = ''
- ${mainUser.name} ALL=(dev) NOPASSWD: ALL
- '';
-
- networking.interfaces.et0.ipv4.addresses = [
- { address = "10.99.23.1"; prefixLength = 24; }
- ];
- services.rabbitmq.enable = true;
- services.postgresql.enable = true;
-}