-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
38 lines (31 loc) · 1.07 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
{
description = "Home Manager configuration of josh";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs: {
homeConfigurations = {
# x86_64-linux is for 64-bit x86 Linux systems
"josh@nix-3" = home-manager.lib.homeManagerConfiguration {
modules = [ ./home.nix ];
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = {
pkgs-unstable = nixpkgs-unstable.legacyPackages."x86_64-linux";
username = "josh";
homeDirectory = "/home/josh";
};
};
# There's also other architectures
# * aarch64-linux for 64-bit ARM
# * x86_64-darwin for macOS
# * aarch64-darwin for Apple Slicon
# * x86_64-windows for Windows 64-bit
};
};
}