-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
56 lines (52 loc) · 1.84 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
{
description = "A NixOS flake for the DoESLiverpool makerspace and the machines within it.";
inputs = {
nixinate.url = "github:matthewcroughan/nixinate";
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
home-manager.url = "github:nix-community/home-manager";
robotnix.url = "github:danielfullmer/robotnix";
};
outputs = { self, nixpkgs, nixpkgs-master, home-manager, nixinate, robotnix, ... }@inputs: {
apps = nixinate.nixinate.x86_64-linux self;
robotnixConfigurations.admin-phone = robotnix.lib.robotnixSystem (import ./hosts/admin-phone);
nixosConfigurations = {
vinylcutter = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/vinylcutter/configuration.nix
./mixins/nix2.4.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.doesuser = { home.username = "doesuser"; home.homeDirectory = "/home/doesuser"; };
}
{
_module.args.nixinate = {
host = "vinylcutter.local";
sshUser = "doesuser";
buildOn = "remote"; # valid args are "local" or "remote"
};
}
];
specialArgs = { inherit inputs; };
};
doesnix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/doesnix/configuration.nix
./mixins/nix2.4.nix
{
_module.args.nixinate = {
host = "doesnix.local";
sshUser = "matthew";
buildOn = "remote"; # valid args are "local" or "remote"
};
}
];
specialArgs = { inherit inputs; };
};
};
};
}