mirror of
https://github.com/wlcx/home.git
synced 2026-09-15 12:38:22 +01:00
flake: expose profiles as flake output, fmt
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
})
|
||||
];
|
||||
in (rec {
|
||||
profiles = import ./home/profiles.nix;
|
||||
lib = {
|
||||
mkHome = {
|
||||
profiles,
|
||||
@@ -42,23 +43,21 @@
|
||||
# In home-manager 22.11 configuration/extraModules go away and are replaced
|
||||
# by a single "modules". So let's get ready for that.
|
||||
configuration = {...}: {};
|
||||
extraSpecialArgs = { inherit system; };
|
||||
extraModules = profiles ++ [{ nixpkgs.overlays = overlays; }];
|
||||
extraSpecialArgs = {inherit system;};
|
||||
extraModules = profiles ++ [{nixpkgs.overlays = overlays;}];
|
||||
};
|
||||
};
|
||||
|
||||
# Standalone home-manager configurations
|
||||
homeConfigurations = let
|
||||
profiles = import ./home/profiles.nix;
|
||||
in {
|
||||
homeConfigurations = {
|
||||
boron = lib.mkHome {
|
||||
system = "aarch64-darwin";
|
||||
profiles = with profiles; [ default dev sensitive mac docker aws ];
|
||||
profiles = with profiles; [default dev sensitive mac docker aws];
|
||||
username = "samuel.willcocks";
|
||||
};
|
||||
zinc = lib.mkHome {
|
||||
system = "aarch64-darwin";
|
||||
profiles = with profiles; [ default dev sensitive mac ];
|
||||
profiles = with profiles; [default dev sensitive mac];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user