Move to flake based unstable import
This commit is contained in:
parent
611eaab26c
commit
2c4749f2cc
18 changed files with 17 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./overlays
|
||||
./variables
|
||||
];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./unstable ];
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
{ unstable, ... }:
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
unstable = import unstable {
|
||||
system = final.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
|
@ -7,7 +7,7 @@
|
|||
./settings
|
||||
./wms
|
||||
./user
|
||||
../extras
|
||||
../variables
|
||||
|
||||
# Imports
|
||||
nur.modules.homeManager.default
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
./secrets
|
||||
./services
|
||||
./settings
|
||||
../extras
|
||||
../variables
|
||||
];
|
||||
|
||||
options.system = with lib; {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue