Unstable config

This commit is contained in:
Filippo Berto 2022-04-14 00:15:30 +02:00
parent 150ce70fbe
commit bbee9d7993
5 changed files with 57 additions and 17 deletions

View file

@ -2,20 +2,25 @@
description = "Thor system configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
nixpkgs.url = "github:NixOS/nixpkgs/release-21.11";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-21.11";
nixos-hardware.url = "github:NixOS/nixos-hardware";
# nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, nixos-hardware }:
outputs = { self, nixpkgs, unstable, home-manager, nixos-hardware }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
unstablePkgs = import nixpkgs {
inherit system;
config = { allowUnFree = true; };
};
lib = nixpkgs.lib;
in
{
@ -44,7 +49,32 @@
./odin/pro_audio.nix
];
};
odin-intel-unstable = unstable.lib.nixosSystem {
inherit system;
modules = [
./odin/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
./odin/base.nix
./odin/odin-intel.nix
./odin/pro_audio.nix
];
};
odin-nvidia-unstable = unstable.lib.nixosSystem {
inherit system;
modules = [
./odin/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
./odin/base.nix
./odin/odin-nvidia.nix
./odin/pro_audio.nix
];
};
};
};
}