From 62e2519639faa250f43f9e80e69906a59d07a44e Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sat, 11 Jan 2025 03:55:19 +0100 Subject: delete legacy stuff and reformat --- hosts/cloud/configuration.nix | 7 +++++-- hosts/cloud/default.nix | 5 +++-- hosts/cloud/hardware-configuration.nix | 14 +++++++++++--- hosts/cloud/networking.nix | 5 +++-- 4 files changed, 22 insertions(+), 9 deletions(-) (limited to 'hosts/cloud') diff --git a/hosts/cloud/configuration.nix b/hosts/cloud/configuration.nix index 9eddac5..9eaff39 100644 --- a/hosts/cloud/configuration.nix +++ b/hosts/cloud/configuration.nix @@ -1,4 +1,5 @@ -{ ... }: { +{ ... }: +{ imports = [ ./hardware-configuration.nix ./networking.nix @@ -9,6 +10,8 @@ networking.hostName = "cloud"; networking.domain = "oxapentane.com"; services.openssh.enable = true; - users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl9iYG5oHBq/poBn7Jf1/FGWWbAnbx+NKjs7qtT3uAK'' ]; + users.users.root.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl9iYG5oHBq/poBn7Jf1/FGWWbAnbx+NKjs7qtT3uAK'' + ]; system.stateVersion = "24.11"; } diff --git a/hosts/cloud/default.nix b/hosts/cloud/default.nix index 1cb37c6..78ebe7a 100644 --- a/hosts/cloud/default.nix +++ b/hosts/cloud/default.nix @@ -1,5 +1,6 @@ -{ ... }: { - imports= [ +{ ... }: +{ + imports = [ ./configuration.nix ./hardware-configuration.nix ./networking.nix diff --git a/hosts/cloud/hardware-configuration.nix b/hosts/cloud/hardware-configuration.nix index 5e7b44e..bd94495 100644 --- a/hosts/cloud/hardware-configuration.nix +++ b/hosts/cloud/hardware-configuration.nix @@ -2,8 +2,16 @@ { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot.loader.grub.device = "/dev/sda"; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.availableKernelModules = [ + "ata_piix" + "uhci_hcd" + "xen_blkfront" + "vmw_pvscsi" + ]; boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; - + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "ext4"; + }; + } diff --git a/hosts/cloud/networking.nix b/hosts/cloud/networking.nix index 8f3021a..499bb0c 100644 --- a/hosts/cloud/networking.nix +++ b/hosts/cloud/networking.nix @@ -1,11 +1,12 @@ -{ lib, ... }: { +{ lib, ... }: +{ networking.dhcpcd.enable = false; networking.useNetworkd = true; systemd.network.enable = true; systemd.network = { networks."30-uplink" = { - matchConfig.Name="enp1s0"; + matchConfig.Name = "enp1s0"; networkConfig = { Address = [ "188.245.196.27/32" -- cgit v1.3.1