-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
47 lines (42 loc) · 1.02 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
{
description = "nickgerace/dotfiles";
inputs = {
nix-darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
nix-darwin,
}: {
devShells = {
default = {system}: let
pkgs = import nixpkgs {inherit system;};
in
pkgs.mkShell {
packages = with pkgs; [
alejandra
bash
just
shfmt
];
formatter = pkgs.alejandra;
};
};
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [./os/nixos/server/configuration.nix];
};
darwinConfigurations.darwin = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [./os/nix-darwin/darwin.nix];
};
darwinConfigurations.sibook = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [./os/nix-darwin/sibook.nix];
};
};
}