add unstable nixpkgs

This commit is contained in:
Sean Kovacs 2026-01-13 13:11:31 -05:00
commit 3fd51428c3
Signed by: sckova
GPG key ID: 00F325187C68651A
4 changed files with 47 additions and 5 deletions

17
flake.lock generated
View file

@ -373,6 +373,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1768127708,
"narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1767799921, "lastModified": 1767799921,
@ -509,6 +525,7 @@
"niri": "niri", "niri": "niri",
"nix-cachyos-kernel": "nix-cachyos-kernel", "nix-cachyos-kernel": "nix-cachyos-kernel",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",
"noctalia": "noctalia", "noctalia": "noctalia",
"nur": "nur", "nur": "nur",

View file

@ -3,6 +3,7 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel"; nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel";
@ -59,6 +60,7 @@
outputs = { outputs = {
nixpkgs, nixpkgs,
nixpkgs-unstable,
nix-cachyos-kernel, nix-cachyos-kernel,
catppuccin, catppuccin,
catppuccin-palette, catppuccin-palette,
@ -73,9 +75,15 @@
... ...
}: let }: let
# All systems we want to support for the generic VM # All systems we want to support for the generic VM
supportedSystems = ["x86_64-linux" "aarch64-linux"];
# to run the vm: # to run the vm:
# nixos-rebuild build-vm --flake ~/nix#$(nix eval --raw --impure --expr 'builtins.currentSystem') # nixos-rebuild build-vm --flake ~/nix#$(nix eval --raw --impure --expr 'builtins.currentSystem')
supportedSystems = ["x86_64-linux" "aarch64-linux"];
# Shared config for all package sets
pkgConfig = {
allowUnfree = true;
};
mkNixosSystem = { mkNixosSystem = {
hostname, hostname,
system, system,
@ -87,11 +95,16 @@
specialArgs = specialArgs =
{ {
inherit catppuccin system; inherit catppuccin system;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = pkgConfig;
};
} }
// extraSpecialArgs; // extraSpecialArgs;
modules = modules =
[ [
{ {
nixpkgs.config = pkgConfig;
nixpkgs.overlays = [ nixpkgs.overlays = [
catppuccin-palette.overlays.default catppuccin-palette.overlays.default
niri.overlays.niri niri.overlays.niri
@ -142,6 +155,10 @@
]; ];
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit spicetify-nix; inherit spicetify-nix;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = pkgConfig;
};
}; };
} }
] ]
@ -156,6 +173,7 @@
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = pkgConfig;
}; };
home.username = user; home.username = user;
home.homeDirectory = "/home/${user}"; home.homeDirectory = "/home/${user}";
@ -169,6 +187,12 @@
noctalia.homeModules.noctalia noctalia.homeModules.noctalia
nixvim.homeModules.nixvim nixvim.homeModules.nixvim
]; ];
extraSpecialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = pkgConfig;
};
};
}; };
in in
{ {

View file

@ -1,6 +1,7 @@
{ {
config, config,
pkgs, pkgs,
pkgs-unstable,
spicetify-nix, spicetify-nix,
... ...
}: { }: {
@ -9,9 +10,11 @@
flavor = "mocha"; flavor = "mocha";
}; };
home.packages = with pkgs; [ home.packages = [
# steam gtk theming # steam gtk theming
adwsteamgtk pkgs.adwsteamgtk
pkgs-unstable.ckan
]; ];
programs.noctalia-shell.settings.brightness = { programs.noctalia-shell.settings.brightness = {

View file

@ -159,8 +159,6 @@
hashedPassword = "$6$bvwRUFaJNMpH8rm3$FGDWFN6tBScJ/2DynAjnlZE8JRfyADN78d6c4GawxpAjyNLNE/AjQzMA09tLRqpKX7WnN5PIUZLAm2bT9/RbG0"; hashedPassword = "$6$bvwRUFaJNMpH8rm3$FGDWFN6tBScJ/2DynAjnlZE8JRfyADN78d6c4GawxpAjyNLNE/AjQzMA09tLRqpKX7WnN5PIUZLAm2bT9/RbG0";
}; };
nixpkgs.config.allowUnfree = true;
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
git git