snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
601 stars 19 forks source link
gtk4 libadwaita nix nixos
Nix Software Center === [![Built with Nix][builtwithnix badge]][builtwithnix] [![License: GPLv3][GPLv3 badge]][GPLv3] [![Chat on Matrix][matrix badge]][matrix] [![Chat on Discord][discord badge]][discord] A graphical app store for Nix built with [libadwaita](https://gitlab.gnome.org/GNOME/libadwaita), [GTK4](https://www.gtk.org/), and [Relm4](https://relm4.org/). Heavily inspired by [GNOME Software](https://gitlab.gnome.org/GNOME/gnome-software).

Features

NixOS Flakes Installation

flake.nix

{
  inputs = {
    # other inputs
    nix-software-center.url = "github:snowfallorg/nix-software-center";
# rest of flake.nix

configuration.nix

environment.systemPackages = with pkgs; [
    inputs.nix-software-center.packages.${system}.nix-software-center
    # rest of your packages
];

NixOS Installation

Head of configuration.nix

if you are on unstable channel or any version after 22.11:

{ config, pkgs, lib, ... }:
let
  nix-software-center = import (pkgs.fetchFromGitHub {
    owner = "snowfallorg";
    repo = "nix-software-center";
    rev = "0.1.2";
    sha256 = "xiqF1mP8wFubdsAQ1BmfjzCgOD3YZf7EGWl9i69FTls=";
  }) {};
in

...

environment.systemPackages =
with pkgs; [
  nix-software-center
  # rest of your packages
];

For any other method of installation, when rebuilding you might be prompted to authenticate twice in a row by pkexec

'nix profile' installation

nix profile install github:snowfallorg/nix-software-center

'nix-env' Installation

git clone https://github.com/snowfallorg/nix-software-center
nix-env -f nix-software-center -i nix-software-center

Single run on an flakes enabled system:

nix run github:snowfallorg/nix-software-center

Single run on non-flakes enabled system:

nix --extra-experimental-features "nix-command flakes" run github:snowfallorg/nix-software-center

Debugging

RUST_LOG=nix_software_center=trace nix-software-center

Screenshots

Licenses

Some icons in data/icons contains assets from the NixOS logo and are licensed under a CC-BY license.

Some icons in data/icons contains assets from GNOME Software and are licensed under CC0-1.0.