-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
124 lines (118 loc) · 3.36 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
{
description = "Nix configuration";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
pdfblancs.url = "git+ssh://[email protected]/bitsikas/pdfblanks";
pdfblancs.inputs.nixpkgs.follows = "nixpkgs";
artframe.url = "git+ssh://[email protected]/bitsikas/artframe";
artframe.inputs.nixpkgs.follows = "nixpkgs";
fittrack.url = "git+ssh://[email protected]/bitsikas/fittrack";
fittrack.inputs.nixpkgs.follows = "nixpkgs";
milia.url = "git+ssh://[email protected]/bitsikas/milia";
milia.inputs.nixpkgs.follows = "nixpkgs";
ihasb33r = {
url = "git+ssh://[email protected]/bitsikas/ihasb33r";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
};
};
outputs = {
self,
nixpkgs,
home-manager,
flake-utils,
nixpkgs-unstable,
nixos-hardware,
nixos-generators,
disko,
ghostty,
...
} @ inputs:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {inherit system;};
unstable-pkgs = import nixpkgs-unstable {inherit system;};
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.openssh
pkgs.rsync # Included by default on NixOS
# pkgs.nixFlakes
pkgs.nixVersions.stable
pkgs.home-manager
unstable-pkgs.git
];
};
}
)
// {
homeConfigurations = let
mkHome = import ./lib/mkHome.nix {
inherit
nixpkgs
inputs
nixpkgs-unstable
home-manager
;
};
in {
"Kostas.Papakon@MB-C02DQ48VMD6T" = mkHome "Kostas.Papakon" {
system = "x86_64-darwin";
darwin = true;
};
"kostas.papakonstantinou@MB-L33Y5V90G5T" = mkHome "kostas.papakonstantinou" {
system = "aarch64-darwin";
darwin = true;
};
"linuxcli" = mkHome "kp" {system = "x86_64-linux";};
};
nixosConfigurations = let
mkSystem = import ./lib/mkSystem.nix {
inherit
nixpkgs
inputs
nixpkgs-unstable
nixos-hardware
disko
;
};
in {
qemu-aarch64 = mkSystem "vm-qemu-aarch64" {
system = "aarch64-linux";
user = "kostas";
};
qemu-x86_64 = mkSystem "vm-qemu-x86_64" {
system = "aarch64-linux";
user = "kostas";
};
spectre = mkSystem "spectre" {
system = "x86_64-linux";
user = "kostas";
};
beershot = mkSystem "pi4" {
system = "aarch64-linux";
user = "kostas";
};
hetzner-cloud = mkSystem "hetzner-cloud" {
system = "x86_64-linux";
user = "kostas";
usedisko = true;
};
};
};
}