mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: work on laptop and shell stuff
This commit is contained in:
parent
a4b63004fb
commit
1071288f6e
21 changed files with 165 additions and 38 deletions
8
nixos/hardware/amd.nix
Normal file
8
nixos/hardware/amd.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{config, ...}: {
|
||||
boot = {
|
||||
blacklistedKernelModules = ["k10temp"];
|
||||
extraModulePackages = [config.boot.kernelPackages.zenpower];
|
||||
kernelModules = ["zenpower"];
|
||||
};
|
||||
services.ucodenix.enable = true;
|
||||
}
|
||||
|
|
@ -1,7 +1,15 @@
|
|||
_: {
|
||||
{config, ...}: {
|
||||
# https://github.com/NixOS/nixos-hardware/issues/1581
|
||||
hardware.framework.enableKmod = false;
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
|
||||
};
|
||||
kernelModules = ["cros_ec" "cros_ec_lpcs"];
|
||||
extraModprobeConfig = "options snd_hda_intel power_save=0";
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
framework-laptop-kmod
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
4
nixos/hardware/framework/general.nix
Normal file
4
nixos/hardware/framework/general.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
_: {
|
||||
hardware.framework.laptop13.audioEnhancement.enable = true;
|
||||
services.ucodenix.cpuModelId = "00A70F41";
|
||||
}
|
||||
|
|
@ -7,6 +7,9 @@
|
|||
(with tree.nixos.profiles; [
|
||||
uefi
|
||||
])
|
||||
++ (with tree.nixos.hardware; [
|
||||
amd
|
||||
])
|
||||
++ [
|
||||
inputs.nixos-hardware.outputs.nixosModules.framework-13-7040-amd
|
||||
];
|
||||
|
|
|
|||
|
|
@ -2,5 +2,10 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
ida-pro-kat
|
||||
android-studio
|
||||
bingrep
|
||||
hexyl
|
||||
jwt-cli
|
||||
silicon
|
||||
tokei
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
enableVirtualCamera = true;
|
||||
|
|
|
|||
8
nixos/profiles/graphical/upower.nix
Normal file
8
nixos/profiles/graphical/upower.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
services.upower = {
|
||||
enable = true;
|
||||
};
|
||||
environment.systemPackages = [
|
||||
pkgs.acpi
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue