we do a little refactoring

This commit is contained in:
Natalie 2025-05-02 16:13:17 -07:00
parent dc5e5831b5
commit 1a7858b68b
No known key found for this signature in database
GPG key ID: 61F4EAEB0C9C3D5F
3 changed files with 8 additions and 6 deletions

View file

@ -7,8 +7,6 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/nixos
];
programs = {
gamemode.enable = true;

View file

@ -3,10 +3,6 @@
userSettings,
...
}: {
imports = [
../../modules/macos
];
environment.systemPackages = with pkgs; [
neovim
pinentry_mac

View file

@ -20,6 +20,11 @@
then inputs.stylix.darwinModules.stylix
else inputs.stylix.nixosModules.stylix;
systemModuleDir =
if darwin
then "macos"
else "nixos";
systemSettings = rec {
inherit darwin;
host =
@ -70,6 +75,9 @@ in
#shared modules
../modules/shared
#system specific modules
../modules/${systemModuleDir}
# Link to config.nix
hostConfig