/nixfiles

A set of opinionated system configurations.

Primary LanguageNixMIT LicenseMIT

nixfiles

A set of opinionated configurations to both NixOS and nix-darwin. Home environment is managed with usertam/nixfiles-home.

Clone configuration

git clone git@github.com:usertam/nixfiles.git ~/Desktop/projects/nixfiles
cd ~/Desktop/projects/nixfiles

Build and activate configuration

NixOS

Use nixos-rebuild, or manually build and activate with nix.

nixos-rebuild switch --flake .#base.aarch64-linux
nix build .#nixosConfigurations.base.aarch64-linux.config.system.build.toplevel
result/bin/switch-to-configuration switch

nix-darwin

Use darwin-rebuild, or run two activation scripts.

darwin-rebuild switch --flake .#gale
nix build .#darwinConfigurations.gale.config.system.build.toplevel
result/activate-user && result/activate

Update flake.lock

nix flake update --commit-lock-file

License

This project is licensed under the MIT License. See LICENSE for more information.