aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--[-rwxr-xr-x]flake.nix43
1 files changed, 34 insertions, 9 deletions
diff --git a/flake.nix b/flake.nix
index abcef04..cde03f8 100755..100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,24 +7,49 @@
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
+ lix-module = {
+ url = "https://git.lix.systems/lix-project/nixos-module/archive/latest.tar.gz";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
};
- outputs = { self, nixpkgs, home-manager, ... }@inputs: {
+ outputs = {
+ self,
+ nixpkgs,
+ home-manager,
+ lix-module,
+ ...
+ } @ inputs:
+ # ← let goes here
+ let
+ hmModule = {
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ home-manager.users.mun = import ./mun.nix;
+ };
+ in {
nixosConfigurations = {
kronos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
- specialArgs = { inherit inputs; };
+ specialArgs = {inherit inputs;};
modules = [
+ lix-module.nixosModules.default
./configuration.nix
home-manager.nixosModules.home-manager
- {
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
-
- home-manager.users.mun = import ./mun.nix;
- }
+ hmModule # ← use shared module
+ ];
+ };
+
+ herra = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ specialArgs = {inherit inputs;};
+ modules = [
+ lix-module.nixosModules.default
+ ./hosts/herra/configuration.nix
+ home-manager.nixosModules.home-manager
+ hmModule
];
};
- };
+ };
};
}