-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
76 lines (70 loc) · 2.07 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
description = "m-wynn/dotfiles";
inputs = {
stable.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
trunk.url = "github:nixos/nixpkgs";
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
catppuccin.url = "github:catppuccin/nix";
home = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "unstable";
};
};
outputs = inputs @ { self, home, nixpkgs, catppuccin, ... }:
let
nixpkgs_config = {
allowUnfree = true;
allowBroken = true;
};
overlays = [
(self: super: {
zsh-defer = super.callPackage ./pkgs/zsh-defer.nix { };
terraform-zsh-plugin = super.callPackage ./pkgs/terraform-zsh-plugin.nix { };
unstable = import inputs.unstable { system = self.system; config = nixpkgs_config; };
stable = import inputs.stable { system = self.system; };
trunk = import inputs.trunk { system = self.system; config = nixpkgs_config; };
})
];
in {
homeConfigurations = {
matthew = home.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "aarch64-darwin"; config.allowUnfree = true; };
modules = [
./home.nix
./shell.nix
{
imports = [
catppuccin.homeManagerModules.catppuccin
];
catppuccin = {
enable = true;
accent = "lavender";
flavor = "mocha";
};
home = {
username = "matthew";
homeDirectory = "/Users/matthew";
stateVersion = "22.05";
};
nixpkgs.overlays = overlays;
}
];
};
wsl = home.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
./home.nix
./shell.nix
{
home = {
username = "matthew";
homeDirectory = "/home/matthew";
stateVersion = "22.05";
};
nixpkgs.overlays = overlays;
}
];
};
};
};
}