summaryrefslogtreecommitdiff
path: root/modules/users.nix
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-10-03 14:54:12 -0400
committerGrace Yoder <grace_yoder@outlook.com>2026-10-05 15:08:18 -0400
commitfdde154c63eeb8e6aac5129f9226f38c4b0b8bf0 (patch)
treee34e1728e20886595bb7db4bd81939f3b694d755 /modules/users.nix
parent1f58bc3f3c9947c988567c8c16a853ff918f3e98 (diff)
hamano againvulcan
Diffstat (limited to 'modules/users.nix')
-rw-r--r--modules/users.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/users.nix b/modules/users.nix
index 53fce69..d18e366 100644
--- a/modules/users.nix
+++ b/modules/users.nix
@@ -1,15 +1,21 @@
{ pkgs, ... }:
let
+ host = import ../hosts.nix;
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
- host = import ../host.nix;
in
{
imports = [ "${home-manager}/nixos" ];
- users.users.grace = {
+ nix.settings.trusted-users = [
+ "root"
+ "grace"
+ ];
+
+ users.users.${host.user} = {
isNormalUser = true;
- description = "grace";
+ description = host.user;
+ home = host.home;
extraGroups = [
"wheel"
"networkmanager"
@@ -23,11 +29,11 @@ in
security.sudo.wheelNeedsPassword = false;
home-manager = {
- useGlobalPkgs = true;
+ useGlobalPkgs = false;
useUserPackages = true;
backupFileExtension = "backup";
- users.grace = {
+ users.${host.user} = {
imports = [ ../home.nix ];
home.username = host.user;