2024-02-26 15:20:57 +02:00
|
|
|
{
|
|
|
|
#self,
|
|
|
|
#lib,
|
|
|
|
#pkgs,
|
|
|
|
myData,
|
|
|
|
#config,
|
|
|
|
#modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
2024-02-29 10:03:39 +02:00
|
|
|
../../shared/platform/orangepi5plus.nix
|
2024-02-26 15:20:57 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
users.users = {
|
|
|
|
motiejus = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = ["wheel" "video"];
|
|
|
|
initialHashedPassword = "";
|
|
|
|
openssh.authorizedKeys.keys = [myData.people_pubkeys.motiejus];
|
|
|
|
};
|
|
|
|
root.initialHashedPassword = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
security = {
|
|
|
|
pam.services.lightdm.text = ''
|
|
|
|
auth sufficient pam_succeed_if.so user ingroup wheel
|
|
|
|
'';
|
|
|
|
sudo = {
|
|
|
|
enable = true;
|
|
|
|
wheelNeedsPassword = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "op5p";
|
|
|
|
domain = "jakstys.lt";
|
|
|
|
firewall.allowedTCPPorts = [22];
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
trusted-users = nixos
|
|
|
|
'';
|
|
|
|
settings = {
|
|
|
|
experimental-features = ["nix-command" "flakes"];
|
|
|
|
trusted-users = ["motiejus"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "UTC";
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|