Successfully separated home-manager configs from system configs

This commit is contained in:
pagedmov
2024-11-06 22:28:16 -05:00
parent 1a2402dee7
commit fc99570fdc
9 changed files with 209 additions and 175 deletions

View File

@@ -1,7 +1,6 @@
{pkgs, ...}: {
{pkgs, username, ...}: {
imports = [
./hardware.nix
./home.nix
];
# My module options
@@ -43,6 +42,23 @@
];
};
users = {
groups.persist = {};
users = {
root.initialPassword = "1234";
${username} = {
isNormalUser = true;
initialPassword = "1234";
shell = pkgs.zsh;
extraGroups = ["wheel" "persist" "libvirtd"];
};
};
};
security.sudo.extraConfig = ''
${username} ALL=(ALL) NOPASSWD: /etc/profiles/per-user/${username}/bin/rebuild
'';
nix.settings.allowed-users = ["${username}"];
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
}