nixos-config/modules/darwin/default.nix
2025-02-14 13:38:56 -05:00

25 lines
599 B
Nix

# Configuration common to all macOS systems
{ flake, ... }:
let
inherit (flake) config inputs;
inherit (inputs) self;
in
{
imports = [
{
# For home-manager to work.
users.users.${flake.config.me.username} = {
home = "/Users/${flake.config.me.username}";
};
home-manager.users.${config.me.username} = { };
home-manager.sharedModules = [
self.homeModules.default
self.homeModules.darwin-only
];
}
self.nixosModules.common
inputs.agenix.darwinModules.default
./all/zsh-completion-fix.nix
./all/vscode.nix
];
}