-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
88 lines (75 loc) · 2.29 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
{
description = "Zoey's personal config, aka dotfiles";
inputs = {
nixpkgs.url = "flake:nixpkgs/nixos-24.11";
nixpkgs-22.url = "flake:nixpkgs/nixos-22.11";
unstable.url = "flake:nixpkgs/nixos-unstable";
nix-std.url = "github:chessai/nix-std";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin/nix-darwin-24.11";
inputs.nixpkgs.follows = "unstable";
};
# ghostty = {
# url = "github:ghostty-org/ghostty";
# };
# My custom NeoVim config
# 26/09/2024 - using helix/zed
# lvim.url = "github:zoedsoupe/lvim";
# mnvim.url = "github:zoedsoupe/mnvim";
nixvim = {
url = "github:nix-community/nixvim/nixos-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
next-ls.url = "github:elixir-tools/next-ls?ref=v0.23.3";
# need to solve this about fcitx-engines
home-manager.url = "github:nix-community/home-manager?ref=release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Helix build from main
helix.url = "github:helix-editor/helix?ref=HEAD";
};
outputs = {nixpkgs, ...} @ inputs: let
# TODO migrate ISO user to (lib.host.mkISO)
inherit (nixpkgs.lib) nixosSystem;
inherit (lib.host) mkDarwin;
lib = import ./lib inputs;
in {
darwinConfigurations = {
cloudwalk-mac = mkDarwin {
host = "cloudwalk";
user = "zoeypessanha";
# neovim.enable = false;
};
zoedsoupe-mac = mkDarwin {
host = "personal-mac";
# neovim.enable = true;
};
};
installMedia = {
minimal = let
system = "x86_64-linux";
in
nixosSystem {
inherit system;
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.allowBroken = true;
};
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
./modules/iso/core.nix
./modules/iso/user.nix
./modules/iso/desktop.nix
];
};
};
};
}