Compare commits
6 Commits
ab8f6a1d58
...
0e4ba6611a
Author | SHA1 | Date |
---|---|---|
coolneng | 0e4ba6611a | |
coolneng | 27bbdaecea | |
coolneng | 343ff19fef | |
coolneng | 44d9056c05 | |
coolneng | 1b596db2c0 | |
coolneng | bfa9147a41 |
|
@ -2,9 +2,7 @@
|
|||
|
||||
with pkgs;
|
||||
|
||||
let hybrid-codec-vaapiIntel = vaapiIntel.override { enableHybridCodec = true; };
|
||||
|
||||
in {
|
||||
{
|
||||
# Kernel configuration
|
||||
boot = {
|
||||
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
|
@ -31,9 +29,7 @@ in {
|
|||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
services.fwupd.enable = true;
|
||||
|
||||
# GPU Hardware acceleration
|
||||
hardware.opengl.extraPackages =
|
||||
[ intel-media-driver hybrid-codec-vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
||||
hardware.opengl.extraPackages = [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
||||
|
||||
# Bootloader configuration
|
||||
boot.loader = {
|
||||
|
|
|
@ -5,12 +5,6 @@ with pkgs;
|
|||
let
|
||||
# HACK Replace youtube-dl with yt-dlp in mopidy-youtube
|
||||
mopidy-youtube-yt_dlp = mopidy-youtube.overrideAttrs (old: rec {
|
||||
src = python3Packages.fetchPypi {
|
||||
version = "3.6";
|
||||
pname = "Mopidy-YouTube";
|
||||
sha256 = "sha256-92tJpCu0S79Z1yYaQUnNMxN1rD+8Wr0rtt4GVnldZ9A=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = old.propagatedBuildInputs
|
||||
++ [ python3.pkgs.yt-dlp ];
|
||||
});
|
||||
|
|
|
@ -14,16 +14,14 @@ let
|
|||
|
||||
in {
|
||||
# Display manager
|
||||
services.xserver.enable = true;
|
||||
services.xserver.displayManager = {
|
||||
defaultSession = "sway";
|
||||
autoLogin = {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
initial_session = {
|
||||
command = "${sway}/bin/sway";
|
||||
user = "coolneng";
|
||||
};
|
||||
lightdm = {
|
||||
enable = true;
|
||||
greeter.enable = false;
|
||||
default_session = initial_session;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -5,7 +5,27 @@
|
|||
services.auto-cpufreq.enable = true;
|
||||
|
||||
# Enable the TLP daemon
|
||||
services.tlp.enable = true;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
|
||||
# A value of 0 disables, >=1 enables power saving (recommended: 1).
|
||||
# Default: 0 (AC), 1 (BAT)
|
||||
SOUND_POWER_SAVE_ON_AC = 0;
|
||||
SOUND_POWER_SAVE_ON_BAT = 1;
|
||||
|
||||
# Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
|
||||
# Default: on (AC), auto (BAT)
|
||||
RUNTIME_PM_ON_AC = "on";
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
|
||||
# Battery feature drivers: 0=disable, 1=enable
|
||||
# Default: 1 (all)
|
||||
NATACPI_ENABLE = 1;
|
||||
TPACPI_ENABLE = 1;
|
||||
TPSMAPI_ENABLE = 1;
|
||||
};
|
||||
};
|
||||
|
||||
# Suspend when the battery is critical
|
||||
services.udev.extraRules = ''
|
||||
|
|
|
@ -24,7 +24,7 @@ in {
|
|||
inputs.agenix.defaultPackage.x86_64-linux
|
||||
git-crypt
|
||||
# Browsers
|
||||
firefox
|
||||
firefox-wayland
|
||||
ungoogled-chromium
|
||||
# LaTeX
|
||||
texlive.combined.scheme-full
|
||||
|
@ -49,7 +49,6 @@ in {
|
|||
nix-direnv
|
||||
gnumake
|
||||
gitAndTools.pre-commit
|
||||
delta
|
||||
# Rice
|
||||
adapta-gtk-theme
|
||||
paper-icon-theme
|
||||
|
|
Loading…
Reference in New Issue