Files
Kenryu Shibata 3f2875faa9 final commit before moving to gentoo
Nix is great, but it was hard for me to configure every part of system explicitly on everyday machine.
From now, I'm going to leave NixOS, but I will keep using Nix for further software development.
Mabye come back in PI for high level IOT Dev?
2025-08-12 18:06:17 +09:00

53 lines
1.5 KiB
Nix

{ config, lib, pkgs, modulesPath, systemSettings, ... }: {
imports = [
../../system
../../system/nvidia
../../user
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f4c95da6-3c6b-4414-a62a-c8c26c4a1c73";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C83C-841F";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/run/media/kenryus/hdd" = {
device = "/dev/disk/by-uuid/0d146628-12f4-4bb6-abde-bbf798a57c25";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/d933c349-8e70-41e1-8d13-605656dba18b"; }
];
nixpkgs.hostPlatform = lib.mkDefault systemSettings.system;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
programs.appimage = {
enable = true;
binfmt = true;
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 3000 3001 22 ];
system.stateVersion = "24.05"; # Did you read the changelog?
}