mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
+22
-22
@@ -7,33 +7,33 @@
|
|||||||
{
|
{
|
||||||
imports = with inputs; [
|
imports = with inputs; [
|
||||||
./essentials
|
./essentials
|
||||||
|
./users.nix
|
||||||
(import ./options.nix { inherit lib inputs; }) # Options
|
(import ./options.nix { inherit lib inputs; }) # Options
|
||||||
|
|
||||||
# Flake modules
|
|
||||||
home-manager.nixosModules.home-manager # home-manager module
|
home-manager.nixosModules.home-manager # home-manager module
|
||||||
nix-index-database.nixosModules.nix-index # nix-index module
|
nix-index-database.nixosModules.nix-index # nix-index module
|
||||||
];
|
];
|
||||||
|
|
||||||
# defines global user
|
# defines global user
|
||||||
config.users = {
|
# config.users = {
|
||||||
users = {
|
# users = {
|
||||||
"${config.device.username}" = {
|
# "${config.xlib.device.username}" = {
|
||||||
isNormalUser = true;
|
# isNormalUser = true;
|
||||||
description = "Jor Oqyude";
|
# description = "Jor Oqyude";
|
||||||
initialPassword = "1234";
|
# initialPassword = "1234";
|
||||||
extraGroups = [
|
# extraGroups = [
|
||||||
"beets"
|
# "beets"
|
||||||
"audio"
|
# "audio"
|
||||||
"disk"
|
# "disk"
|
||||||
"gamemode"
|
# "gamemode"
|
||||||
"libvirtd"
|
# "libvirtd"
|
||||||
"networkmanager"
|
# "networkmanager"
|
||||||
"pipewire"
|
# "pipewire"
|
||||||
"qemu-libvirtd"
|
# "qemu-libvirtd"
|
||||||
"wheel"
|
# "wheel"
|
||||||
"immich"
|
# "immich"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
xlib = {
|
||||||
device = {
|
device = {
|
||||||
type = lib.mkOption {
|
type = lib.mkOption {
|
||||||
type = lib.types.enum [
|
type = lib.types.enum [
|
||||||
@@ -24,4 +25,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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