## NixOS Flakes Installation
`flake.nix`
```nix
{
inputs = {
# other inputs
nixos-conf-editor.url = "github:snowfallorg/nixos-conf-editor";
# rest of flake.nix
```
`configuration.nix`
```nix
environment.systemPackages = with pkgs; [
inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
# 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
nixos-conf-editor = import (pkgs.fetchFromGitHub {
owner = "snowfallorg";
repo = "nixos-conf-editor";
rev = "0.1.2";
sha256 = "sha256-/ktLbmF1pU3vFHeGooDYswJipNE2YINm0WpF9Wd1gw8=";
});
in
```
Packages:
```nix
environment.systemPackages =
with pkgs; [
nixos-conf-editor.packages.${stdenv.hostPlatform.system}.nixos-conf-editor
# rest of your packages
];
```
For any other method of installation, when rebuilding you will be prompted to authenticate twice in a row
## 'nix profile' installation
```bash
nix profile install github:snowfallorg/nixos-conf-editor
```
## 'nix-env' Installation
```bash
git clone https://github.com/snowfallorg/nixos-conf-editor
nix-env -f nixos-conf-editor -i nixos-conf-editor
```
## Single run on an flakes enabled system:
```bash
nix run github:snowfallorg/nixos-conf-editor
```
## Single run on non-flakes enabled system:
```bash
nix --extra-experimental-features "nix-command flakes" run github:snowfallorg/nixos-conf-editor
```
## Debugging
```bash
RUST_LOG=nixos_conf_editor=trace nixos-conf-editor
```
# Screenshots