format all files

This commit is contained in:
Asaki Yuki 2026-04-14 01:15:18 +07:00
parent f940a235f0
commit a47826b7c2
101 changed files with 1073 additions and 1034 deletions

View file

@ -1,10 +1,8 @@
{
lib,
libs,
pkgs,
...
}:
{
}: {
imports = [
./hardware-configuration.nix
./mount.nix
@ -18,8 +16,8 @@
nixpkgs.config.allowUnfree = true;
boot.kernelParams = [ "amd_pstate=active" ];
boot.kernelModules = [ "ideapad_laptop" ];
boot.kernelParams = ["amd_pstate=active"];
boot.kernelModules = ["ideapad_laptop"];
services.power-profiles-daemon.enable = true;
environment.systemPackages = with pkgs; [
lm_sensors
@ -38,6 +36,6 @@
};
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.extraModulePackages = [ pkgs.linuxPackages_latest.zenpower ];
boot.extraModulePackages = [pkgs.linuxPackages_latest.zenpower];
system.stateVersion = "25.11";
}

View file

@ -1,32 +1,35 @@
# 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")
];
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/85ab0f38-b6e7-4046-a33b-ce7b9812b959";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/85ab0f38-b6e7-4046-a33b-ce7b9812b959";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2221-C55B";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2221-C55B";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/20e229eb-f32e-4369-be96-25275ebc8ae3"; }
];
swapDevices = [
{device = "/dev/disk/by-uuid/20e229eb-f32e-4369-be96-25275ebc8ae3";}
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View file

@ -1,23 +1,23 @@
{ ... }: {
fileSystems = {
"/mnt/windows" = {
device = "/dev/disk/by-uuid/0000294D000006E6";
fsType = "ntfs-3g";
options = [
"rw"
"uid=1000"
"gid=100"
"umask=022"
];
};
"/mnt/waydroid" = {
device = "/home/asakiyuki/.local/share/waydroid/data/media/0";
fsType = "fuse.bindfs";
options = [
"mirror=1000"
"xattr-none"
"chmod-ignore"
];
};
{...}: {
fileSystems = {
"/mnt/windows" = {
device = "/dev/disk/by-uuid/0000294D000006E6";
fsType = "ntfs-3g";
options = [
"rw"
"uid=1000"
"gid=100"
"umask=022"
];
};
}
"/mnt/waydroid" = {
device = "/home/asakiyuki/.local/share/waydroid/data/media/0";
fsType = "fuse.bindfs";
options = [
"mirror=1000"
"xattr-none"
"chmod-ignore"
];
};
};
}