From c083bb3302e2e64ce07bbec6d1e336131d74aa43 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Tue, 22 Jul 2025 19:13:31 -0300 Subject: [PATCH] fix: typo of host figther --- .ssh/{guz-fighter.pub => guz-figther.pub} | 0 flake.nix | 4 +- hosts/{fighter => figther}/configuration.nix | 4 +- hosts/figther/hardware-configuration.nix | 39 +++++++++++++++++++ .../hardware-configuration.nix.bkp} | 0 hosts/{fighter => figther}/home.nix | 0 6 files changed, 43 insertions(+), 4 deletions(-) rename .ssh/{guz-fighter.pub => guz-figther.pub} (100%) rename hosts/{fighter => figther}/configuration.nix (90%) create mode 100644 hosts/figther/hardware-configuration.nix rename hosts/{fighter/hardware-configuration.nix => figther/hardware-configuration.nix.bkp} (100%) rename hosts/{fighter => figther}/home.nix (100%) diff --git a/.ssh/guz-fighter.pub b/.ssh/guz-figther.pub similarity index 100% rename from .ssh/guz-fighter.pub rename to .ssh/guz-figther.pub diff --git a/flake.nix b/flake.nix index 4f4c827..efc7a3f 100644 --- a/flake.nix +++ b/flake.nix @@ -92,7 +92,7 @@ ./home/guz/configuration.nix ]; }; - "fighter" = nixpkgs.lib.nixosSystem rec { + "figther" = nixpkgs.lib.nixosSystem rec { system = "x86_64-linux"; specialArgs = { pkgs-unstable = import nixpkgs-unstable { @@ -104,7 +104,7 @@ modules = homeNixOSModules ++ [ - ./hosts/fighter/configuration.nix + ./hosts/figther/configuration.nix inputs.stylix.nixosModules.stylix ./home/guz-lite/configuration.nix ]; diff --git a/hosts/fighter/configuration.nix b/hosts/figther/configuration.nix similarity index 90% rename from hosts/fighter/configuration.nix rename to hosts/figther/configuration.nix index 1e79302..8e92b40 100644 --- a/hosts/fighter/configuration.nix +++ b/hosts/figther/configuration.nix @@ -13,7 +13,7 @@ users.users."guz" = { openssh.authorizedKeys.keyFiles = [ - ../../.ssh/guz-fighter.pub + ../../.ssh/guz-figther.pub ]; }; @@ -34,7 +34,7 @@ # Network networking = { - hostName = lib.mkForce "fighter"; + hostName = lib.mkForce "figther"; nameservers = ["192.168.0.110"]; # wireless.enable = lib.mkForce true; }; diff --git a/hosts/figther/hardware-configuration.nix b/hosts/figther/hardware-configuration.nix new file mode 100644 index 0000000..04184bb --- /dev/null +++ b/hosts/figther/hardware-configuration.nix @@ -0,0 +1,39 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/bcd5d809-c81d-4d42-8496-07a70e3b1ffc"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9444-2967"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/fighter/hardware-configuration.nix b/hosts/figther/hardware-configuration.nix.bkp similarity index 100% rename from hosts/fighter/hardware-configuration.nix rename to hosts/figther/hardware-configuration.nix.bkp diff --git a/hosts/fighter/home.nix b/hosts/figther/home.nix similarity index 100% rename from hosts/fighter/home.nix rename to hosts/figther/home.nix