Add odin intel config
This commit is contained in:
parent
becab7b6f3
commit
150ce70fbe
7 changed files with 572 additions and 0 deletions
50
flake.nix
Normal file
50
flake.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
description = "Thor system configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
|
||||
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 }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
lib = nixpkgs.lib;
|
||||
in
|
||||
{
|
||||
nixosConfigurations = rec {
|
||||
thor = lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
./thor/hardware-configuration.nix
|
||||
nixos-hardware.nixosModules.common-cpu-amd
|
||||
nixos-hardware.nixosModules.common-pc-ssd
|
||||
./thor/configuration.nix
|
||||
];
|
||||
};
|
||||
odin = odin-intel;
|
||||
odin-intel = 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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue