introduce IdeaPad to nix flake

This commit is contained in:
k3t
2026-06-15 07:52:21 -06:00
parent dedfaf4d1a
commit 2332e9f2a3
4 changed files with 60 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
networking.hostName = "IdeaPad";
#users.users.k3t = {
# packages = with pkgs; [
# ];
#};
}
+33
View File
@@ -0,0 +1,33 @@
# 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 = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-label/NixOS";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/EFI";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-label/Swap"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+7 -2
View File
@@ -10,12 +10,17 @@
cups-pdf-to-pdf
gutenprint-bin
canon-cups-ufr2
cnijfilter2
];
};
hardware.sane = {
enable = true;
extraBackends = [ pkgs.sane-airscan pkgs.sane-pixma ];
extraBackends = [ pkgs.sane-airscan pkgs.cnijfilter2 pkgs.sane-backends ];
};
services.udev.packages = [ pkgs.sane-airscan pkgs.sane-pixma ];
services.udev.packages = [ pkgs.sane-airscan pkgs.cnijfilter2 pkgs.sane-backends ];
services.ipp-usb.enable=true;
environment.systemPackages = with pkgs; [
kdePackages.skanlite
sane-frontends
];
}
+1 -1
View File
@@ -9,6 +9,6 @@
boot.loader.limine.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "v4l2loopback" "i915" "amdgpu" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "i915" "amdgpu" ];
boot.kernelModules = [ "v4l2loopback" ];
}