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
commonKernelParams = [
# VM/GPU passthrough
@ -16,7 +16,7 @@ let
in {
boot = {
# 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" ];
# 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
./wms
./user
../extras
../variables
# Imports
nur.modules.homeManager.default

View file

@ -1,11 +1,16 @@
{ unstable, lib, pkgs, ... }:
{ config, lib, pkgs, unstable, ... }:
{
nix = {
package = lib.mkForce pkgs.nix;
registry.unstable.flake = unstable;
settings.experimental-features = [
"nix-command"
"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
./services
./settings
../extras
../variables
];
options.system = with lib; {

View file

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