From 248c63163eafa47b9d06da2708b14a01996fbf71 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Thu, 14 Nov 2024 10:53:13 +0500 Subject: [PATCH] fix: don't commit hardware config or else you break other people. Also update alacritty config --- .gitignore | 1 + home-manager/configs/alacritty.nix | 2 +- nixos/hardware-configuration.nix | 42 ------------------------------ 3 files changed, 2 insertions(+), 43 deletions(-) create mode 100644 .gitignore delete mode 100644 nixos/hardware-configuration.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1093752 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nixos/hardware-configuration.nix diff --git a/home-manager/configs/alacritty.nix b/home-manager/configs/alacritty.nix index 6e576c4..237fa38 100644 --- a/home-manager/configs/alacritty.nix +++ b/home-manager/configs/alacritty.nix @@ -32,7 +32,7 @@ style = "Block"; }; - live_config_reload = true; + general.live_config_reload = true; }; }; } diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix deleted file mode 100644 index 71493c9..0000000 --- a/nixos/hardware-configuration.nix +++ /dev/null @@ -1,42 +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 = [ "uhci_hcd" "ehci_pci" "ahci" "usbhid" "ums_realtek" "usb_storage" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "wl" ]; - boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/11f84937-8f7c-4645-88ba-92b2e5d7b03f"; - fsType = "ext4"; - }; - - boot.initrd.luks.devices."luks-71ce195a-833b-489f-bd3b-2d56a4b1b427".device = "/dev/disk/by-uuid/71ce195a-833b-489f-bd3b-2d56a4b1b427"; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/FB56-88FA"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/2a783d2b-85cf-47e3-845f-c8a13f8791b7"; } - ]; - - # 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.enp9s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}