summaryrefslogtreecommitdiff
path: root/hosts/oixos/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/oixos/default.nix')
-rw-r--r--hosts/oixos/default.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/hosts/oixos/default.nix b/hosts/oixos/default.nix
new file mode 100644
index 0000000..416e2f2
--- /dev/null
+++ b/hosts/oixos/default.nix
@@ -0,0 +1,60 @@
+{
+ systemState,
+ user,
+ hostname,
+}:
+{
+ pkgs,
+ config,
+ inputs,
+ lib,
+ ...
+}:
+{
+ imports = [
+ inputs.disko.nixosModules.disko
+ ./disko.nix
+ ./hardware-configuration.nix
+ ];
+
+ boot.loader.grub = {
+ efiSupport = true;
+ efiInstallAsRemovable = true;
+ };
+
+ networking.hostName = hostname;
+ networking.useDHCP = true;
+
+ services.openssh = {
+ enable = true;
+ # settings = {
+ # PermitRootLogin = "prohibit-password";
+ # PasswordAuthentication = false;
+ # };
+ };
+
+ # users.users.beeb5k = {
+ # isNormalUser = true;
+ # extraGroups = [ "wheel" ];
+ #
+ # openssh.authorizedKeys.keys = [
+ # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGTMc0gNGM6vI8s9CrW+fYlW4ppRTKRCELOve3Izj1VD beeb5k"
+ # ];
+ # };
+
+ services.cloud-init.enable = true;
+
+ users.users.root.openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGTMc0gNGM6vI8s9CrW+fYlW4ppRTKRCELOve3Izj1VD beeb5k"
+ ];
+
+ environment.systemPackages = with pkgs; [
+ git
+ ];
+
+ # security.sudo.wheelNeedsPassword = false;
+
+ nixpkgs.hostPlatform = "aarch64-linux";
+
+ system.stateVersion = systemState;
+}