diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /flake.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -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; + }; }; }; } |
