-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
61 lines (56 loc) · 1.54 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
53
54
55
56
57
58
59
60
61
{
description = "appsforartists/device-config";
inputs = {
# # If you don't have nixpkgs checked out, the branch I use is here:
# nixpkgs.url = "github:appsforartists/nixpkgs/appsforartists";
# # not sure how to use `mainUser.userName` in an `input`, so please excuse
# # the hardcoding.
nixpkgs.url = "git+file:///home/brenton/Projects/nixpkgs";
gnome-mobile-experimental = {
url = "github:chuangzhu/nixpkgs-gnome-mobile";
};
jovian = {
url = "git+file:///home/brenton/Projects/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
jovian,
gnome-mobile-experimental,
...
} @ inputs:
let
goHostname = "${mainUserModule.mainUser.userName}-go";
mainUserModule = {
mainUser = {
userName = "brenton";
fullName = "Brenton Simpson";
};
imports = [
./modules/main-user.nix
];
};
in {
nixosConfigurations = {
"${ goHostname }" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = {inherit inputs system;};
modules = [
{
nix.settings.experimental-features = ["nix-command" "flakes"];
networking.hostName = "${ goHostname }";
}
mainUserModule
./modules/chrome.nix
./modules/gnome.nix
./modules/sd-card.nix
./modules/steam.nix
./modules/sublime.nix
./modules/windows.nix
./hosts/go/configuration.nix
];
};
};
};
}