From 4abb25ea7d3876899e641a8a16281203bd164d53 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sat, 23 Sep 2023 15:41:49 -0400 Subject: initial config for all 3 systems --- housemaker.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 housemaker.nix (limited to 'housemaker.nix') diff --git a/housemaker.nix b/housemaker.nix new file mode 100644 index 0000000..973507c --- /dev/null +++ b/housemaker.nix @@ -0,0 +1,27 @@ +{ inputs, outputs, stateVersion, ... }: +{ + newhome = { nixpkgs, overlays, hostname, username, platform }: inputs.home-manager.lib.homeManagerConfiguration { + pkgs = inputs.nixpkgs.legacyPackages.${platform}; + extraSpecialArgs = { + inherit inputs outputs hostname platform username stateVersion overlays; + }; + modules = [ + { nixpkgs.overlays = overlays; } + ./home/${username}/home.nix + ]; + }; + + newhost = { nixpkgs, overlays, hostname, username }: inputs.nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs outputs hostname username stateVersion overlays; + }; + modules = [ + { nixpkgs.overlays = overlays; } + ./systems + ]; + }; + + forAllSystems = inputs.nixpkgs.lib.genAttrs [ + "x86_64-linux" + ]; +} -- cgit v1.2.1