-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
78 lines (66 loc) · 1.88 KB
/
flake.nix
File metadata and controls
78 lines (66 loc) · 1.88 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
description = "Nix configuration of thrix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# nixpkgs.url = "github:thrix/nixpkgs/dgoss-fix-binary";
# pinned nixpkgs for winboat — Go 1.26.1 cross-compilation is broken
# https://github.com/NixOS/nixpkgs/issues/503112
nixpkgs-winboat.url = "github:nixos/nixpkgs/e38213b91d3786389a446dfce4ff5a8aaf6012f2";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
nixpkgs-winboat,
home-manager,
nixvim,
...
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
# use winboat from pinned nixpkgs until Go cross-compilation is fixed
# https://github.com/NixOS/nixpkgs/issues/503112
(_final: _prev: {
winboat = (import nixpkgs-winboat {inherit system;}).winboat;
})
];
};
in {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
homeManagerModules = {
hostConfig = import ./modules/host-config.nix;
};
homeConfigurations."thrix" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
nixvim.homeModules.nixvim
./modules/host-config.nix
./home.nix
];
extraSpecialArgs = {
username = "thrix";
homeDirectory = "/home/thrix";
};
};
homeConfigurations."mvadkert" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
nixvim.homeModules.nixvim
./modules/host-config.nix
./home.nix
];
extraSpecialArgs = {
username = "mvadkert";
homeDirectory = "/home/mvadkert";
};
};
};
}