From 41087768d21fcd9fe6895862672099975308e410 Mon Sep 17 00:00:00 2001 From: bangae1 Date: Sat, 1 Nov 2025 13:47:38 +0900 Subject: [PATCH] first --- .gitignore | 3 ++- README.md | 2 ++ configuration.nix | 4 +++- hardware-configuration.nix | 39 -------------------------------------- 4 files changed, 7 insertions(+), 41 deletions(-) delete mode 100644 hardware-configuration.nix diff --git a/.gitignore b/.gitignore index 946cb50..cd2b597 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .direnv *.qcow2 result -.git-hooks \ No newline at end of file +.git-hooks +hardware-configuration.nix diff --git a/README.md b/README.md index b8df57e..23b2e9e 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ visit the [docs/installation.md](./docs/installation.md) to get started. | `configuration.nix` | nixos system configuration | | `hardware-configuration.nix` | hardware-specific settings (auto-generated) | +sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix + ### documentation | file | purpose | diff --git a/configuration.nix b/configuration.nix index b1bd518..3bc685b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -25,7 +25,7 @@ in inputs.hydenix.inputs.home-manager.nixosModules.home-manager inputs.hydenix.nixosModules.default ./modules/system # Your custom system modules - ./hardware-configuration.nix # Auto-generated hardware config + /etc/nixos/hardware-configuration.nix # Auto-generated hardware config # Hardware Configuration - Uncomment lines that match your hardware # Run `lshw -short` or `lspci` to identify your hardware @@ -99,6 +99,8 @@ in kime google-chrome nwg-displays + tk + scrot ]; # System Version - Don't change unless you know what you're doing (helps with system upgrades and compatibility) diff --git a/hardware-configuration.nix b/hardware-configuration.nix deleted file mode 100644 index 2c4a073..0000000 --- a/hardware-configuration.nix +++ /dev/null @@ -1,39 +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 = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/af6c4c4b-f5c7-4d5b-a62c-a967c6d6113c"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/F95B-2B72"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/9334dd40-c30f-4a69-b2c8-a5b746be8097"; } - ]; - - # 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"; -}