Created
October 1, 2024 19:29
-
-
Save orzklv/0b632d6c334d5bc47924860bd3a9d89a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
homeConfigurations = { | |
# ___ __ | |
# / | ____ ____ / /__ | |
# / /| | / __ \/ __ \/ / _ \ | |
# / ___ |/ /_/ / /_/ / / __/ | |
# /_/ |_/ .___/ .___/_/\___/ | |
# /_/ /_/ | |
# For all my current OSX machines | |
"sakhib@apple" = home-manager.lib.homeManagerConfiguration { | |
pkgs = | |
nixpkgs-unstable.legacyPackages.aarch64-darwin; # Home-manager requires 'pkgs' instance | |
extraSpecialArgs = { inherit inputs outputs; }; | |
modules = [ | |
# > Our main home-manager configuration file < | |
./home.nix | |
]; | |
}; | |
# For my good old MacBook Air 2015 | |
"sakhib@old-apple" = home-manager.lib.homeManagerConfiguration { | |
pkgs = | |
nixpkgs-unstable.legacyPackages.x86_64-darwin; # Home-manager requires 'pkgs' instance | |
extraSpecialArgs = { inherit inputs outputs; }; | |
modules = [ | |
# > Our main home-manager configuration file < | |
./home.nix | |
]; | |
}; | |
# Shortcuts for all my OSX machines | |
"[email protected]" = self.homeConfigurations."sakhib@apple"; # Personal iMac | |
"[email protected]" = self.homeConfigurations."sakhib@apple"; # Personal MacBook Pro | |
"[email protected]" = self.homeConfigurations."sakhib@apple"; # Parallels VIrtual Machine | |
"[email protected]" = self.homeConfigurations."sakhib@old-apple"; # Old MacBook Air 2015 | |
# ___ __ _ _ ___ | |
# _/_/ | / /___ ____ | |/ | / (_) ______ _____ | |
# / // |/ / __ \/ __ \ / / |/ / / |/_/ __ \/ ___/ | |
# / // /| / /_/ / / / // / /| / /> </ /_/ (__ ) | |
# / //_/ |_/\____/_/ /_//_/_/ |_/_/_/|_|\____/____/ | |
# |_| /_/ | |
# For my unstable non NixOS machines | |
"sakhib@unstable" = home-manager.lib.homeManagerConfiguration { | |
pkgs = | |
nixpkgs-unstable.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance | |
extraSpecialArgs = { inherit inputs outputs; }; | |
modules = [ | |
# > Our main home-manager configuration file < | |
./home.nix | |
]; | |
}; | |
# For my stable non NixOS machines | |
"sakhib@stable" = home-manager.lib.homeManagerConfiguration { | |
pkgs = | |
nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance | |
extraSpecialArgs = { inherit inputs outputs; }; | |
modules = [ | |
# > Our main home-manager configuration file < | |
./home.nix | |
]; | |
}; | |
# For topgrade from NixOS instances | |
"sakhib" = self.homeConfigurations."sakhib@stable"; | |
}; | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
homeConfigurations = self.lib.config.mapHome | |
{ | |
inherit inputs outputs; | |
} | |
{ | |
apple = { | |
inherit inputs outputs; | |
user = "sakhib"; | |
arch = "aarch64-darwin"; | |
repo = nixpkgs-unstable; | |
aliases = [ | |
"Sokhibjons-iMac.local" | |
"Sokhibjons-MacBook-Pro.local" | |
"Sokhibjons-Virtual-Machine.local" | |
]; | |
}; | |
old-apple = { | |
inherit inputs outputs; | |
user = "sakhib"; | |
arch = "x86_64-darwin"; | |
repo = nixpkgs-unstable; | |
aliases = [ | |
"Sokhibjons-MacBook-Air.local" | |
]; | |
}; | |
stable = { | |
inherit inputs outputs; | |
user = "sakhib"; | |
arch = "x86_64-linux"; | |
repo = nixpkgs; | |
aliases = [ | |
"" | |
]; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment