# Features
- Install packages to `configuration.nix`
- Flakes support can be enabled in the preferences menu
- Install packages with `nix profile` or `nix-env`
- Show updates for all installed packages
- Search for packages
- Launch applications without installing via `nix-shell` and `nix run`
## NixOS Flakes Installation
`flake.nix`
```nix
{
inputs = {
# other inputs
nix-software-center.url = "github:vlinkz/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:
```nix
{ config, pkgs, lib, ... }:
let
nix-software-center = import (pkgs.fetchFromGitHub {
owner = "vlinkz";
repo = "nix-software-center";
rev = "0.1.1";
sha256 = "0frigabszyfkphfbsniaa1d546zm8a2gx0cqvk2fr2qfa71kd41n";
}) {};
in
```
if you are on 22.11:
```nix
{ config, pkgs, lib, ... }:
let
unstable = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
}) {config = config.nixpkgs.config;};
nix-software-center = import (pkgs.fetchFromGitHub {
owner = "vlinkz";
repo = "nix-software-center";
rev = "0.1.1";
sha256 = "0frigabszyfkphfbsniaa1d546zm8a2gx0cqvk2fr2qfa71kd41n";
}) {pkgs = unstable;};
in
```
Packages:
```nix
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
```bash
nix profile install github:vlinkz/nix-software-center
```
## 'nix-env' Installation
```bash
git clone https://github.com/vlinkz/nix-software-center
nix-env -f nix-software-center -i nix-software-center
```
## Single run on an flakes enabled system:
```bash
nix run github:vlinkz/nix-software-center
```
## Single run on non-flakes enabled system:
```bash
nix --extra-experimental-features "nix-command flakes" run github:vlinkz/nix-software-center
```
## Debugging
```bash
RUST_LOG=nix_software_center=trace nix-software-center
```
## Screenshots