diff --git a/flake.nix b/flake.nix index 380dadf..2acc0d7 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,9 @@ nixpkgs = { url = "github:nixos/nixpkgs/nixos-23.05"; }; + nixpkgs-unstable = { + url = "github:nixos/nixpkgs/nixos-unstable"; + }; flake-utils = { url = "github:numtide/flake-utils"; }; diff --git a/machines/dev.nix b/machines/dev.nix index f45d9a3..3993c9b 100644 --- a/machines/dev.nix +++ b/machines/dev.nix @@ -1,5 +1,5 @@ inputs: -{ pkgs, ... }: { +{ pkgs, pkgs-unstable, ... }: { environment.systemPackages = with pkgs; [ neovim vim @@ -27,7 +27,7 @@ inputs: direnv #idea.idea-community - jetbrains.idea-ultimate + unstable.jetbrains.idea-community dbeaver ]; diff --git a/machines/morpheus.nix b/machines/morpheus.nix index 2ef1b5a..2a262a0 100644 --- a/machines/morpheus.nix +++ b/machines/morpheus.nix @@ -3,11 +3,17 @@ let system = "x86_64-linux"; hostname = "morpheus"; swapUUID = "93bdadfc-961a-4ea6-aef0-d3cd50847f0b"; + overlay-unstable = final: prev: { + unstable = inputs.nixpkgs-unstable.legacyPackages.${prev.system}; + }; in inputs.nixpkgs.lib.nixosSystem { inherit system; modules = [ - { system.stateVersion = "22.05"; } + ({ config, pkgs, ... } : { + system.stateVersion = "22.05"; + nixpkgs.overlays = [ overlay-unstable ]; + }) (import ./common.nix inputs) (import ./dev.nix inputs) (import ./entertainment.nix inputs)