use unstable for goto

This commit is contained in:
zoe 2023-08-14 12:38:13 +02:00
parent 6a4321c849
commit b7571d8e1a
2 changed files with 18 additions and 8 deletions

View File

@ -1,8 +1,8 @@
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05"; nixpkgs.url = "nixpkgs/nixos-23.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
mozilla.url = "github:mozilla/nixpkgs-mozilla"; mozilla.url = "github:mozilla/nixpkgs-mozilla";
# hyprland.url = "github:hyprwm/Hyprland";
supercolor.url = "github:zoe-bat/supercolor"; supercolor.url = "github:zoe-bat/supercolor";
kaokao.url = "github:zoe-bat/kaokao"; kaokao.url = "github:zoe-bat/kaokao";
i3layouts-rofi.url = "github:zoe-bat/i3layouts-rofi"; i3layouts-rofi.url = "github:zoe-bat/i3layouts-rofi";
@ -12,13 +12,22 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, supercolor, i3layouts-rofi, kaokao outputs = { self, nixpkgs, home-manager, supercolor, i3layouts-rofi, kaokao
, mozilla }@inputs: , mozilla, nixpkgs-unstable }@inputs:
let system = "x86_64-linux"; let
system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in { in {
nixosConfigurations.bat = nixpkgs.lib.nixosSystem { nixosConfigurations.bat = nixpkgs.lib.nixosSystem {
system = system; inherit system;
modules = [ modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ mozilla.overlays.rust ]; }) ({ config, pkgs, ... }: {
nixpkgs.overlays = [ mozilla.overlays.rust overlay-unstable ];
})
./configuration.nix ./configuration.nix
]; ];
specialArgs = inputs; specialArgs = inputs;

View File

@ -1,4 +1,4 @@
{ pkgs, supercolor, kaokao, i3layouts-rofi, ... }: { pkgs, supercolor, nixpkgs-unstable, kaokao, i3layouts-rofi, ... }:
let let
my-python-packages = p: with p; [ pytest i3ipc python-lsp-server ]; my-python-packages = p: with p; [ pytest i3ipc python-lsp-server ];
rust = pkgs.latest.rustChannels.stable.rust.override { rust = pkgs.latest.rustChannels.stable.rust.override {
@ -140,6 +140,9 @@ in {
vscode vscode
mdbook mdbook
## games
unstable.godot_4
## nix ## nix
any-nix-shell any-nix-shell
nixfmt nixfmt
@ -180,8 +183,6 @@ in {
## 3d ## 3d
blender blender
blockbench-electron blockbench-electron
## godot
godot_4
## arduino ## arduino
arduino arduino
## tilemap editor ## tilemap editor