introduce IdeaPad to nix flake
This commit is contained in:
@@ -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; [
|
||||||
|
# ];
|
||||||
|
#};
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -10,12 +10,17 @@
|
|||||||
cups-pdf-to-pdf
|
cups-pdf-to-pdf
|
||||||
gutenprint-bin
|
gutenprint-bin
|
||||||
canon-cups-ufr2
|
canon-cups-ufr2
|
||||||
|
cnijfilter2
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
hardware.sane = {
|
hardware.sane = {
|
||||||
enable = true;
|
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;
|
services.ipp-usb.enable=true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kdePackages.skanlite
|
||||||
|
sane-frontends
|
||||||
|
];
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,6 @@
|
|||||||
boot.loader.limine.enable = true;
|
boot.loader.limine.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.extraModulePackages = [ ];
|
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" ];
|
boot.kernelModules = [ "v4l2loopback" ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user