-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
99 lines (95 loc) · 2.84 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
{
description = "nixed0";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# nixpkgs.follows = "hyprland/nixpkgs";
hardware.url = "github:NixOS/nixos-hardware";
ucodenix.url = "github:uxodb/ucodenix";
catppuccin.url = "github:catppuccin/nix?ref=v1.2.1";
nix-colors.url = "github:misterio77/nix-colors";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";#?ref=v0.45.2";#?rev=e75e2cdac79417ffdbbbe903f72668953483a4e7";
};
hypr-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
Hyprspace = {
url = "github:KZDKM/Hyprspace";
inputs.hyprland.follows = "hyprland";
};
dynamicpointer = {
url = "github:VirtCode/hypr-dynamic-cursors";
inputs.hyprland.follows = "hyprland";
};
Hyprchroma = {
url = "github:alexhulbert/Hyprchroma";
# inputs.hyprland.follows = "hyprland";
};
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
json2nix = {
url = "github:sempruijs/json2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
solaar = {
url = "github:Svenum/Solaar-Flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, hyprland, ... }@inputs:
let
xSettings = {
system = "x86_64-linux";
timezone = "Europe/Vienna";
locale = "en_US.UTF-8";
username = "uxodb";
hostname = "nixed0";
appConfig = "${inputs.self}/user/conf";
theme = "catppuccin-mocha";
};
xpkgs = nixpkgs.legacyPackages.${xSettings.system};
in
{
devShells.${xSettings.system} = {
default = import ./shell/build.nix { pkgs = xpkgs; inherit xSettings; };
};
nixosConfigurations.nixed0 = nixpkgs.lib.nixosSystem {
system = xSettings.system;
specialArgs = {
inherit inputs;
inherit xSettings;
};
modules = [
./host/configuration.nix
inputs.sops-nix.nixosModules.sops
inputs.catppuccin.nixosModules.catppuccin
inputs.ucodenix.nixosModules.default
inputs.solaar.nixosModules.default
];
};
homeConfigurations."uxodb" = home-manager.lib.homeManagerConfiguration {
pkgs = xpkgs;
extraSpecialArgs = {
inherit inputs;
inherit xSettings;
};
modules = [
./user/home.nix
inputs.hyprland.homeManagerModules.default
inputs.catppuccin.homeManagerModules.catppuccin
inputs.nix-colors.homeManagerModules.default
];
};
};
}