From 2bc5ed92e1ca60727acc04f3829a4b71491c74fa Mon Sep 17 00:00:00 2001 From: panotaka Date: Tue, 5 Dec 2023 23:18:11 -0400 Subject: [PATCH] Remove unused code and configuration files --- flake.nix | 13 ----- hosts/nixos-test/default.nix | 53 --------------------- hosts/nixos-test/hardware-configuration.nix | 34 ------------- 3 files changed, 100 deletions(-) delete mode 100644 hosts/nixos-test/default.nix delete mode 100644 hosts/nixos-test/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 793d6cc..0a118bb 100644 --- a/flake.nix +++ b/flake.nix @@ -20,19 +20,6 @@ in { nixosConfigurations = { - /* nixos-test = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - ./hosts/nixos-test - home-manager.nixosModules.home-manager - { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = inputs; - home-manager.users.panotaka = import ./home; - } - ]; - };*/ Equinox = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; diff --git a/hosts/nixos-test/default.nix b/hosts/nixos-test/default.nix deleted file mode 100644 index 43e09c7..0000000 --- a/hosts/nixos-test/default.nix +++ /dev/null @@ -1,53 +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. - # }; - grub = { - enable = true; - device = "/dev/sda"; # "nodev" - efiSupport = false; - useOSProber = true; - #efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work for your system - }; - }; - - networking.hostName = "nixos-test"; # 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"; - - # 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/nixos-test/hardware-configuration.nix b/hosts/nixos-test/hardware-configuration.nix deleted file mode 100644 index a53d800..0000000 --- a/hosts/nixos-test/hardware-configuration.nix +++ /dev/null @@ -1,34 +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 + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { - device = "/dev/disk/by-uuid/b779eb19-e43d-4f07-a91f-eb08bd8e1202"; - fsType = "ext4"; - }; - - 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.ens18.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}