From 66188ac1f4cd47f42a62875eba1ac4acf7a29d2e Mon Sep 17 00:00:00 2001 From: Serenity-F Date: Mon, 8 Apr 2024 23:54:00 +1000 Subject: [PATCH] updated: flake.nix to latest changes in hyprland branch --- flake.nix | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 3 deletions(-) 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 + ]; + }; + + }; + + }; +} +