flake: expose profiles as flake output, fmt

This commit is contained in:
Sam W 2022-09-26 15:12:26 +01:00
parent f28b42d23b
commit 70faca076a
4 changed files with 9 additions and 11 deletions

View File

@ -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];
};
};
}

View File

@ -15,7 +15,7 @@ in {
enable = true;
package = pkgs.nix;
settings.experimental-features = "nix-command flakes";
settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel)
settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel)
};
programs = {
home-manager.enable = true;

View File

@ -3,7 +3,7 @@
default = ./default.nix;
# A machine for development
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 = {...}: {

View File

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.vscode = {
enable = true;
package = pkgs.vscodium;