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 = {
url = "github:nixos/nixpkgs/nixos-23.05";
};
nixpkgs-unstable = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};

View File

@ -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
];

View File

@ -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)