op5p: add base

This commit is contained in:
Motiejus Jakštys 2024-03-06 11:51:26 +02:00
parent 842d67d959
commit 2cb294b9ab
2 changed files with 15 additions and 29 deletions

View File

@ -137,6 +137,7 @@
modules = [ modules = [
{nixpkgs.overlays = overlays;} {nixpkgs.overlays = overlays;}
./hosts/op5p/configuration.nix ./hosts/op5p/configuration.nix
home-manager.nixosModules.home-manager
]; ];
specialArgs = {inherit myData;} // inputs; specialArgs = {inherit myData;} // inputs;
}; };

View File

@ -1,44 +1,29 @@
{myData, ...}: { {...}: {
imports = [ imports = [
../../modules
../../shared/platform/orangepi5plus.nix ../../shared/platform/orangepi5plus.nix
]; ];
users.users = { mj = {
motiejus = { stateVersion = "23.11";
isNormalUser = true; timeZone = "UTC";
initialHashedPassword = ""; username = "nixos";
openssh.authorizedKeys.keys = [myData.people_pubkeys.motiejus];
}; base.users = {
enable = true;
user.initialHashedPassword = "";
root.initialHashedPassword = ""; root.initialHashedPassword = "";
}; };
};
security = { security.sudo = {
pam.services.lightdm.text = ''
auth sufficient pam_succeed_if.so user ingroup wheel
'';
sudo = {
enable = true; enable = true;
wheelNeedsPassword = false; wheelNeedsPassword = false;
}; };
};
networking = { networking = {
hostName = "op5p"; hostName = "op5p";
domain = "jakstys.lt"; domain = "jakstys.lt";
firewall.allowedTCPPorts = [22]; 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";
} }