A collection of configuration modules for NixOS.
-
Have root access in NixOS (works in WSL)
-
Clone this repo into
/etc/:git clone git@github.com:NTARelix/nixos-modules /etc/nixos-modules
-
Import the repo and add the modules that you want to use:
# /etc/nixos/configuration.nix { pkgs, ... }: let shared-modules = import /etc/nixos-modules; in { imports = [ # Uncomment the modules below that you want. # Each module has a corresponding file in ./modules. # You can find each module's docs in their file. # shared-modules.editor # shared-modules.git # shared-modules.shell # shared-modules.oci # shared-modules.azure-cli # shared-modules.terraform-cli ]; }
-
Rebuild NixOS with the new configuration:
sudo nixos-rebuild switch