mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+10
-10
@@ -8,24 +8,24 @@
|
|||||||
|
|
||||||
users = {
|
users = {
|
||||||
users = {
|
users = {
|
||||||
main = {
|
"${xlib.device.username}" = {
|
||||||
name = "${xlib.device.username}";
|
name = "${xlib.device.username}";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Jor Oqyude";
|
description = "Jor Oqyude";
|
||||||
# initialPassword = "1234";
|
# initialPassword = "1234";
|
||||||
hashedPasswordFile = config.sops.secrets.hashed_password.path; # hashed_password
|
hashedPasswordFile = config.sops.secrets.hashed_password.path; # hashed_password
|
||||||
homeMode = "700";
|
homeMode = "700";
|
||||||
home = "/home/${config.users.users.main.name}";
|
home = "/home/${xlib.device.username}";
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"beets"
|
"beets"
|
||||||
"audio"
|
"audio"
|
||||||
"disk"
|
"disk"
|
||||||
"gamemode"
|
"gamemode"
|
||||||
"libvirtd"
|
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"pipewire"
|
"pipewire"
|
||||||
"qemu-libvirtd"
|
|
||||||
"wheel"
|
"wheel"
|
||||||
|
"libvirtd"
|
||||||
|
"qemu-libvirtd"
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
age_key_private = {
|
age_key_private = {
|
||||||
format = "yaml";
|
format = "yaml";
|
||||||
key = "age_key_private";
|
key = "age_key_private";
|
||||||
path = "${config.users.users.main.home}/.config/sops/age/keys.txt";
|
path = "/home/${xlib.device.username}/.config/sops/age/keys.txt";
|
||||||
owner = config.users.users.main.name;
|
owner = config.users.users."${xlib.device.username}".name;
|
||||||
group = config.users.users.main.group;
|
group = config.users.users."${xlib.device.username}".group;
|
||||||
mode = "0600";
|
mode = "0600";
|
||||||
};
|
};
|
||||||
ssh_key_private = {
|
ssh_key_private = {
|
||||||
@@ -61,9 +61,9 @@
|
|||||||
# sopsFile = ../secrets/default.yaml;
|
# sopsFile = ../secrets/default.yaml;
|
||||||
key = "ssh_key_private";
|
key = "ssh_key_private";
|
||||||
|
|
||||||
path = "${config.users.users.main.home}/.ssh/id_ed25519";
|
path = "/home/${xlib.device.username}/.ssh/id_ed25519";
|
||||||
owner = config.users.users.main.name;
|
owner = config.users.users."${xlib.device.username}".name;
|
||||||
group = config.users.users.main.group;
|
group = config.users.users."${xlib.device.username}".group;
|
||||||
mode = "0600";
|
mode = "0600";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user