summaryrefslogtreecommitdiff
path: root/sys/users.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-08-08 04:01:49 -0600
committerAlejandro Soto <alejandro@34project.org>2022-08-08 04:01:49 -0600
commit6898012a82e98e6c0201b7c25af845302cecdb4e (patch)
tree97bd3e45ccca27cafb2191096856c94d3e366c31 /sys/users.nix
parent829102167e61ece218c33b83141b81b78cdf6087 (diff)
sys/users: move out of sys/default.nix
Diffstat (limited to 'sys/users.nix')
-rw-r--r--sys/users.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/sys/users.nix b/sys/users.nix
new file mode 100644
index 0000000..8c8be6b
--- /dev/null
+++ b/sys/users.nix
@@ -0,0 +1,51 @@
+{ lib, config, pkgs, ... }:
+with lib; let
+ cfg = config.local;
+in {
+ config = {
+ sound.enable = true;
+ hardware.pulseaudio.enable = true;
+
+ services.xserver = {
+ enable = true;
+ videoDrivers = cfg.videoDrivers ++ [ "modesetting" "fbdev" ];
+ libinput.enable = true;
+ displayManager.startx.enable = true;
+ };
+
+ services.udev.packages = [
+ pkgs.android-udev-rules
+ ];
+
+ programs = {
+ dconf.enable = true;
+ zsh.enable = true;
+ };
+
+ environment.pathsToLink = [ "/share/zsh" ];
+
+ users.users = {
+ ale = {
+ isNormalUser = true;
+ uid = 1000;
+ group = "ale";
+ extraGroups = [ "users" "wheel" "adbusers" ];
+ shell = pkgs.zsh;
+ };
+
+ tutorias = {
+ isNormalUser = true;
+ uid = 1004;
+ group = "tutorias";
+ extraGroups = [ "users" ];
+ shell = pkgs.zsh;
+ };
+ };
+
+ users.groups = {
+ ale.gid = 1001;
+ tutorias.gid = 1007;
+ adbusers.gid = 1008;
+ };
+ };
+}