diff --git a/flake.nix b/flake.nix index 222316c..0197e59 100644 --- a/flake.nix +++ b/flake.nix @@ -5,9 +5,7 @@ # Nixpkgs and hardware specific configs - # there was a way to have unstable as an overlay, - # will set it back up, lazy rn, for now pick one - # nixpkgs.url = "nixpkgs/nixos-23.11"; + nixpkgs.url = "nixpkgs/nixos-unstable"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; @@ -34,3 +32,66 @@ }; } + +{ + description = "SerenityOS v0.3.61"; + + inputs = { + + # Nixpkgs + # there was a way to have unstable as an overlay, + # will set it back up, lazy rn, for now pick one + # nixpkgs.url = "nixpkgs/nixos-23.11"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + hardware.url = "github:nixos/nixos-hardware"; + + # declarative disks + disko = { + url = "github:nix-community/disko"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + # declarative dots + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + }; + + outputs = { + self, + hardware, + disko, + nixpkgs, + home-manager, + ... + } @ inputs: let + inherit (self) outputs; + in { + # Available through 'nixos-rebuild --flake .#your-hostname' + nixosConfigurations = { + + proserpina = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs outputs;}; + # > Our main nixos configuration files < + modules = [ + disko.nixosModules.disko + ./hosts/proserpina/configuration.nix + ]; + }; + + hades = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs outputs;}; + # > Our main nixos configuration files < + modules = [ + disko.nixosModules.disko + ./hosts/proserpina/configuration.nix + ]; + }; + + }; + + }; +} +