-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
52 lines (50 loc) · 1.33 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
{
description = "orangc's dots";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland"; # unstable hyprland
nixvim.url = "github:orangci/nixvim"; # FIXME: nixvim is broken and who knows why — perhaps i should move to nvf
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
};
outputs = inputs @ {
nixpkgs,
home-manager,
...
}: let
system = "x86_64-linux";
host = "anacreon";
username = "orangc";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
homeConfigurations."${username}@${host}" = home-manager.lib.homeManagerConfiguration {
pkgs = pkgs;
extraSpecialArgs = {
inherit system;
inherit inputs;
inherit username;
inherit host;
};
modules = [./hosts/${host}/home.nix];
};
nixosConfigurations."${host}" = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit system;
inherit inputs;
inherit username;
inherit host;
};
modules = [./hosts/${host}/config.nix];
};
};
}