-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
95 lines (90 loc) · 2.38 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
{
description = "EloToJa's nixos configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
hyprland = {
url = "github:hyprwm/Hyprland/main?submodules=true";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
wezterm.url = "github:wez/wezterm/main?dir=nix";
hypr-contrib.url = "github:hyprwm/contrib";
nix-gaming.url = "github:fufexan/nix-gaming";
hyprmag.url = "github:SIMULATAN/hyprmag";
zen-browser.url = "github:0xc000022070/zen-browser-flake";
catppuccin.url = "github:catppuccin/nix";
};
outputs = {
nixpkgs,
self,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
variables = {
username = "elotoja";
git = {
userName = "EloToJaa";
userEmail = "[email protected]";
};
catppuccin = {
flavor = "mocha";
accent = "blue";
};
timezone = "Europe/Warsaw";
locale = "en_GB.UTF-8";
keyboardLayout = "pl,pl";
stateVersion = "25.05";
nfs = {
local = "192.168.0.41";
remote = "truenas.eagle-perch.ts.net";
};
ssh.keys = {
user = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMtWaehMf7X23uUZDY5J4fG4/exqj5jWQVaLLXloaO/g [email protected]";
};
};
in {
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./hosts/desktop];
specialArgs = {
host = "desktop";
inherit self inputs variables;
};
};
laptop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./hosts/laptop];
specialArgs = {
host = "laptop";
inherit self inputs variables;
};
};
server = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./hosts/server];
specialArgs = {
host = "server";
inherit self inputs variables;
};
};
vm = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./hosts/vm];
specialArgs = {
host = "vm";
inherit self inputs variables;
};
};
};
};
}