-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
124 lines (116 loc) · 3.67 KB
/
flake.nix
File metadata and controls
124 lines (116 loc) · 3.67 KB
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
{
description = "Config for my computers";
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} (
{
inputs,
flake-parts-lib,
...
}: let
module = {
imports = [
inputs.lite-config.flakeModules.default
];
config = {
flake.flakeModule = module;
lite-config = {
nixpkgs = {
config = {
allowUnfree = true;
};
overlays = [
(inputs.get-flake ./overlays/neovim).overlay
(inputs.get-flake ./overlays/fish).overlay
(import ./overlays/extra-pkgs)
inputs.niri.overlays.niri
inputs.bun2nix.overlays.default
(final: prev:
prev.lib.optionalAttrs prev.stdenv.isDarwin (let
nixpkgs_swift = import inputs.nixpkgs_swift {system = prev.stdenv.hostPlatform.system;};
in {
inherit (nixpkgs_swift) swift swiftPackages dotnetCorePackages dotnet-sdk dotnet-runtime;
}))
];
};
systemModules = [./system];
homeModules = [./home];
hosts = {
liteye-mbp = {
system = "aarch64-darwin";
hostModule = ./hosts/lite-meta-macbook;
};
};
homeConfigurations = {
liteye = {
myConfig = {
neovim.enable = true;
fish.enable = true;
};
};
};
};
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
};
};
};
in {imports = [module ./shell.nix];}
);
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs_swift.url = "github:nixos/nixpkgs?rev=5912c1772a44e31bf1c63c0390b90501e5026886";
quickwit-nixpkgs.url = "github:nixos/nixpkgs?rev=18536bf04cd71abd345f9579158841376fdd0c5a";
flake-parts.url = "github:hercules-ci/flake-parts";
lite-config.url = "github:yelite/lite-config";
get-flake.url = "github:ursi/get-flake";
nix-darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
mac-app-util = {
url = "github:hraban/mac-app-util";
inputs.nixpkgs.follows = "nixpkgs_swift";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
deploy-rs = {
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
microvm = {
url = "github:astro/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-rosetta-builder = {
url = "github:cpick/nix-rosetta-builder";
inputs.nixpkgs.follows = "nixpkgs";
};
bun2nix = {
url = "github:nix-community/bun2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-openclaw = {
url = "github:openclaw/nix-openclaw";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};
}