-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
executable file
·53 lines (44 loc) · 1.75 KB
/
flake.nix
File metadata and controls
executable file
·53 lines (44 loc) · 1.75 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
{
description = "NixOS + Home Manager setup with Hyprland";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-claude.url = "github:NixOS/nixpkgs/d6c62af44d89b482633f6fab7c4feb08c6b59bff";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
mediaplayer.url = "./modules/home/waybar/mediaplayer";
};
outputs = { self, nixpkgs, nixpkgs-claude, home-manager, hyprland, mediaplayer, nix-flatpak, ... } @ inputs:
let
system = "x86_64-linux";
username = "thoren";
mkHost = hostname: nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/${hostname}/configuration.nix
];
specialArgs = {
inherit username inputs;
};
};
in
{
# The following lines are formatted carefully to work with the installation script.
nixosConfigurations = {
default = mkHost "default"; # Minimal configuration for generic systems
desktop = mkHost "desktop"; # Desktop machine with NVIDIA RTX 3060 12GB and AMD Ryzen 7 7800X3D
spectre = mkHost "spectre"; # 2015 HP Spectre x360 with Intel integrated graphics
precision = mkHost "precision"; # Dell Precision 5560 with NVIDIA RTX A2000 and Intel integrated graphics
};
};
}