-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
85 lines (83 loc) · 2.83 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
77
78
79
80
81
82
83
84
85
{
description = "Rocko's system";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
darwin = {
url = "github:LnL7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nix-colors.url = "github:misterio77/nix-colors";
nix-monitored = {
url = "github:ners/nix-monitored";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
# emacs-overlay pinned because https://github.com/nix-community/nix-doom-emacs/issues/409
emacs-overlay.url = "github:nix-community/emacs-overlay/c16be6de78ea878aedd0292aa5d4a1ee0a5da501";
stylix.url = "github:rockofox/stylix";
sensitive = {
url = "git+file:sensitive";
};
};
outputs =
{ self
, darwin
, home-manager
, nix-colors
, nix-doom-emacs
, nix-monitored
, stylix
, neovim-nightly-overlay
, sensitive
, ...
}@inputs:
{
darwinConfigurations = {
"darwin" = darwin.lib.darwinSystem {
system = sensitive.lib.arch;
specialArgs = inputs;
modules = [
./modules/darwin.nix
home-manager.darwinModules.home-manager
# nix-monitored.darwinModules.default
{
nixpkgs.overlays = [
(self: super:
{
discocss = super.discocss.overrideAttrs (prev: rec {
version = "0.3.1";
src = self.fetchFromGitHub {
owner = "bddvlpr";
repo = "discocss";
rev = "v${version}";
hash = "sha256-BFTxgUy2H/T92XikCsUMQ4arPbxf/7a7JPRewGqvqZQ=";
};
# nixos-rebuild = super.nixos-rebuild.override {
# nix = super.nix-monitored;
# };
# nix-direnv = super.nix-direnv.override {
# nix = super.nix-monitored;
# };
});
})
(import inputs.emacs-overlay)
# (inputs.neovim-nightly-overlay.overlay)
];
nixpkgs.config.allowUnfree = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${sensitive.lib.username} = {
imports = [ stylix.homeManagerModules.stylix ./modules/home ];
};
home-manager.extraSpecialArgs = { inherit nix-colors; inherit nix-doom-emacs; inherit sensitive; };
}
];
};
};
};
}