From 66d6281698127b954bd8da627abde59b3e455df4 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 23 Aug 2023 22:38:35 +0900 Subject: [PATCH] test --- flake.nix | 2 +- nixos/users/albert/default.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 15e3b186..6b7b5a8b 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ nixos-laptop = libx.mkHost { hostname = "nixos-laptop"; username = "albert"; desktop = "gnome"; }; nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; username = "albert"; desktop = "gnome"; }; }; - homeConfigurations = { + homeConfigurations = { "albert@nixos-laptop" = libx.mkHome { hostname = "nixos-laptop"; username = "albert"; desktop = "gnome"; }; "albert@nixos-desktop" = libx.mkHome { hostname = "nixos-desktop"; username = "albert"; desktop = "gnome"; }; }; diff --git a/nixos/users/albert/default.nix b/nixos/users/albert/default.nix index 4904df9c..564bea94 100644 --- a/nixos/users/albert/default.nix +++ b/nixos/users/albert/default.nix @@ -3,12 +3,13 @@ let ifExists = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; in { # Define a user account. - imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix; + imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix; users.users.albert = { isNormalUser = true; description = "Albert J. Copeland"; # video is required for the "light" command to work extraGroups = [ "networkmanager" "wheel" ] ++ ifExists [ "video" ]; + # mkpasswd -m sha-512 hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6"; packages = [ pkgs.home-manager ]; };