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

View File

@ -5,24 +5,6 @@
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./modules ./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 = { hosts.ni = {