From aaa31cf08870c28d83da6a57a6c29bf52a4ab74e Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Sun, 22 Mar 2026 18:20:09 +0100 Subject: Made some adjustments to allow for multiple configurations to exist under the flake --- flake.nix.bak | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 flake.nix.bak (limited to 'flake.nix.bak') diff --git a/flake.nix.bak b/flake.nix.bak new file mode 100755 index 0000000..ade56b2 --- /dev/null +++ b/flake.nix.bak @@ -0,0 +1,46 @@ +{ + description = "A very basic flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + home-manager = { + url = "github:nix-community/home-manager/release-25.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, home-manager, ... }@inputs: { + 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; }; + modules = [ + ./configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + + home-manager.users.mun = import ./mun.nix; + } + ]; + }; + herra = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/herra/configuration.nix + home-manager.nixosModules.home-manager + hmModule + ]; + }; + }; + }; +} -- cgit v1.2.3