-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (32 loc) · 1.12 KB
/
flake.nix
File metadata and controls
36 lines (32 loc) · 1.12 KB
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
{
description = "flake home-manager config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ... }:
let
username = "nate";
macos = "aarch64-darwin";
linux = "x86_64-linux";
in {
homeConfigurations = {
"home:${macos}" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = macos; };
modules = [ ./home-manager/home.nix ];
extraSpecialArgs = { inherit username; };
};
"home:${linux}" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = linux; };
modules = [ ./home-manager/home.nix ];
extraSpecialArgs = { inherit username; };
};
"work:${macos}" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = macos; };
modules = [ ./home-manager/work.nix ];
extraSpecialArgs = { inherit username; };
};
};
};
}