-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
173 lines (156 loc) · 4.82 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:LichHunter/stylix";
# inputs.nixpkgs.follows = "nixpkgs-stable";
};
emacs-overlay.url = "github:nix-community/emacs-overlay/master";
#hyprland.url = "github:hyprwm/Hyprland";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; # TODO temporary fix while hyprland won't be fixed - https://github.com/hyprwm/Hyprland/issues/5891
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland"; # <- make sure this line is present for the plugin to work as intended
};
nur.url = "github:nix-community/NUR";
arkenfox.url = "github:dwarfmaster/arkenfox-nixos";
# umu-launcher
umu= {
url = "git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
# Uzume dependencies
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
arion.url = "github:hercules-ci/arion";
sops-nix.url = "github:Mic92/sops-nix";
vpn-confinement = {
url = "github:Maroka-chan/VPN-Confinement";
};
};
outputs = inputs@{ self, nixpkgs,
home-manager,
stylix,
nixos-hardware,
emacs-overlay,
hyprland,
nur,
arkenfox,
disko,
... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"dotnet-sdk-6.0.428"
"aspnetcore-runtime-6.0.36"
];
};
overlays = [
emacs-overlay.overlay
nur.overlay
(import ./my-overlays.nix)
];
};
spkgs = import inputs.nixpkgs-stable {
inherit system;
config = {
allowUnfree = true;
};
overlays = [
emacs-overlay.overlay
nur.overlay
(import ./my-overlays.nix)
];
};
defaultNixOptions = {
nix.settings.auto-optimise-store = true;
};
mkComputer = configurationNix: extraModules: extraHomeModules: username: inputs.nixpkgs.lib.nixosSystem {
inherit system ;
specialArgs = { inherit system inputs pkgs nixos-hardware extraHomeModules spkgs username; };
modules = [
stylix.nixosModules.stylix
configurationNix
defaultNixOptions
] ++ extraModules;
};
in {
nixosConfigurations = {
laptop = mkComputer
./machines/laptop
[
nixos-hardware.nixosModules.omen-15-en1007sa
disko.nixosModules.disko
] # extra modules
[
./modules/git
./modules/alacritty
./modules/mako
#./modules/impermanence
./modules/kanshi
./modules/shell
./modules/browser
./modules/vpn
./modules/gaming
./modules/filemanager/ranger
./modules/music/beets
./modules/music/ncmpcpp
./modules/music/cli-visualizer
# TODO not yet in my current homemanager, need to update it
#./modules/fastfetch
./modules/distrobox
#Themes
# TODO in default.nix we have hardcode config of dconf and this need to be extracted
#./modules/rice/Frost-Phoenix
./modules/rice/my
arkenfox.hmModules.arkenfox
] # extra modules to be loaded by home-manager
"omen" # username
;
# asus laptop
uzume = mkComputer
./machines/uzume
[
disko.nixosModules.disko
inputs.arion.nixosModules.arion
inputs.vpn-confinement.nixosModules.default
] # extra nix modules
[
./modules/shell/zsh
./modules/shell/addon/starship
] # extra home-manager modules
"uzume" #username
;
# minimal install for asus laptop
uzume-minimal = mkComputer
./machines/uzume-minimal
[
disko.nixosModules.disko
] # extra nix modules
[
./modules/shell/zsh
./modules/shell/addon/starship
] # extra home-manager modules
"uzume" #username
;
};
};
}