From 7d040f8f8a2712a40da61a83ba42fee3bb6ed85f Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 5 Aug 2025 21:29:34 -0600 Subject: [PATCH 1/4] flake: export nixosModules and homeManagerModules --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 29664c3..6338db1 100644 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,9 @@ trivium = overlay; }; + homeManagerModules.default = ./hm; + hm.default = ./nixos; + lib = { mkSystemFlake = { flakes, @@ -151,7 +154,7 @@ hostConfig = platform: nixosSystem { modules = [ - ./nixos + self.nixosModules.default nixosSourcePath platform ]; @@ -177,7 +180,7 @@ }; modules = [ - ./hm + self.homeManagerModules.default hmSourcePath platform registry From f89c11b7b300e69e88c419dcdc50a6d791559cf9 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 5 Aug 2025 21:35:18 -0600 Subject: [PATCH 2/4] flake: add nixpkgs input url --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6338db1..2f411f1 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,8 @@ { - inputs.flake-utils.url = "github:numtide/flake-utils"; + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; + }; outputs = { self, From cfdf227b9cf1f02512d2e9fe6f28e27e48e0804c Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 5 Aug 2025 21:29:34 -0600 Subject: [PATCH 3/4] flake: export nixosModules and homeManagerModules --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 29664c3..a18f2c7 100644 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,9 @@ trivium = overlay; }; + homeManagerModules.default = ./hm; + nixosModules.default = ./nixos; + lib = { mkSystemFlake = { flakes, @@ -151,7 +154,7 @@ hostConfig = platform: nixosSystem { modules = [ - ./nixos + self.nixosModules.default nixosSourcePath platform ]; @@ -177,7 +180,7 @@ }; modules = [ - ./hm + self.homeManagerModules.default hmSourcePath platform registry From 98ad20baca061b785002067d4a1b67a86481fd29 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 5 Aug 2025 21:35:18 -0600 Subject: [PATCH 4/4] flake: add nixpkgs input url --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a18f2c7..173766d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,8 @@ { - inputs.flake-utils.url = "github:numtide/flake-utils"; + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; + }; outputs = { self,