| author | |
| committer | |
| log | 1a7858b68b3ce21b4fd2c887441b1c537fd49bd7 |
| tree | db0968e06ab9e272d7eb385b79e7c75f6463ffd8 |
| parent | dc5e5831b5ff11c0081ffa89443d20f281f5f039 |
| signature | Commit is signed but in an unrecognized format. |
3 files changed, 8 insertions(+), 6 deletions(-)
hosts/desktop/configuration.nix-2| ... | @@ -7,8 +7,6 @@ | ... | @@ -7,8 +7,6 @@ |
| 7 | imports = [ | 7 | imports = [ |
| 8 | # Include the results of the hardware scan. | 8 | # Include the results of the hardware scan. |
| 9 | ./hardware-configuration.nix | 9 | ./hardware-configuration.nix |
| 10 | |||
| 11 | ../../modules/nixos | ||
| 12 | ]; | 10 | ]; |
| 13 | programs = { | 11 | programs = { |
| 14 | gamemode.enable = true; | 12 | gamemode.enable = true; |
hosts/laptop/configuration.nix-4| ... | @@ -3,10 +3,6 @@ | ... | @@ -3,10 +3,6 @@ |
| 3 | userSettings, | 3 | userSettings, |
| 4 | ... | 4 | ... |
| 5 | }: { | 5 | }: { |
| 6 | imports = [ | ||
| 7 | ../../modules/macos | ||
| 8 | ]; | ||
| 9 | |||
| 10 | environment.systemPackages = with pkgs; [ | 6 | environment.systemPackages = with pkgs; [ |
| 11 | neovim | 7 | neovim |
| 12 | pinentry_mac | 8 | pinentry_mac |
lib/mkSystem.nix+8| ... | @@ -20,6 +20,11 @@ | ... | @@ -20,6 +20,11 @@ |
| 20 | then inputs.stylix.darwinModules.stylix | 20 | then inputs.stylix.darwinModules.stylix |
| 21 | else inputs.stylix.nixosModules.stylix; | 21 | else inputs.stylix.nixosModules.stylix; |
| 22 | 22 | ||
| 23 | systemModuleDir = | ||
| 24 | if darwin | ||
| 25 | then "macos" | ||
| 26 | else "nixos"; | ||
| 27 | |||
| 23 | systemSettings = rec { | 28 | systemSettings = rec { |
| 24 | inherit darwin; | 29 | inherit darwin; |
| 25 | host = | 30 | host = |
| ... | @@ -70,6 +75,9 @@ in | ... | @@ -70,6 +75,9 @@ in |
| 70 | #shared modules | 75 | #shared modules |
| 71 | ../modules/shared | 76 | ../modules/shared |
| 72 | 77 | ||
| 78 | #system specific modules | ||
| 79 | ../modules/${systemModuleDir} | ||
| 80 | |||
| 73 | # Link to config.nix | 81 | # Link to config.nix |
| 74 | hostConfig | 82 | hostConfig |
| 75 | 83 |