I started this project as a web UI for Nix, but after my first blog post I had a lot of questions from you, what about the desktop application? So here it is.
There are two ways, the development version and from the nixpkgs. Both described below.
To get the code you will need git:
$ git clone https://github.com/matejc/nixui
$ cd nixui
If you do NOT use
to update, then modify config file 1
nix-channel
so that 1
./src/config.json
entry has 1
NIX_PATH
.1
nixpkgs=/path/to/your/nixpkgs
Mine looks like this:
{
"profilePaths": ["/nix/var/nix/profiles"],
"dataDir": "/tmp",
"configurations": ["/etc/nixos/configuration.nix"],
"NIX_PATH": "nixpkgs=/home/matej/workarea/nixpkgs:nixos=/home/matej/workarea/nixpkgs/nixos:nixos-config=/etc/nixos/configuration.nix:services=/etc/nixos/services"
}
Then build and run NixUI with following command, you will need
and 1
gnumake
for this:1
nix
$ make just-run-it
Again, if you do NOT use
to update, then make sure that 1
nix-channel
entry has 1
config.nixui.NIX_PATH
.
In your main configuration nix file add the line 1
nixpkgs=/path/to/your/nixpkgs
, OR in user config add this line to 1
nixpkgs.config.nixui.NIX_PATH="nixpkgs=/path/to/your/nixpkgs";
: 1
~/.nixpkgs/config.nix
.1
nixui.NIX_PATH="nixpkgs=/path/to/your/nixpkgs";
Install it like any other package, like so:
$ nix-env -iA pkgs.nixui
Warning: at the time of writing this blog post, the
package was NOT yet in unstable channel, but was merged into master, therefore it is only a matter of time when it will be available.1
nixui
In the near future, bug fixes and after NixUI gets stable enough and I get some money from other projects, I will start on Nix configuration editing.