use nixos-hardware directly
This commit is contained in:
parent
2ce1de598f
commit
357df23feb
22
flake.nix
22
flake.nix
|
@ -5,16 +5,28 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
|
||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-21.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, flake-utils, home-manager }: {
|
||||
nixosConfigurations.gwyn = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./hardware/precision/configuration.nix ];
|
||||
outputs =
|
||||
inputs @ { self
|
||||
, nixpkgs
|
||||
, nixpkgs-unstable
|
||||
, nixos-hardware
|
||||
, flake-utils
|
||||
, home-manager
|
||||
}: {
|
||||
nixosConfigurations.gwyn = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hardware/precision/configuration.nix
|
||||
nixos-hardware.nixosModules.dell-precision-5530
|
||||
nixos-hardware.nixosModules.common-gpu-nvidia
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
../nixos-hardware/dell/precision/5530/default.nix
|
||||
./nvidia.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../nixos-hardware/common/gpu/nvidia.nix
|
||||
];
|
||||
environment = {
|
||||
variables = {
|
||||
XDG_DATA_HOME = "$HOME/.local/share";
|
||||
|
|
Loading…
Reference in New Issue