mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+22
-22
@@ -7,33 +7,33 @@
|
||||
{
|
||||
imports = with inputs; [
|
||||
./essentials
|
||||
./users.nix
|
||||
(import ./options.nix { inherit lib inputs; }) # Options
|
||||
|
||||
# Flake modules
|
||||
home-manager.nixosModules.home-manager # home-manager module
|
||||
nix-index-database.nixosModules.nix-index # nix-index module
|
||||
];
|
||||
|
||||
# defines global user
|
||||
config.users = {
|
||||
users = {
|
||||
"${config.device.username}" = {
|
||||
isNormalUser = true;
|
||||
description = "Jor Oqyude";
|
||||
initialPassword = "1234";
|
||||
extraGroups = [
|
||||
"beets"
|
||||
"audio"
|
||||
"disk"
|
||||
"gamemode"
|
||||
"libvirtd"
|
||||
"networkmanager"
|
||||
"pipewire"
|
||||
"qemu-libvirtd"
|
||||
"wheel"
|
||||
"immich"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
# config.users = {
|
||||
# users = {
|
||||
# "${config.xlib.device.username}" = {
|
||||
# isNormalUser = true;
|
||||
# description = "Jor Oqyude";
|
||||
# initialPassword = "1234";
|
||||
# extraGroups = [
|
||||
# "beets"
|
||||
# "audio"
|
||||
# "disk"
|
||||
# "gamemode"
|
||||
# "libvirtd"
|
||||
# "networkmanager"
|
||||
# "pipewire"
|
||||
# "qemu-libvirtd"
|
||||
# "wheel"
|
||||
# "immich"
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
+18
-16
@@ -5,22 +5,24 @@
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
device = {
|
||||
type = lib.mkOption {
|
||||
type = lib.types.enum [
|
||||
"minimal"
|
||||
"primary"
|
||||
"server"
|
||||
"vds"
|
||||
"wsl"
|
||||
];
|
||||
default = "minimal";
|
||||
description = "Type of device for this host.";
|
||||
};
|
||||
username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "${inputs.zeroq.devices.admin}";
|
||||
description = "Username for host.";
|
||||
xlib = {
|
||||
device = {
|
||||
type = lib.mkOption {
|
||||
type = lib.types.enum [
|
||||
"minimal"
|
||||
"primary"
|
||||
"server"
|
||||
"vds"
|
||||
"wsl"
|
||||
];
|
||||
default = "minimal";
|
||||
description = "Type of device for this host.";
|
||||
};
|
||||
username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "${inputs.zeroq.devices.admin}";
|
||||
description = "Username for host.";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config.users = {
|
||||
users = {
|
||||
"${config.xlib.device.username}" = {
|
||||
isNormalUser = true;
|
||||
description = "Jor Oqyude";
|
||||
initialPassword = "1234";
|
||||
extraGroups = [
|
||||
"beets"
|
||||
"audio"
|
||||
"disk"
|
||||
"gamemode"
|
||||
"libvirtd"
|
||||
"networkmanager"
|
||||
"pipewire"
|
||||
"qemu-libvirtd"
|
||||
"wheel"
|
||||
"immich"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user