From a6a36b8080c4daa2aa19233eb97fbf2e1612cc5e Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sat, 17 May 2025 17:56:00 +0200 Subject: [PATCH] feat(hosts): remove unneded hosts. --- hosts/nixos/configuration.nix | 135 ------------------------- hosts/nixos/hardware-configuration.nix | 43 -------- hosts/nixos/home.nix | 41 -------- 3 files changed, 219 deletions(-) delete mode 100644 hosts/nixos/configuration.nix delete mode 100644 hosts/nixos/hardware-configuration.nix delete mode 100644 hosts/nixos/home.nix diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix deleted file mode 100644 index 64d4d39..0000000 --- a/hosts/nixos/configuration.nix +++ /dev/null @@ -1,135 +0,0 @@ -{ - inputs, - config, - pkgs, - ... -}: { - imports = [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - inputs.home-manager.nixosModules.home-manager - ]; - - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - # Enable aarch64 emulation - boot.binfmt.emulatedSystems = ["aarch64-linux"]; - - # Use the xanmod kernel - boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest; - - # Get nicer hostname - networking.hostName = "nixos"; # Define your hostname. - - # Enable flakes - nix.settings.experimental-features = ["nix-command" "flakes"]; - - # Enable trusted users - nix.settings.trusted-users = ["root" "@wheel"]; - - # Setup gpu - hardware.graphics = { - enable = true; - enable32Bit = true; - }; - - # Enable networking - networking.networkmanager.enable = true; - networking.nameservers = ["192.168.0.10" "1.1.1.1"]; - services.resolved = { - enable = true; - fallbackDns = ["192.168.0.10" "1.1.1.1"]; - }; - - # Set your time zone. - time.timeZone = "Europe/Zagreb"; - - # Select internationalisation properties. - i18n.defaultLocale = "en_US.UTF-8"; - - i18n.extraLocaleSettings = { - LC_ADDRESS = "hr_HR.UTF-8"; - LC_IDENTIFICATION = "hr_HR.UTF-8"; - LC_MEASUREMENT = "hr_HR.UTF-8"; - LC_MONETARY = "hr_HR.UTF-8"; - LC_NAME = "hr_HR.UTF-8"; - LC_NUMERIC = "hr_HR.UTF-8"; - LC_PAPER = "hr_HR.UTF-8"; - LC_TELEPHONE = "hr_HR.UTF-8"; - LC_TIME = "hr_HR.UTF-8"; - }; - - # Enable the X11 windowing system. - services.xserver.enable = true; - - # Configure keymap in X11 - services.xserver.xkb = { - layout = "us"; - variant = ""; - options = "caps:escape"; - }; - - # Enable fstrim - services.fstrim.enable = true; - - # Enable seatd - services.seatd.enable = true; - - # Enable flatpak - services.flatpak.enable = true; - - # Enable ratbagd to customize mouse options - services.ratbagd.enable = true; - - # Enable sound with pipewire. - services.pulseaudio.enable = false; - security.rtkit.enable = true; - services.pipewire = { - enable = true; - pulse.enable = true; - alsa = { - enable = true; - support32Bit = true; - }; - }; - # Fix not saving my state - hardware.alsa.enablePersistence = true; - - # Enable appimages - programs.appimage = { - enable = true; - binfmt = true; - }; - - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.crony = { - isNormalUser = true; - description = "Crony"; - hashedPasswordFile = "${config.age.secrets.crony-passwd.path}"; - extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat"]; - }; - - users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}"; - - users.mutableUsers = false; - - # Allow unfree packages - nixpkgs.config.allowUnfree = true; - - # List packages installed in system profile - environment.systemPackages = with pkgs; [ - pmount - neovim - lm_sensors - libva-utils - alsa-utils - ]; - - # Enable nixd to see nixpkgs path - nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"]; - - # DO NOT CHANGE - system.stateVersion = "24.11"; -} diff --git a/hosts/nixos/hardware-configuration.nix b/hosts/nixos/hardware-configuration.nix deleted file mode 100644 index e0970af..0000000 --- a/hosts/nixos/hardware-configuration.nix +++ /dev/null @@ -1,43 +0,0 @@ -# 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 = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"]; - boot.initrd.kernelModules = []; - boot.kernelModules = ["kvm-amd"]; - boot.extraModulePackages = []; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/0fbf752d-9234-42bd-9e04-8246de85e8d6"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/3156-31B6"; - 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.enp3s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix deleted file mode 100644 index 861ddb6..0000000 --- a/hosts/nixos/home.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ - pkgs, - inputs, - ... -}: { - imports = [ - inputs.nvf.homeManagerModules.default - inputs.nix-index-database.hmModules.nix-index - inputs.nix-flatpak.homeManagerModules.nix-flatpak - ]; - - # Some info - home.username = "crony"; - home.homeDirectory = "/home/crony"; - - # PACKAGES - - # Enable syncthing - services.syncthing.enable = true; - - # Default environmental variables - home.sessionVariables = { - EDITOR = "nvim"; - WINEPREFIX = "$HOME/.local/share/wineprefix/default"; - }; - - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; - - # Disable emulators for now - crony.emulators.enable = false; - - # Disable restic for now - crony.restic.enable = false; - - # Fix gtkrc-2.0 collision - home.file."/home/crony/.gtkrc-2.0".force = true; - - # DO NOT CHANGE ALSO - home.stateVersion = "24.11"; # Please read the comment before changing. -}