mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 15:53:55 -05:00
fallarbor, lavaridge: partial migration to nixhw
This commit is contained in:
parent
6b7f0f5591
commit
7db2c7a510
21
flake.lock
21
flake.lock
|
@ -472,6 +472,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixhw": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1720299715,
|
||||
"narHash": "sha256-VezUOQZnluy6lahyxOo2W55kGsyh7AhfiF1/NAwdYgM=",
|
||||
"owner": "alyraffauf",
|
||||
"repo": "nixhw",
|
||||
"rev": "03c553f3acd2339f034dc67e8d37505b2e32925e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "alyraffauf",
|
||||
"repo": "nixhw",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1719075281,
|
||||
|
@ -590,6 +610,7 @@
|
|||
"home-manager": "home-manager_2",
|
||||
"hyprland": "hyprland",
|
||||
"iio-hyprland": "iio-hyprland",
|
||||
"nixhw": "nixhw",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgsUnstable": "nixpkgsUnstable",
|
||||
"nixvim": "nixvim",
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
iio-hyprland.url = "github:JeanSchoeller/iio-hyprland";
|
||||
nixhw.url = "github:alyraffauf/nixhw";
|
||||
nixvim.url = "github:nix-community/nixvim/nixos-24.05";
|
||||
nur.url = github:nix-community/NUR;
|
||||
raffauflabs.url = "github:alyraffauf/raffauflabs";
|
||||
|
@ -19,6 +20,7 @@
|
|||
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
iio-hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixhw.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||
raffauflabs.inputs.nixpkgs.follows = "nixpkgs";
|
||||
wallpapers.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
@ -9,10 +9,15 @@
|
|||
}: {
|
||||
imports = [
|
||||
./disko.nix
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
inputs.nixhw.nixosModules.framework-13-intel-11th
|
||||
];
|
||||
|
||||
ar.hardware = {
|
||||
enable = true;
|
||||
sound = true;
|
||||
};
|
||||
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
blacklistedKernelModules = ["cros-usbpd-charger"];
|
||||
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
framework-laptop-kmod
|
||||
];
|
||||
|
||||
initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
|
||||
|
||||
kernelModules = [
|
||||
# https://github.com/DHowett/framework-laptop-kmod?tab=readme-ov-file#usage
|
||||
"cros_ec_lpcs"
|
||||
"cros_ec"
|
||||
];
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
kernelParams = [
|
||||
"nvme.noacpi=1" # https://community.frame.work/t/linux-battery-life-tuning/6665/156
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.framework-tool] ++ lib.optional (pkgs ? "fw-ectool") pkgs.fw-ectool;
|
||||
|
||||
hardware = {
|
||||
acpilight.enable = true;
|
||||
enableAllFirmware = true;
|
||||
sensor.iio.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
fprintd.enable = true;
|
||||
fwupd.enable = true;
|
||||
|
||||
udev.extraRules = ''
|
||||
# Ethernet expansion card support
|
||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
||||
'';
|
||||
};
|
||||
|
||||
ar.hardware = {
|
||||
enable = true;
|
||||
cpu.intel = true;
|
||||
gpu.intel = true;
|
||||
laptop = true;
|
||||
ssd = true;
|
||||
sound = true;
|
||||
};
|
||||
}
|
|
@ -9,10 +9,15 @@
|
|||
}: {
|
||||
imports = [
|
||||
./disko.nix
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
inputs.nixhw.nixosModules.framework-13-amd-7000
|
||||
];
|
||||
|
||||
ar.hardware = {
|
||||
enable = true;
|
||||
sound = true;
|
||||
};
|
||||
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
framework-laptop-kmod
|
||||
];
|
||||
|
||||
initrd.availableKernelModules = ["nvme" "sd_mod" "thunderbolt" "usb_storage" "xhci_pci"];
|
||||
|
||||
kernelModules = ["cros_ec" "cros_ec_lpcs"];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.framework-tool];
|
||||
|
||||
hardware = {
|
||||
enableAllFirmware = true;
|
||||
sensor.iio.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
fprintd.enable = true;
|
||||
fwupd.enable = true;
|
||||
|
||||
udev.extraRules = ''
|
||||
# Ethernet expansion card support
|
||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
||||
'';
|
||||
};
|
||||
|
||||
ar.hardware = {
|
||||
enable = true;
|
||||
cpu.amd = true;
|
||||
gpu.amd = true;
|
||||
laptop = true;
|
||||
ssd = true;
|
||||
sound = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue