summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
committeradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
commit791bc419b6dac7c70951981ef6b34cdf85828470 (patch)
tree56d0962fdf829ae942feb1344763e54dbc3c89a3 /flake.nix
parente60410393cea222b16743a1a87f29c06b9b3543b (diff)
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix22
1 files changed, 13 insertions, 9 deletions
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;
+ };
};
};
}