summaryrefslogtreecommitdiff
path: root/nixos/users.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
commita1f7f43c95c049628e826856ec589b339cd4f5db (patch)
treea0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /nixos/users.nix
initial commit
Diffstat (limited to 'nixos/users.nix')
-rw-r--r--nixos/users.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/users.nix b/nixos/users.nix
new file mode 100644
index 0000000..04265e0
--- /dev/null
+++ b/nixos/users.nix
@@ -0,0 +1,18 @@
+{ ... }:
+
+{
+ users.users.qaristote = {
+ isNormalUser = true;
+ extraGroups = [
+ "wheel" # Enable ‘sudo’ for the user.
+ "audio"
+ "networkmanager"
+ ];
+ };
+
+ home-manager = {
+ users.qaristote = import /home/qaristote/.config/nixpkgs;
+ useGlobalPkgs = false;
+ useUserPackages = true; # to enable fontconfig inside home-manager
+ };
+}