meta: Use src directory

There's something cool about having a separate main.nix for your NixOS
configuration.
This commit is contained in:
Donovan Glover 2023-06-05 21:14:44 -04:00
parent 2ee8217d0b
commit 5cd582cdac
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@
nix-gaming,
...
} @ attrs: let
VARIABLES = import ./variables.nix;
VARIABLES = import ./src/variables.nix;
in {
formatter."${VARIABLES.system}" = nixpkgs.legacyPackages."${VARIABLES.system}".alejandra;
nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
@ -19,7 +19,7 @@
hyprland.nixosModules.default
stylix.nixosModules.stylix
nix-gaming.nixosModules.pipewireLowLatency
./common.nix
./src/main.nix
./hardware-configuration.nix
];
};

View File

@ -8,9 +8,9 @@
VARIABLES = import ./variables.nix;
in {
imports = [
./modules
./containers/rar.nix
./containers/wine.nix
../modules
../containers/rar.nix
../containers/wine.nix
];
# locale
@ -41,8 +41,8 @@ in {
environment.systemPackages = with pkgs; [
hypr-contrib.packages."${VARIABLES.system}".grimblast
nix-gaming.packages."${VARIABLES.system}".osu-stable
(pkgs.callPackage ./packages/waycorner {})
(pkgs.callPackage ./packages/srb2 {})
(pkgs.callPackage ../packages/waycorner {})
(pkgs.callPackage ../packages/srb2 {})
slade
typespeed
osu-lazer-bin