Compare commits
7 Commits
0e4ba6611a
...
ab8f6a1d58
Author | SHA1 | Date |
---|---|---|
coolneng | ab8f6a1d58 | |
coolneng | f78b6303b9 | |
coolneng | 58f36e85e7 | |
coolneng | 9bf57ae6e2 | |
coolneng | 8fcc638011 | |
coolneng | 492f6ef3b9 | |
coolneng | 5b0dbeb0b5 |
|
@ -2,16 +2,13 @@
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
let hybrid-codec-vaapiIntel = vaapiIntel.override { enableHybridCodec = true; };
|
{
|
||||||
|
|
||||||
in {
|
|
||||||
# Kernel configuration
|
# Kernel configuration
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"zfs.zfs_arc_max=1073741824"
|
"zfs.zfs_arc_max=1073741824"
|
||||||
"zfs.zfs_arc_meta_limit_percent=90"
|
"zfs.zfs_arc_meta_limit_percent=90"
|
||||||
"i915.i915_enable_fbc=1"
|
|
||||||
"workqueue.power_efficient=y"
|
"workqueue.power_efficient=y"
|
||||||
"nohibernate"
|
"nohibernate"
|
||||||
"ipv6.disable=1"
|
"ipv6.disable=1"
|
||||||
|
@ -31,9 +28,7 @@ in {
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
# GPU Hardware acceleration
|
hardware.opengl.extraPackages = [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
||||||
hardware.opengl.extraPackages =
|
|
||||||
[ intel-media-driver hybrid-codec-vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
|
||||||
|
|
||||||
# Bootloader configuration
|
# Bootloader configuration
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -38,11 +38,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665940183,
|
"lastModified": 1666109165,
|
||||||
"narHash": "sha256-cPe3F7CtnxU9YbJpc3Adl4d9kX+turqTv5FxM98i8vg=",
|
"narHash": "sha256-BMLyNVkr0oONuq3lKlFCRVuYqF75CO68Z8EoCh81Zdk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "104e8082de1b20f9d0e1f05b1028795ed0e0e4bc",
|
"rev": "32096899af23d49010bd8cf6a91695888d9d9e73",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -5,12 +5,6 @@ with pkgs;
|
||||||
let
|
let
|
||||||
# HACK Replace youtube-dl with yt-dlp in mopidy-youtube
|
# HACK Replace youtube-dl with yt-dlp in mopidy-youtube
|
||||||
mopidy-youtube-yt_dlp = mopidy-youtube.overrideAttrs (old: rec {
|
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
|
propagatedBuildInputs = old.propagatedBuildInputs
|
||||||
++ [ python3.pkgs.yt-dlp ];
|
++ [ python3.pkgs.yt-dlp ];
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,16 +14,14 @@ let
|
||||||
|
|
||||||
in {
|
in {
|
||||||
# Display manager
|
# Display manager
|
||||||
services.xserver.enable = true;
|
services.greetd = {
|
||||||
services.xserver.displayManager = {
|
|
||||||
defaultSession = "sway";
|
|
||||||
autoLogin = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = rec {
|
||||||
|
initial_session = {
|
||||||
|
command = "${sway}/bin/sway";
|
||||||
user = "coolneng";
|
user = "coolneng";
|
||||||
};
|
};
|
||||||
lightdm = {
|
default_session = initial_session;
|
||||||
enable = true;
|
|
||||||
greeter.enable = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,27 @@
|
||||||
services.auto-cpufreq.enable = true;
|
services.auto-cpufreq.enable = true;
|
||||||
|
|
||||||
# Enable the TLP daemon
|
# 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
|
# Suspend when the battery is critical
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
|
|
|
@ -24,7 +24,7 @@ in {
|
||||||
inputs.agenix.defaultPackage.x86_64-linux
|
inputs.agenix.defaultPackage.x86_64-linux
|
||||||
git-crypt
|
git-crypt
|
||||||
# Browsers
|
# Browsers
|
||||||
firefox
|
firefox-wayland
|
||||||
ungoogled-chromium
|
ungoogled-chromium
|
||||||
# LaTeX
|
# LaTeX
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
|
@ -49,7 +49,6 @@ in {
|
||||||
nix-direnv
|
nix-direnv
|
||||||
gnumake
|
gnumake
|
||||||
gitAndTools.pre-commit
|
gitAndTools.pre-commit
|
||||||
delta
|
|
||||||
# Rice
|
# Rice
|
||||||
adapta-gtk-theme
|
adapta-gtk-theme
|
||||||
paper-icon-theme
|
paper-icon-theme
|
||||||
|
|
Loading…
Reference in New Issue