From 791bc419b6dac7c70951981ef6b34cdf85828470 Mon Sep 17 00:00:00 2001 From: adikro Date: Sat, 20 Dec 2025 03:14:45 +0100 Subject: absolutely massive rewrite, made (almost) everything modular with changes to come --- flake.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5c4d28f..c4f4415 100644 --- a/flake.nix +++ b/flake.nix @@ -2,11 +2,8 @@ description = "nixconfig"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05"; - chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; home-manager = { @@ -65,14 +62,17 @@ }; }; - outputs = inputs @{ - nixpkgs, - ... - }: let + outputs = inputs @ { nixpkgs, ... }: + let + username = "adam"; mkHost = { hostname, path }: nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; - modules = [ path ]; + specialArgs = { inherit inputs username; }; + modules = [ + path + inputs.chaotic.nixosModules.default + { networking.hostName = hostname; } + ]; }; in { nixosConfigurations = { @@ -80,6 +80,10 @@ hostname = "szpont"; path = ./hosts/desktop/configuration.nix; }; + laptop = mkHost { + hostname = "laptop"; + path = ./hosts/laptop/configuration.nix; + }; }; }; } -- cgit v1.3