mirror of https://github.com/wlcx/home.git
flake: expose profiles as flake output, fmt
This commit is contained in:
parent
f28b42d23b
commit
70faca076a
13
flake.nix
13
flake.nix
|
@ -26,6 +26,7 @@
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
in (rec {
|
in (rec {
|
||||||
|
profiles = import ./home/profiles.nix;
|
||||||
lib = {
|
lib = {
|
||||||
mkHome = {
|
mkHome = {
|
||||||
profiles,
|
profiles,
|
||||||
|
@ -42,23 +43,21 @@
|
||||||
# In home-manager 22.11 configuration/extraModules go away and are replaced
|
# In home-manager 22.11 configuration/extraModules go away and are replaced
|
||||||
# by a single "modules". So let's get ready for that.
|
# by a single "modules". So let's get ready for that.
|
||||||
configuration = {...}: {};
|
configuration = {...}: {};
|
||||||
extraSpecialArgs = { inherit system; };
|
extraSpecialArgs = {inherit system;};
|
||||||
extraModules = profiles ++ [{ nixpkgs.overlays = overlays; }];
|
extraModules = profiles ++ [{nixpkgs.overlays = overlays;}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Standalone home-manager configurations
|
# Standalone home-manager configurations
|
||||||
homeConfigurations = let
|
homeConfigurations = {
|
||||||
profiles = import ./home/profiles.nix;
|
|
||||||
in {
|
|
||||||
boron = lib.mkHome {
|
boron = lib.mkHome {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
profiles = with profiles; [ default dev sensitive mac docker aws ];
|
profiles = with profiles; [default dev sensitive mac docker aws];
|
||||||
username = "samuel.willcocks";
|
username = "samuel.willcocks";
|
||||||
};
|
};
|
||||||
zinc = lib.mkHome {
|
zinc = lib.mkHome {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
profiles = with profiles; [ default dev sensitive mac ];
|
profiles = with profiles; [default dev sensitive mac];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
default = ./default.nix;
|
default = ./default.nix;
|
||||||
# A machine for development
|
# A machine for development
|
||||||
dev = {...}: {
|
dev = {...}: {
|
||||||
imports = [ ./git.nix ./rust.nix ./vim.nix ./vim-dev ./vscode.nix ];
|
imports = [./git.nix ./rust.nix ./vim.nix ./vim-dev ./vscode.nix];
|
||||||
};
|
};
|
||||||
# Sensitive stuff
|
# Sensitive stuff
|
||||||
sensitive = {...}: {
|
sensitive = {...}: {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
|
|
Loading…
Reference in New Issue