[feat] flake: prepare for 24.05

We add an `unstable` overlay (available through `pkgs.unstable`) and pin
nixpkgs to the `nixos-24.05` branch. Neovim is still kept in unstable (I
want to live in the bleeding edge c:).
This commit is contained in:
Jalil David Salamé Messina 2024-06-01 16:24:05 +02:00
parent 3d703f40df
commit 1da87b1153
Signed by: jalil
GPG key ID: F016B9E770737A0B
5 changed files with 55 additions and 38 deletions

View file

@ -4,7 +4,8 @@
description = "My NixOS configuration";
# Flake inputs
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs.url = "nixpkgs/nixos-24.05";
unstable.url = "nixpkgs/nixos-unstable";
# Software
jpassmenu = {
url = "github:jalil-salame/jpassmenu";
@ -29,10 +30,11 @@
};
# Modules
home-manager = {
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
# FIXME: pin to 24.05 when avalialble
stylix = {
url = "github:jalil-salame/stylix/enable-option";
inputs = {
@ -43,7 +45,7 @@
nixvim = {
url = "github:nix-community/nixvim";
inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs.follows = "unstable";
devshell.follows = "devshell";
nix-darwin.follows = ""; # disable MacOS stuff
home-manager.follows = "home-manager";
@ -69,14 +71,13 @@
outputs = {
self,
nixpkgs,
unstable,
stylix,
home-manager,
nixos-hardware,
jpassmenu,
audiomenu,
nixvim,
# neovim-flake,
# neovim-src,
lix,
lix-module,
...
@ -158,10 +159,15 @@
nixvim = nixvim.overlays.default;
jpassmenu = jpassmenu.overlays.default;
audiomenu = audiomenu.overlays.default;
# FIXME: remove once merged in nixpkgs
# neovim-nightly = final: prev: {
# neovim = final.callPackage (neovim-flake + "/flake/packages/neovim.nix") {inherit neovim-src;};
# };
unstable = final: prev: {
inherit
(unstable.legacyPackages.${prev.system})
gitoxide
jujutsu
wezterm
;
unstable = unstable.legacyPackages.${prev.system};
};
};
# Nix files formatter (run `nix fmt`)