mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
25 lines
599 B
Nix
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
|
|
];
|
|
}
|