diff --git a/flake.lock b/flake.lock index b6b2ba6..67a5ce2 100644 --- a/flake.lock +++ b/flake.lock @@ -36,10 +36,27 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1775423009, + "narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "home-manager": "home-manager", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable" } } }, diff --git a/flake.nix b/flake.nix index cd4aa5b..0180abc 100644 --- a/flake.nix +++ b/flake.nix @@ -3,23 +3,41 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; }; - outputs = { self, nixpkgs, home-manager, ... }: { + outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }: { nixosConfigurations.Prometheus = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + + specialArgs = { + pkgs-unstable = import nixpkgs-unstable { + system = "x86_64-linux"; + config.allowUnfree = true; + }; + }; + modules = [ ./hosts/Prometheus/configuration.nix home-manager.nixosModules.home-manager ]; }; - + nixosConfigurations.Heracles = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + + specialArgs = { + pkgs-unstable = import nixpkgs-unstable { + system = "x86_64-linux"; + config.allowUnfree = true; + }; + }; + modules = [ ./hosts/Heracles/configuration.nix home-manager.nixosModules.home-manager diff --git a/modules/common.nix b/modules/common.nix index b4fa4d8..58f628e 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, pkgs-unstable, lib, ... }: { nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -78,6 +78,7 @@ hyprland = { enable = true; withUWSM = false; + package = pkgs-unstable.hyprland; xwayland.enable = true; };