summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-08-17 11:25:33 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-08-17 11:25:33 +0200
commit1be972048dd58218cd689ecb5cac562eb398b751 (patch)
tree203f19ee01ad5fe28f2868e8c1451f9538e4ab12 /users
parent3cd59d4670711e34a50adea912c3b0894883e490 (diff)
refreshed config
Diffstat (limited to 'users')
-rw-r--r--users/live-user.nix16
-rw-r--r--users/user-common.nix16
-rw-r--r--users/wilkuu.nix16
3 files changed, 48 insertions, 0 deletions
diff --git a/users/live-user.nix b/users/live-user.nix
new file mode 100644
index 0000000..b7182c8
--- /dev/null
+++ b/users/live-user.nix
@@ -0,0 +1,16 @@
+{pkgs, lib, config,...}: {
+ imports = [./user-common.nix];
+ programs.zsh.enable = true;
+ users.users.live-user = {
+ shell = pkgs.zsh;
+ isNormalUser = true;
+ initialPassword = "PleazeChangeThis123";
+ extraGroups = [ "wheel" "networkmanager" "input" "docker" "adbusers" "libvirtd" ]; # Enable ‘sudo’ for the user.
+ packages = with pkgs; [
+ home-manager
+ ];
+ };
+
+ home-manager.users.live-user.imports = [ ../home/live-user.nix ];
+
+}
diff --git a/users/user-common.nix b/users/user-common.nix
new file mode 100644
index 0000000..4b60044
--- /dev/null
+++ b/users/user-common.nix
@@ -0,0 +1,16 @@
+{pkgs, config, ...}: {
+ # Pass host config to HM (Common config)
+ # TODO: Move this somewhere else.
+ home-manager = {
+ useUserPackages = true;
+ useGlobalPkgs = true;
+ backupFileExtension = "bak";
+
+ sharedModules = [
+ ({ ...}: {
+ _module.args.hostconfig = config;
+
+ })
+ ];
+ };
+}
diff --git a/users/wilkuu.nix b/users/wilkuu.nix
new file mode 100644
index 0000000..c4e7cf3
--- /dev/null
+++ b/users/wilkuu.nix
@@ -0,0 +1,16 @@
+{pkgs, lib, config,...}: {
+ imports = [./user-common.nix];
+ programs.zsh.enable = true;
+ users.users.wilkuu = {
+ shell = pkgs.zsh;
+ isNormalUser = true;
+ initialPassword = "PleazeChangeThis123";
+ extraGroups = [ "wheel" "networkmanager" "input" "docker" "adbusers" "libvirtd" ]; # Enable ‘sudo’ for the user.
+ packages = with pkgs; [
+ home-manager
+ ];
+ };
+
+ home-manager.users.wilkuu.imports = [ ../home/wilkuu.nix ];
+
+}