This commit is contained in:
2025-11-01 13:47:38 +09:00
parent 4e4bed2431
commit 41087768d2
4 changed files with 7 additions and 41 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
*.qcow2 *.qcow2
result result
.git-hooks .git-hooks
hardware-configuration.nix

View File

@@ -18,6 +18,8 @@ visit the [docs/installation.md](./docs/installation.md) to get started.
| `configuration.nix` | nixos system configuration | | `configuration.nix` | nixos system configuration |
| `hardware-configuration.nix` | hardware-specific settings (auto-generated) | | `hardware-configuration.nix` | hardware-specific settings (auto-generated) |
sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
### documentation ### documentation
| file | purpose | | file | purpose |

View File

@@ -25,7 +25,7 @@ in
inputs.hydenix.inputs.home-manager.nixosModules.home-manager inputs.hydenix.inputs.home-manager.nixosModules.home-manager
inputs.hydenix.nixosModules.default inputs.hydenix.nixosModules.default
./modules/system # Your custom system modules ./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 # Hardware Configuration - Uncomment lines that match your hardware
# Run `lshw -short` or `lspci` to identify your hardware # Run `lshw -short` or `lspci` to identify your hardware
@@ -99,6 +99,8 @@ in
kime kime
google-chrome google-chrome
nwg-displays nwg-displays
tk
scrot
]; ];
# System Version - Don't change unless you know what you're doing (helps with system upgrades and compatibility) # System Version - Don't change unless you know what you're doing (helps with system upgrades and compatibility)

View File

@@ -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.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}