mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 09:47:57 +02:00
meta: Use src directory
There's something cool about having a separate main.nix for your NixOS configuration.
This commit is contained in:
parent
2ee8217d0b
commit
5cd582cdac
@ -8,7 +8,7 @@
|
|||||||
nix-gaming,
|
nix-gaming,
|
||||||
...
|
...
|
||||||
} @ attrs: let
|
} @ attrs: let
|
||||||
VARIABLES = import ./variables.nix;
|
VARIABLES = import ./src/variables.nix;
|
||||||
in {
|
in {
|
||||||
formatter."${VARIABLES.system}" = nixpkgs.legacyPackages."${VARIABLES.system}".alejandra;
|
formatter."${VARIABLES.system}" = nixpkgs.legacyPackages."${VARIABLES.system}".alejandra;
|
||||||
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
|
||||||
@ -19,7 +19,7 @@
|
|||||||
hyprland.nixosModules.default
|
hyprland.nixosModules.default
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
nix-gaming.nixosModules.pipewireLowLatency
|
nix-gaming.nixosModules.pipewireLowLatency
|
||||||
./common.nix
|
./src/main.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
VARIABLES = import ./variables.nix;
|
VARIABLES = import ./variables.nix;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./modules
|
../modules
|
||||||
./containers/rar.nix
|
../containers/rar.nix
|
||||||
./containers/wine.nix
|
../containers/wine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# locale
|
# locale
|
||||||
@ -41,8 +41,8 @@ in {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
hypr-contrib.packages."${VARIABLES.system}".grimblast
|
hypr-contrib.packages."${VARIABLES.system}".grimblast
|
||||||
nix-gaming.packages."${VARIABLES.system}".osu-stable
|
nix-gaming.packages."${VARIABLES.system}".osu-stable
|
||||||
(pkgs.callPackage ./packages/waycorner {})
|
(pkgs.callPackage ../packages/waycorner {})
|
||||||
(pkgs.callPackage ./packages/srb2 {})
|
(pkgs.callPackage ../packages/srb2 {})
|
||||||
slade
|
slade
|
||||||
typespeed
|
typespeed
|
||||||
osu-lazer-bin
|
osu-lazer-bin
|
Loading…
x
Reference in New Issue
Block a user