This is my NixOS configuration files.
My configuration use nix flakes, so you just need to clone this repository without need to add new nix-channel or something else.
$ git clone https://github.com/irdaislakhuafa/nixos.git
$ cd ./nixosAfter you clone this repository and entering this repository with cd ./nixos make sure you have gnumake package installed.
This configuration is includes home-manager configurations and nixos configurations.
home-manager: home manager configuration is on./home-managerdirectory.nixos: nixos configration in onsrcdirectory.
For usage or how to apply this configuration you can use command below.
-
home-manager$ make flake-home-switch
-
nixosif you use
doasinstead ofsudo.$ doas make flake-build-switch
if you use
sudoinstead ofdoas.$ sudo make flake-build-switch
if you got error like
"Current user is not owner of this repository", you need to add this repository as safe directory with commands below.$ doas git config --global --add --safe.directory $(pwd)pwdwill print current working directory, if you not on this repository directory you can change$(pwd)with path to this reposiroty directory like/home/$USERNAME/nixos.if all problem is gone, then try to run command
doas make flake-build-swithagain or replacedoaswithsudoif you usesudo.