mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-14 12:23:58 +01: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,
|
||||
...
|
||||
} @ 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
|
||||
];
|
||||
};
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user