feat(nixos-anywhere): add deploy script and docs in README.md

This commit is contained in:
Mohammad Rafiq 2025-03-27 07:25:34 +08:00
parent 9a84dbf525
commit 8a272b6410
No known key found for this signature in database
4 changed files with 87 additions and 13 deletions

View file

@ -18,19 +18,27 @@
time.timeZone = "Asia/Singapore";
i18n.defaultLocale = "en_SG.UTF-8";
users.mutableUsers = false; # Always reset users on system activation
users = {
mutableUsers = false; # Always reset users on system activation
users.users.rafiq = {
isNormalUser = true;
description = "rafiq";
hashedPasswordFile = config.sops.secrets.password.path;
extraGroups = [
"networkmanager"
"wheel"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
];
groups.users = {
gid = 100;
members = [ "rafiq" ];
};
users.rafiq = {
isNormalUser = true;
description = "rafiq";
hashedPasswordFile = config.sops.secrets.password.path;
uid = 1000;
extraGroups = [
"networkmanager"
"wheel"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
];
};
};
home-manager.users.rafiq.home = {
@ -38,5 +46,4 @@
homeDirectory = "/home/rafiq";
stateVersion = "25.05";
};
}