From a3bf7bcbcee8316020c4b95c1abe14cbe73eaa78 Mon Sep 17 00:00:00 2001
From: Jens Nolte <git@queezle.net>
Date: Sun, 22 Aug 2021 13:51:57 +0200
Subject: [PATCH] Move developer configuration to dev layer

---
 layers/dev.nix         | 14 ++++++++++++--
 layers/workstation.nix | 12 +-----------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/layers/dev.nix b/layers/dev.nix
index d48f436..3fb23da 100644
--- a/layers/dev.nix
+++ b/layers/dev.nix
@@ -1,12 +1,22 @@
 { pkgs, ... }:
 
 {
+  documentation.dev.enable = true;
+
   environment.systemPackages = with pkgs; [
     man-pages
+    posix_man_pages
+
+    # Dictionary (command `trans`)
+    translate-shell
   ];
 
-  users = {
-    users.dev = {
+  users.users = {
+    jens = {
+      packages = with pkgs; [ direnv ];
+    };
+
+    dev = {
       uid = 1300;
       isNormalUser = true;
       packages = with pkgs; [
diff --git a/layers/workstation.nix b/layers/workstation.nix
index babe00c..5988e21 100644
--- a/layers/workstation.nix
+++ b/layers/workstation.nix
@@ -3,11 +3,10 @@
 {
   imports = [
     ./desktop.nix
+    ./dev.nix
     #./vscode.nix
   ];
 
-  documentation.dev.enable = true;
-
   environment.systemPackages = with pkgs; [
     virtmanager
     keepassxc
@@ -16,17 +15,8 @@
     spotify
     gimp
     mumble
-
-    # Dictionary (command `trans`)
-    translate-shell
-
-    posix_man_pages
   ];
 
-  users.users.jens = {
-    packages = with pkgs; [ direnv ];
-  };
-
 
   users.users.adobe = {
     isNormalUser = true;
-- 
GitLab