organize modules

This commit is contained in:
Satria 2026-02-07 13:44:48 +07:00
commit d0d4bf9ddb
21 changed files with 54 additions and 69 deletions

View file

@ -1,8 +1,8 @@
{ hostname, timezone, ... }: {
system.stateVersion = "24.11";
imports = [
./utilities.nix
./nix-conf.nix
./misc/utilities.nix
./misc/nix-conf.nix
];
networking.hostName = "${hostname}";
@ -11,4 +11,4 @@
openssh.enable = true;
tailscale.enable = true;
};
}
}

View file

@ -1,14 +1,14 @@
{ pkgs, locale, ... }: {
imports = [
./core/virtualization.nix
./core/bootloader.nix
./core/filesystem.nix
./core/network.nix
./core/kernel.nix
./core/user.nix
./misc/programs.nix
./misc/desktop.nix
./base.nix
./network.nix
./user.nix
./kernel.nix
./bootloader.nix
./filesystem.nix
./virtualization.nix
./desktop.nix
./programs.nix
];
i18n.defaultLocale = locale;
@ -24,4 +24,4 @@
fonts.packages = with pkgs; [
corefonts
];
}
}

View file

@ -1,23 +1,21 @@
{ pkgs, username, ... }: {
users = {
users."${username}" = {
linger = true;
isNormalUser = true;
description = "${username}";
initialPassword = "${username}";
shell = pkgs.zsh;
extraGroups = [
"networkmanager"
"wheel"
"dialout"
"libvirtd"
"docker"
"input"
"uinput"
"ydotool"
"adbusers"
"kvm"
];
};
users.users."${username}" = {
linger = true;
isNormalUser = true;
description = "${username}";
initialPassword = "${username}";
shell = pkgs.zsh;
extraGroups = [
"networkmanager"
"wheel"
"dialout"
"libvirtd"
"docker"
"input"
"uinput"
"plugdev"
"adbusers"
"kvm"
];
};
}