Enable unstable channel and install IDEA from unstable

This commit is contained in:
Valentin Brandl 2023-10-29 09:30:47 +01:00
parent 6ccae64edf
commit 78f7322c76
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
3 changed files with 12 additions and 3 deletions

View File

@ -7,6 +7,9 @@
nixpkgs = { nixpkgs = {
url = "github:nixos/nixpkgs/nixos-23.05"; url = "github:nixos/nixpkgs/nixos-23.05";
}; };
nixpkgs-unstable = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
flake-utils = { flake-utils = {
url = "github:numtide/flake-utils"; url = "github:numtide/flake-utils";
}; };

View File

@ -1,5 +1,5 @@
inputs: inputs:
{ pkgs, ... }: { { pkgs, pkgs-unstable, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim neovim
vim vim
@ -27,7 +27,7 @@ inputs:
direnv direnv
#idea.idea-community #idea.idea-community
jetbrains.idea-ultimate unstable.jetbrains.idea-community
dbeaver dbeaver
]; ];

View File

@ -3,11 +3,17 @@ let
system = "x86_64-linux"; system = "x86_64-linux";
hostname = "morpheus"; hostname = "morpheus";
swapUUID = "93bdadfc-961a-4ea6-aef0-d3cd50847f0b"; swapUUID = "93bdadfc-961a-4ea6-aef0-d3cd50847f0b";
overlay-unstable = final: prev: {
unstable = inputs.nixpkgs-unstable.legacyPackages.${prev.system};
};
in in
inputs.nixpkgs.lib.nixosSystem { inputs.nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
{ system.stateVersion = "22.05"; } ({ config, pkgs, ... } : {
system.stateVersion = "22.05";
nixpkgs.overlays = [ overlay-unstable ];
})
(import ./common.nix inputs) (import ./common.nix inputs)
(import ./dev.nix inputs) (import ./dev.nix inputs)
(import ./entertainment.nix inputs) (import ./entertainment.nix inputs)