From 1836cfe01a6eed18bd91288407bb0e375d183bde Mon Sep 17 00:00:00 2001 From: LRFLEW Date: Mon, 9 Nov 2026 23:09:39 -0600 Subject: [PATCH 1/2] Fix NixOS daemon build inputs NixOS/nixpkgs#537108 necessitates adding libgit2 as a build input --- flake.lock | 6 +++--- packaging/nix/packages/frameworkd.nix | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 12b201d..14c839e 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1790822859, - "narHash": "sha256-69xHQhAeMAD2wDXO7T2pcOZIF9Sga2W+JkmY2a11Ops=", + "lastModified": 1794042290, + "narHash": "sha256-ziZn2PvCJE5JEEpqTdxXwJpPB+L3YqoCpTAMCzyaP3U=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c59305bab2065cfecc4944690d9eedbb56f3a9fa", + "rev": "f4a03c008967841f2a0b3cb7c436fc6fc31671f6", "type": "github" }, "original": { diff --git a/packaging/nix/packages/frameworkd.nix b/packaging/nix/packages/frameworkd.nix index 59d38ff..73403ac 100644 --- a/packaging/nix/packages/frameworkd.nix +++ b/packaging/nix/packages/frameworkd.nix @@ -2,6 +2,7 @@ lib, pkg-config, rustPlatform, + libgit2, udev, version, @@ -23,7 +24,10 @@ rustPlatform.buildRustPackage { }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ udev ]; + buildInputs = [ + libgit2 + udev + ]; meta = { description = "DBus daemon for framework configuration"; From ce8b5e8f4fae4cee78d9dc9a0ece213d718afa32 Mon Sep 17 00:00:00 2001 From: LRFLEW Date: Mon, 9 Nov 2026 23:23:13 -0600 Subject: [PATCH 2/2] Update NixOS instructions for nixpkgs inclusion --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 63df443..618dec5 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,28 @@ $ sudo systemctl disable --now frameworkd $ tar -tzf framework-kcm--x86_64.tar.gz | grep -v '/$' | sed 's|^|/|' | sudo xargs rm -f ``` +### NixOS (nixpkgs) + +As of NixOS 26.11 or Unstable, this project is included in nixpkgs directly. +You can enable the program by adding `programs.framework-settings.enable = true;` +to your `configuration.nix`. + +To install only the standalone GUI without the KCM, override the +`framework-settings` package in your `configuration.nix` with +`withKcm = false`: + +```nix +programs.framework-settings.package = pkgs.framework-settings.override { + withGui = true; + withKcm = false; +}; +``` + +If you wish to receive faster updates, or are running an older version of NixOS, +you can use either the Flakes or nix-channel method below to install this +program instead. Note that if you use this method, you will need to compile +the project locally. + ### NixOS (Flakes) This project can be used by adding this repository as a flakes input @@ -116,7 +138,11 @@ release; use `main` instead for development builds. Below is a basic modules = [ ./hardware-configuration.nix framework-settings.nixosModules.framework-settings - { programs.framework-settings.enable = true; } + { + programs.framework-settings.enable = true; + # disable the nixpkgs version if present + disabledModules = [ "programs/framework-settings.nix" ]; + } # rest of your system configuration here. ]; }; @@ -164,6 +190,8 @@ in framework-settings.nixosModules.framework-settings ]; programs.framework-settings.enable = true; + # disable the nixpkgs version if present + disabledModules = [ "programs/framework-settings.nix" ]; # rest of your system configuration here. } ```