mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-03 19:39:40 +01:00
meta: Use default.nix
Makes things simpler.
This commit is contained in:
parent
7fb0c15255
commit
0fd8411d36
15
default.nix
Normal file
15
default.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ home-manager, stylix, nix-gaming, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
stylix.nixosModules.stylix
|
||||||
|
nix-gaming.nixosModules.pipewireLowLatency
|
||||||
|
./containers
|
||||||
|
./home
|
||||||
|
./modules
|
||||||
|
./overlays
|
||||||
|
./specializations
|
||||||
|
./src/main.nix
|
||||||
|
];
|
||||||
|
}
|
@ -22,15 +22,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, stylix, nix-gaming, ... } @ attrs: let VARIABLES = import ./src/variables.nix; in {
|
outputs = { self, nixpkgs, ... } @ attrs: let VARIABLES = import ./src/variables.nix; in {
|
||||||
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
|
||||||
system = VARIABLES.system;
|
system = VARIABLES.system;
|
||||||
specialArgs = attrs;
|
specialArgs = attrs;
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
./.
|
||||||
stylix.nixosModules.stylix
|
|
||||||
nix-gaming.nixosModules.pipewireLowLatency
|
|
||||||
./src/main.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
6
specializations/default.nix
Normal file
6
specializations/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./gnome.nix
|
||||||
|
./plasma.nix
|
||||||
|
];
|
||||||
|
}
|
@ -8,10 +8,6 @@
|
|||||||
let VARIABLES = import ./variables.nix; in {
|
let VARIABLES = import ./variables.nix; in {
|
||||||
imports = [
|
imports = [
|
||||||
"${VARIABLES.hostHardwareConfiguration}"
|
"${VARIABLES.hostHardwareConfiguration}"
|
||||||
../overlays
|
|
||||||
../modules
|
|
||||||
../home
|
|
||||||
../containers
|
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.opengl.driSupport32Bit = true;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user