forked from jasonmorganson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
56 lines (51 loc) · 1.79 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
description = "Home Manager configuration of ben";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-skaffold.url = "github:nixos/nixpkgs/611bf8f183e6360c2a215fa70dfd659943a9857f";
};
outputs = { nixpkgs, home-manager, nix-vscode-extensions, nixpkgs-skaffold, ... }:
let
pkgs = { system }: import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
homeConfigurations."ben@nepeta" =
let
system = "x86_64-linux";
in
home-manager.lib.homeManagerConfiguration {
pkgs = pkgs { inherit system; };
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./machines/personal.nix ];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {
nix-vscode-extensions = nix-vscode-extensions.extensions.${system};
};
};
homeConfigurations.work =
let
system = "x86_64-darwin";
in
home-manager.lib.homeManagerConfiguration {
pkgs = pkgs { inherit system; };
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./machines/work.nix ];
extraSpecialArgs = {
nix-vscode-extensions = nix-vscode-extensions.extensions.${system};
nixpkgs-skaffold = import nixpkgs-skaffold { inherit system; };
};
};
};
}