Add imac host
This commit is contained in:
parent
3c5c317389
commit
6567787880
3 changed files with 41 additions and 0 deletions
13
flake.nix
13
flake.nix
|
|
@ -33,6 +33,13 @@
|
|||
specialArgs = { inherit nix-homebrew; };
|
||||
};
|
||||
|
||||
darwinConfigurations."imac" = nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
./hosts/darwin/imac/system.nix
|
||||
];
|
||||
specialArgs = { inherit nix-homebrew; };
|
||||
};
|
||||
|
||||
nixosConfigurations."hs" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
|
|
@ -65,6 +72,12 @@
|
|||
extraSpecialArgs = { inherit claude-code nixvim firefox-addons; };
|
||||
};
|
||||
|
||||
"yanlin@imac" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
|
||||
modules = [ ./hosts/darwin/imac/home.nix ];
|
||||
extraSpecialArgs = { inherit claude-code nixvim firefox-addons; };
|
||||
};
|
||||
|
||||
"yanlin@hs" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
modules = [ ./hosts/nixos/hs/home.nix ];
|
||||
|
|
|
|||
16
hosts/darwin/imac/home.nix
Normal file
16
hosts/darwin/imac/home.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../home-default.nix
|
||||
];
|
||||
|
||||
# MacBook Air-specific home configuration
|
||||
# Example: Laptop-specific tools, power management, etc.
|
||||
|
||||
# yt-dlp configuration
|
||||
programs.yt-dlp-custom = {
|
||||
enable = true;
|
||||
downloadDir = "~/Downloads/Videos";
|
||||
};
|
||||
}
|
||||
12
hosts/darwin/imac/system.nix
Normal file
12
hosts/darwin/imac/system.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# MacBook Air-specific configuration
|
||||
networking.computerName = "imac";
|
||||
networking.hostName = "imac";
|
||||
|
||||
# Import common Darwin configuration
|
||||
imports = [
|
||||
../system-default.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue