-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
137 lines (129 loc) · 4.11 KB
/
Copy pathflake.nix
File metadata and controls
137 lines (129 loc) · 4.11 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
125
126
127
128
129
130
131
132
133
134
135
136
137
{
description = "KaitoTLex's modification to the already functional functorOS";
inputs = {
# Follow the nixpkgs in functorOS, which is verified to build properly before release.
# github:kaitotlex/functorOS is a stale mirror (agenix wiring reverted there);
# the canonical repo is the forgejo instance, which has agenix committed.
functorOS.url = "git+https://code.functor.systems/functor.systems/functorOS.git";
#functorOS.inputs.apple-firmware.url = "github:binary-star-systems/apple-firmware";
nixpkgs.follows = "functorOS/nixpkgs";
corecycler = {
url = "github:Daaboulex/linux-corecycler";
# inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
};
functoros-apple-silicon = {
#url = "github:flokli/nixos-apple-silicon/mainline-mesa";
url = "github:youwen5/functoros-apple-silicon";
# url = "github:nix-community/nixos-apple-silicon";
# inputs.nixpkgs.follows = "nixpkgs";
};
wallpapers = {
url = "github:kaitotlex/wallpaper";
flake = false;
};
nixvim = {
url = "github:kaitotlex/vix1";
# inputs.nixpkgs.follows = "nixpkgs";
};
nix-xilinx = {
# Recommended if you also override the default nixpkgs flake, common among
# nixos-unstable users:
inputs.nixpkgs.follows = "nixpkgs";
url = "github:MIT-OpenCompute/xilinx-flake";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
tmux = {
url = "github:jakehamilton/tmux";
inputs.nixpkgs.follows = "nixpkgs";
};
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
steam-asahi = {
url = "git+ssh://git@github.com/KaitoTLex/nixos-asahi-patch";
inputs.nixpkgs.follows = "nixpkgs";
};
polycule-nix = {
url = "github:KaitoTLex/Polycule-Nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{
nixpkgs,
self,
flake-utils,
functorOS,
...
}:
let
functorOSLib = import functorOS {
inherit
inputs
self
nixpkgs
functorOS
;
};
kaitotlex = functorOSLib.user.instantiate {
username = "kaitotlex";
homeDirectory = "/home/kaitotlex";
fullName = "KaitoTLex";
email = "renl@kaitotlex.systems";
configureGitUser = true;
configuration = {
imports = [
./home.nix
];
functorOS.desktop.niri.enable = true;
# functorOS.desktop.hyprland.screenlocker.useCrashFix = true;
# functorOS.desktop.waybar.variant = "compact";
# functorOS.desktop.hyprland.screenlocker.monitor = "eDP-1";
home.stateVersion = "26.05";
};
};
in
{
nixosConfigurations = {
shirakami = functorOSLib.system.instantiate {
hostname = "shirakami-fubuki";
users = [ kaitotlex ];
configuration =
{ ... }:
{
imports = [
(import ./config.nix inputs)
./hosts/shirakami-fubuki/hardware-configuration.nix
(import ./hosts/shirakami-fubuki/default.nix inputs)
];
};
};
# `nh os <boot|switch> .` resolves the target by the machine's actual
# hostname (networking.hostName = "shirakami-fubuki") unless -H is
# passed, but the flake attribute above is kept as "shirakami" - alias
# it so both names build the same configuration.
shirakami-fubuki = self.nixosConfigurations.shirakami;
kanade = functorOSLib.system.instantiate {
hostname = "kanade";
users = [ kaitotlex ];
configuration =
{ ... }:
{
imports = [
(import ./config.nix inputs)
./hosts/kanade/hardware-configuration.nix
(import ./hosts/kanade/default.nix inputs)
];
};
};
};
};
}