Move to flake based unstable import

This commit is contained in:
Jimbo 2025-02-25 02:14:16 -05:00
parent 611eaab26c
commit 2c4749f2cc
18 changed files with 17 additions and 29 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgsUnstable, ... }:
let let
commonKernelParams = [ commonKernelParams = [
# VM/GPU passthrough # VM/GPU passthrough
@ -16,7 +16,7 @@ let
in { in {
boot = { boot = {
# Something something Zen or Xanmod for IOMMU isolation something zfs # Something something Zen or Xanmod for IOMMU isolation something zfs
kernelPackages = pkgs.unstable.linuxPackages_xanmod_stable; kernelPackages = pkgsUnstable.linuxPackages_xanmod_stable;
kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ]; kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
# Needed for GPU passthrough # Needed for GPU passthrough

View file

@ -1,7 +0,0 @@
{ ... }:
{
imports = [
./overlays
./variables
];
}

View file

@ -1,4 +0,0 @@
{ ... }:
{
imports = [ ./unstable ];
}

View file

@ -1,11 +0,0 @@
{ unstable, ... }:
{
nixpkgs.overlays = [
(final: prev: {
unstable = import unstable {
system = final.system;
config.allowUnfree = true;
};
})
];
}

View file

@ -7,7 +7,7 @@
./settings ./settings
./wms ./wms
./user ./user
../extras ../variables
# Imports # Imports
nur.modules.homeManager.default nur.modules.homeManager.default

View file

@ -1,11 +1,16 @@
{ unstable, lib, pkgs, ... }: { config, lib, pkgs, unstable, ... }:
{ {
nix = { nix = {
package = lib.mkForce pkgs.nix; package = lib.mkForce pkgs.nix;
registry.unstable.flake = unstable;
settings.experimental-features = [ settings.experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
registry.unstable.flake = unstable;
};
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
}; };
} }

View file

@ -7,7 +7,7 @@
./secrets ./secrets
./services ./services
./settings ./settings
../extras ../variables
]; ];
options.system = with lib; { options.system = with lib; {

View file

@ -1,4 +1,4 @@
{ ... }: { config, pkgs, unstable, ... }:
{ {
imports = [ ./gc ]; imports = [ ./gc ];
@ -9,4 +9,9 @@
]; ];
auto-optimise-store = true; auto-optimise-store = true;
}; };
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
} }