-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (37 loc) · 1.19 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
{
description = "Home Manager configuration of jkr";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
# nixgl is needed for alacritty outside of nixOS
# refer to https://github.com/NixOS/nixpkgs/issues/122671
# https://github.com/guibou/nixGL/#use-an-overlay
nixgl.url = "github:guibou/nixGL";
};
outputs = { nixpkgs, nixpkgs-unstable, home-manager, nixgl, ... }:
let
system = "x86_64-linux";
unstable-packages = final: _prev: {
unstable = import nixpkgs-unstable {
system = final.system;
config.allowUnfree = true;
};
};
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay unstable-packages ];
};
secrets = import ./secrets.nix;
in
{
homeConfigurations.${secrets.username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
};
};
}