Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,28 @@ $ sudo systemctl disable --now frameworkd
$ tar -tzf framework-kcm-<version>-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
Expand All @@ -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.
];
};
Expand Down Expand Up @@ -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.
}
```
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion packaging/nix/packages/frameworkd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
pkg-config,
rustPlatform,
libgit2,
udev,

version,
Expand All @@ -23,7 +24,10 @@ rustPlatform.buildRustPackage {
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ udev ];
buildInputs = [
libgit2
udev
];

meta = {
description = "DBus daemon for framework configuration";
Expand Down
Loading