Skip to content

Commit

Permalink
Integrate Chaotic's Nyx for bleeding-edge and unreleased packages
Browse files Browse the repository at this point in the history
  • Loading branch information
foofrog committed Jun 27, 2024
1 parent e78e2bd commit 33761f4
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -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 <commmand>` command rather than `nix-<something>` commmands if flake setup exists
Prefer `nix <commmand>` commands rather than `nix-<something>` 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:
Expand All @@ -35,6 +38,7 @@ Prefer `nix <commmand>` command rather than `nix-<something>` commmands if flake
outputs = {
nixpkgs,
home-manager,
nyxpkgs,
...
}: {
nixosConfigurations = {
Expand All @@ -43,6 +47,9 @@ Prefer `nix <commmand>` command rather than `nix-<something>` 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
Expand Down

0 comments on commit 33761f4

Please sign in to comment.