-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
110 lines (102 loc) · 3.32 KB
/
flake.nix
File metadata and controls
110 lines (102 loc) · 3.32 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
publisher = {
url = "github:jowi-dev/publisher";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
fnord = {
url = "github:jowi-dev/fnord";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
banj-cli = {
url = "github:jowi-dev/banj-cli-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay = {
# Don't follow so the binary cache can be used
url = "github:nix-community/neovim-nightly-overlay";
};
};
outputs = inputs@{ self, nixpkgs, flake-parts, darwin, wsl, home-manager, publisher, banj-cli, fnord, neovim-nightly-overlay, ... }:
let
overlays = [ neovim-nightly-overlay.overlays.default ];
mkSystem = import ./lib/mksystem.nix { inherit nixpkgs inputs overlays; };
standardArgs = {
inherit fnord;
inherit banj-cli;
inherit publisher;
};
in
flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
templates = import ./templates;
# See lib/mksystem.nix for config options
nixosConfigurations = {
nixos = mkSystem "nixos" {
system = "x86_64-linux";
enableGui = true;
enableSound = true;
enableContainers = true;
username = "jowi";
homeDirectory = "/home/jowi";
toolingDirectory = "/.config/nix-config";
gitUsername = "jowi-dev";
gitEmail = "joey8williams@gmail.com";
extraSpecialArgs = standardArgs;
};
wsl = mkSystem "wsl" {
system = "x86_64-linux";
wsl = true;
enableGui = true;
enableSound = true;
enableContainers = true;
username = "jowi";
homeDirectory = "/home/jowi";
toolingDirectory = "/.config/nix-config";
gitUsername = "jowi-dev";
gitEmail = "joey8williams@gmail.com";
extraSpecialArgs = standardArgs;
};
nixosIso = mkSystem "nixos" {
iso = true;
system = "x86_64-linux";
username = "jowi";
homeDirectory = "/home/jowi";
toolingDirectory = "/.config/nix-config";
gitUsername = "jowi-dev";
gitEmail = "joey8williams@gmail.com";
extraSpecialArgs = standardArgs;
};
};
darwinConfigurations = {
papa-laptop = mkSystem "papa-laptop" {
system = "aarch64-darwin";
username = "jowi";
homeDirectory = "/Users/jowi";
toolingDirectory = "/banj-os";
gitUsername = "jowi-dev";
gitEmail = "joey8williams@gmail.com";
extraSpecialArgs = standardArgs;
};
};
};
systems = [ ];
};
}