summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-01-09 11:47:23 +0530
committersinanmohd <sinan@sinanmohd.com>2024-01-09 11:47:23 +0530
commit1a8b7a406ab6d03730e2e0ac42691b02d55bef58 (patch)
treec7a2e62add1d759f3c9d576eddcbba5f28fd96ac
parent08f6d527cb4ba5ee4115ebb9ee1d8b04bbf167ac (diff)
modules/dev: use user environment
-rw-r--r--modules/dev.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/dev.nix b/modules/dev.nix
index 76337d5..a74aa84 100644
--- a/modules/dev.nix
+++ b/modules/dev.nix
@@ -1,7 +1,10 @@
-{ pkgs, ... }:
+{ config, pkgs, ... }:
+let
+ user = config.userdata.user;
+in
{
- environment.systemPackages = with pkgs; [
+ users.users.${user}.packages = with pkgs; [
gcc
git
lua