From e0a62a7d8a41c22eea6033ca6b9467d2075c06c9 Mon Sep 17 00:00:00 2001 From: panotaka Date: Sat, 25 Nov 2023 00:21:26 -0400 Subject: [PATCH] Delete unnecessary NixOS configuration files --- hosts/msi-rtx4090/default.nix | 55 -------------------- hosts/msi-rtx4090/hardware-configuration.nix | 43 --------------- 2 files changed, 98 deletions(-) delete mode 100644 hosts/msi-rtx4090/default.nix delete mode 100644 hosts/msi-rtx4090/hardware-configuration.nix diff --git a/hosts/msi-rtx4090/default.nix b/hosts/msi-rtx4090/default.nix deleted file mode 100644 index 7242ee2..0000000 --- a/hosts/msi-rtx4090/default.nix +++ /dev/null @@ -1,55 +0,0 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - -{ config, pkgs, ... }: - -{ - imports = - [ - ../../modules/system.nix - ../../modules/i3.nix - - # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; - - # Bootloader. - boot.loader = { - efi = { - canTouchEfiVariables = true; - efiSysMountPoint = "/boot/efi"; # ← use the same mount point here. - }; - systemd-boot.enable = true; - }; - - networking.hostName = "msi-rtx4090"; # Define your hostname. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - - # Enable networking - networking.networkmanager.enable = true; - networking.defaultGateway = "192.168.5.201"; - - # for Nvidia GPU - services.xserver.videoDrivers = [ "nvidia" ]; - hardware.opengl.enable = true; - hardware.nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.stable; - modesetting.enable = true; - }; - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.05"; # Did you read the comment? - -} - - diff --git a/hosts/msi-rtx4090/hardware-configuration.nix b/hosts/msi-rtx4090/hardware-configuration.nix deleted file mode 100644 index c1c82c3..0000000 --- a/hosts/msi-rtx4090/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 = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { - device = "/dev/disk/by-uuid/9730ef67-577c-4dc9-8563-f431c1cf25fb"; - fsType = "ext4"; - }; - - fileSystems."/boot/efi" = - { - device = "/dev/disk/by-uuid/8DA9-86FF"; - fsType = "vfat"; - }; - - swapDevices = - [{ device = "/dev/disk/by-uuid/5364261a-3ecc-4754-b114-ff44c529627e"; }]; - - # 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.enp5s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}