diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
commit | 4ea08b3976188eb01a74548d68b227a7794b4caa (patch) | |
tree | 505c0df98ed00ed592be15895b8ed3eb7aa9e2c3 /modules/overlays | |
download | nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.tar.gz nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.zip |
Add current configuration
Diffstat (limited to 'modules/overlays')
-rw-r--r-- | modules/overlays/default.nix | 8 | ||||
-rw-r--r-- | modules/overlays/emacs.nix | 25 | ||||
-rw-r--r-- | modules/overlays/g45_h264.nix | 25 |
3 files changed, 58 insertions, 0 deletions
diff --git a/modules/overlays/default.nix b/modules/overlays/default.nix new file mode 100644 index 0000000..60253ca --- /dev/null +++ b/modules/overlays/default.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + imports = [ + ./emacs.nix + ./g45_h264.nix + ]; +} diff --git a/modules/overlays/emacs.nix b/modules/overlays/emacs.nix new file mode 100644 index 0000000..7ed9658 --- /dev/null +++ b/modules/overlays/emacs.nix @@ -0,0 +1,25 @@ +{ lib, config, ... }: + +{ + options = { + this.overlays.emacs.enable = lib.mkEnableOption "custom-built Emacs overlay"; + }; + + config = lib.mkIf config.this.overlays.emacs.enable { + nixpkgs.overlays = [ + (final: prev: { + emacs = (prev.emacs.override { + withNativeCompilation = false; + withXwidgets = false; + withX = true; + withGTK3 = false; + withAthena = false; + }).overrideAttrs (attrs: with builtins; with attrs; { + configureFlags = filter (f: !elem f + ["--with-x-toolkit=lucid" "--with-toolkit-scroll-bars"]) + configureFlags ++ ["--with-x-toolkit=no" "--without-toolkit-scroll-bars"]; + }); + }) + ]; + }; +} diff --git a/modules/overlays/g45_h264.nix b/modules/overlays/g45_h264.nix new file mode 100644 index 0000000..9df5ae1 --- /dev/null +++ b/modules/overlays/g45_h264.nix @@ -0,0 +1,25 @@ +{ lib, config, pkgs, ... }: + +{ + options = { + this.overlays.g45_h264.enable = lib.mkEnableOption "intel-vaapi-driver with h264 support on gm45"; + }; + + config = lib.mkIf config.this.overlays.g45_h264.enable { + nixpkgs.overlays = [ + (final: prev: { + intel-vaapi-driver = + prev.intel-vaapi-driver.overrideAttrs + (attrs: attrs // { + src = pkgs.fetchzip { + url = "https://bitbucket.org/alium/g45-h264/downloads/intel-driver-g45-h264-2.4.1.tar.gz"; + sha256 = "h23mQV7WdtQjhkpUlnyHcwVTz+T3BZSuqfuKru4LClo="; + name = "intel-driver-g45-h264-2.4.1-source"; + }; + version = "2.4.1-g45-h264"; + preBuild = "patchShebangs src"; + }); + }) + ]; + }; +} |