nix-config/modules/hosts/dnsc-air.nix
2026-03-03 13:46:54 +01:00

36 lines
877 B
Nix

{
inputs,
config,
...
}:
let
username = config.flake.globalConfig.username;
in
{
flake.darwinConfigurations.dnsc-air = inputs.nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = { inherit inputs; };
modules = [
inputs.home-manager.darwinModules.home-manager
{
networking.hostName = "dnsc-air";
networking.computerName = "dnsc-air";
users.users.${username}.home = "/Users/${username}";
nix.enable = false;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
home-manager = {
useGlobalPkgs = true;
backupFileExtension = "backup";
users.${username} = {
imports = [ config.flake.modules.homeManager.neovim ];
home.stateVersion = "24.11";
};
};
}
];
};
}