-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
70 lines (61 loc) · 1.72 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
{
description = "My NixOS configurations";
# https://github.com/eg-ayoub/nix-files
inputs = {
# nixpkgs
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
# home-manager
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
};
outputs = { nixpkgs, nixos-hardware, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
# machine profiles
nixosConfigurations = {
# 1 - vm : (temporary) vm used to test this config
vm = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; };
modules = [
./hosts/vm/configuration.nix
];
};
# 2 - mouse : (laptop) Tiling WM + dev tools
mouse = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; };
modules = [
./hosts/mouse/configuration.nix
nixos-hardware.nixosModules.dell-xps-15-7590-nvidia
];
};
# 3 - kitty : (laptop) KDE + Gaming
tom = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; };
modules = [
./hosts/tom/configuration.nix
nixos-hardware.nixosModules.lenovo-legion-16ach6h
];
};
# 4 - tiger : (desktop) KDE + Gaming
# 5 - pup : (server) HomeLab
pup = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; };
modules = [
./hosts/pup/configuration.nix
];
};
};
};
}