-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
123 lines (106 loc) · 3.15 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
{
description = "Ladas552 NixOS config";
inputs = {
# nixpkgs links
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.11";
# Home-manager
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-on-droid = {
url = "github:t184256/nix-on-droid";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nixos-wsl.url = "github:nix-community/NixOS-WSL";
# Ghostty master branch
ghostty.url = "github:ghostty-org/ghostty";
stylix.url = "github:danth/stylix";
# Neovim
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
# Niri
niri.url = "github:sodiboo/niri-flake";
# Secrets
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Overlays
# neorg-overlay.url = "github:nvim-neorg/nixpkgs-neorg-overlay";
# emacs-overlay.url = "github:nix-community/emacs-overlay";
# i don't like compiling rust
helix-overlay.url = "github:helix-editor/helix";
nixos-hardware.url = "github:nixos/nixos-hardware";
# Games
# aagl = {
# url = "github:ezKEa/aagl-gtk-on-nix";
# inputs.nixpkgs.follows = "nixpkgs"; # Name of nixpkgs input you want to use
# };
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
};
outputs =
{
self,
nixpkgs,
nixpkgs-stable,
home-manager,
...
}@inputs:
# this is only for pkgs-stable because I don't know how to use nixpkgs.config for pkgs-stable along for unstable pkgs, pkgs doesn't get imported btw
let
pkgs-stable = import nixpkgs-stable {
system = "x86_64-linux";
config.allowUnfree = true;
};
in
{
nixosConfigurations = {
# My Lenovo 50-70y laptop with nvidia 860M
NixToks = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs pkgs-stable;
};
modules = [ ./hosts/NixToks ];
};
# My Acer Swift Go 14 with ryzen 7640U
NixPort = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs pkgs-stable;
};
modules = [ ./hosts/NixPort ];
};
# NixOS WSL setup
NixwsL = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs pkgs-stable;
};
modules = [ ./hosts/NixwsL ];
};
# Nix VM for testing major config changes
NixVM = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs pkgs-stable;
};
modules = [ ./hosts/NixVM ];
};
};
# My android phone/tablet for Termux
nixOnDroidConfigurations = {
NixMux = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
extraSpecialArgs = {
inherit inputs;
};
pkgs = import nixpkgs {
system = "aarch64-linux";
config.allowUnfree = true;
};
modules = [ ./hosts/NixMux ];
};
};
};
}