-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
147 lines (120 loc) · 4.68 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
nixConfig = {
extra-substituters = [ "https://nix-community.cachix.org" ];
extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
musnix.url = "github:musnix/musnix";
musnix.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs";
chrisbra-colorizer.flake = false;
chrisbra-colorizer.url = "git+https://github.com/chrisbra/colorizer";
co-author.flake = false;
co-author.url = "git+https://github.com/2KAbhishek/co-author.nvim";
conform.flake = false;
conform.url = "git+https://github.com/stevearc/conform.nvim";
conjure.flake = false;
conjure.url = "git+https://github.com/Olical/conjure";
nfnl.flake = false;
nfnl.url = "git+https://github.com/Olical/nfnl";
none-ls.flake = false;
none-ls.url = "git+https://github.com/nvimtools/none-ls.nvim";
nvim-grey.flake = false;
nvim-grey.url = "git+https://github.com/yorickpeterse/nvim-grey";
other-nvim.flake = false;
other-nvim.url = "git+https://github.com/rgroli/other.nvim";
tsc-nvim.flake = false;
tsc-nvim.url = "git+https://github.com/dmmulroy/tsc.nvim";
vim-rest-console.flake = false;
vim-rest-console.url = "git+https://github.com/diepm/vim-rest-console";
wiki-vim.flake = false;
wiki-vim.url = "git+https://github.com/lervag/wiki.vim";
nixpkgs-betaflight.url = "github:nixos/nixpkgs/c9223ea44c223379f22a091c57700fa378a758df";
};
outputs = inputs @ { self, nixpkgs, nix-darwin, musnix, nixos-hardware, home-manager, ... }: {
nixosConfigurations =
let
system = "x86_64-linux";
mypkgs = import ./pkgs {
inherit self inputs;
pkgs = nixpkgs.legacyPackages.${system};
};
in
{
tuxer = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
musnix.nixosModules.musnix
nixos-hardware.nixosModules.tuxedo-infinitybook-pro14-gen7
./nixos/configuration.nix
{
nixpkgs.overlays = [
(final: prev: {
betaflight-configurator = prev.betaflight-configurator.override {
inherit (inputs.nixpkgs-betaflight.legacyPackages.${prev.system}) nwjs;
};
})
];
}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.nazarii = import ./home-manager/home.nix;
home-manager.extraSpecialArgs = { inherit inputs mypkgs; };
}
];
};
tvbox = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-nvidia-sync
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
./tvbox/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.nazarii = import ./tvbox/home.nix;
home-manager.extraSpecialArgs = { inherit inputs mypkgs; };
}
];
};
};
darwinConfigurations =
let
system = "aarch64-darwin";
mypkgs = import ./pkgs {
inherit self inputs;
pkgs = nixpkgs.legacyPackages.${system};
};
in
{
darwin = nix-darwin.lib.darwinSystem {
inherit system;
modules = [
./darwin/configuration.nix
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.nazarii = import ./darwin/home.nix;
home-manager.extraSpecialArgs = { inherit inputs mypkgs; };
}
];
};
};
};
}