hosts/ni: convert foo-dogsquared home-manager user to declarative hosts method

This commit is contained in:
Gabriel Arazas 2024-01-18 16:58:05 +08:00
parent 22aeb0c396
commit 16dae5c0b8
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 22 additions and 34 deletions

View File

@ -14,22 +14,28 @@
ni = {
systems = [ "x86_64-linux" ];
formats = null;
overlays = [
# Neovim nightly!
inputs.neovim-nightly-overlay.overlays.default
# Emacs unstable version!
inputs.emacs-overlay.overlays.default
# Helix master!
inputs.helix-editor.overlays.default
# Access to NUR.
inputs.nur.overlay
];
modules = [
inputs.nur.nixosModules.nur
];
homeManagerUsers = {
nixpkgsInstance = "global";
users.foo-dogsquared = {
userConfig = {
extraGroups = [
"adbusers"
"wheel"
"audio"
"docker"
"podman"
"networkmanager"
"wireshark"
];
hashedPassword =
"$6$.cMYto0K0CHbpIMT$dRqyKs4q1ppzmTpdzy5FWP/V832a6X..FwM8CJ30ivK0nfLjQ7DubctxOZbeOtygfjcUd1PZ0nQoQpOg/WMvg.";
isNormalUser = true;
createHome = true;
home = "/home/foo-dogsquared";
description = "Gabriel Arazas";
};
};
};
};
# A remote server.

View File

@ -5,24 +5,6 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
./modules
(lib.private.mapHomeManagerUser "foo-dogsquared" {
extraGroups = [
"adbusers"
"wheel"
"audio"
"docker"
"podman"
"networkmanager"
"wireshark"
];
hashedPassword =
"$6$.cMYto0K0CHbpIMT$dRqyKs4q1ppzmTpdzy5FWP/V832a6X..FwM8CJ30ivK0nfLjQ7DubctxOZbeOtygfjcUd1PZ0nQoQpOg/WMvg.";
isNormalUser = true;
createHome = true;
home = "/home/foo-dogsquared";
description = "Gabriel Arazas";
})
];
hosts.ni = {