diff --git a/flake.nix b/flake.nix index 9c33c0e..2d07e53 100644 --- a/flake.nix +++ b/flake.nix @@ -1,20 +1,23 @@ /* INFO: -`flake.lock` file in the current directory captures the version of dependencies and locks them -This is important for reproducibility in deploying Nix installations throughout multiple hosts +`./flake.lock` file captures dependency versions and locks them +It's important for consistent deployment of Nix across multiple hosts -To learn about flakes and flake schema, refer to https://nixos.wiki/wiki/Flakes +https://nixos.wiki/wiki/Flakes NOTE: -Prefer `nix ` command rather than `nix-` commmands if flake setup exists +Prefer `nix ` commands rather than `nix-` commmands if flake setup exists */ { - description = "Foo the Frog's NixOS and Home Manager configuration flake"; + description = "Foo the Frog's Nix flake"; # Specify dependencies in `inputs` attribute inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + # INFO: Nix flake for "too much bleeding-edge" and unreleased packages + nyxpkgs.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; + home-manager = { /* INFO: @@ -35,6 +38,7 @@ Prefer `nix ` command rather than `nix-` commmands if flake outputs = { nixpkgs, home-manager, + nyxpkgs, ... }: { nixosConfigurations = { @@ -43,6 +47,9 @@ Prefer `nix ` command rather than `nix-` commmands if flake modules = [ ./hosts/foobar/systemwide.nix + # Deploy default Chaotic-Nyx module + nyxpkgs.nixosModules.default + /* INFO: Including Home Manager as a module automatically deploys it during rebuild