Further file arrangement
This commit is contained in:
parent
ad5598e202
commit
db6dd6076e
3 changed files with 27 additions and 37 deletions
31
flake.nix
31
flake.nix
|
|
@ -18,39 +18,9 @@
|
|||
};
|
||||
|
||||
outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, nixvim, claude-code, firefox-addons, nix-homebrew }:
|
||||
let
|
||||
# Common system configuration shared across all Darwin systems
|
||||
commonSystemConfig = { pkgs, ... }: {
|
||||
imports = [
|
||||
./modules/tailscale.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
# System-level packages only
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
nix.settings.substituters = [
|
||||
"https://cache.nixos.org/"
|
||||
"https://nix-community.cachix.org"
|
||||
"https://devenv.cachix.org"
|
||||
];
|
||||
nix.settings.trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||
];
|
||||
system.stateVersion = 6;
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
|
||||
programs.zsh.enable = true;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
darwinConfigurations."iMac" = nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
commonSystemConfig
|
||||
./hosts/darwin/iMac
|
||||
];
|
||||
specialArgs = { inherit nix-homebrew; };
|
||||
|
|
@ -58,7 +28,6 @@
|
|||
|
||||
darwinConfigurations."MacBook-Air" = nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
commonSystemConfig
|
||||
./hosts/darwin/MacBook-Air
|
||||
];
|
||||
specialArgs = { inherit nix-homebrew; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue