NixOS
Install Sweets with its NixOS module or build a local package
Add Sweets to your system flake and import its module:
{
inputs.sweets = {
url = "github:naurissteins/Sweets/main";
inputs.nixpkgs.follows = "nixpkgs";
};
# Add these modules to your existing nixosSystem modules list.
# sweets is the input argument from your flake's outputs function.
outputs = { nixpkgs, sweets, ... }: {
nixosConfigurations.yourHost = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
sweets.nixosModules.default
{ programs.sweets.enable = true; }
];
};
};
}Replace yourHost with your host name and set system for your platform.
main is the stable branch. To follow development instead, use
github:naurissteins/Sweets/unstable. It gets changes first and can break.
The module installs Sweets, login-session entries, the session target and portal preferences. It enables graphics, XWayland and polkit unless already configured.
Rebuild your system, then log out and select Sweets in your display manager. Choose Sweets (Debug Log) for detailed session logs. See Troubleshooting for where to find them.
Local checkout
From the Sweets source directory, build the package without activating it:
nix build
./result/bin/sweets --versionFor Cargo builds and checks, use the development shell with a stable rustup toolchain, rustfmt and Clippy installed:
nix develop
cargo build --release --locked --workspace --all-featuresThe shell supplies native libraries and development tools. New files in a Git
checkout must be tracked before Nix includes them. Use the NixOS module for
system installation; do not copy binaries into /usr.