-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
91 lines (72 loc) · 2.61 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
{
description = "NixOS Hyprland - Exatio's flake";
inputs = {
#nixpkgs.url = "nixpkgs/nixos-24.11";
nixpkgs.url = "nixpkgs/nixos-unstable";
#home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hardware.url = "github:nixos/nixos-hardware";
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
hyprland-plugins.inputs.hyprland.follows = "hyprland";
catppuccin.url = "github:catppuccin/nix";
lanzaboote.url = "github:nix-community/lanzaboote/v0.4.2";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
# temporary, as the official nixpkgs ryujinx package is down
ryujinx.url = "github:Naxdy/Ryujinx";
};
outputs = { self, nixpkgs, home-manager, catppuccin, lanzaboote, ... }@inputs:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
#unstable-pkgs = import nixpkgs-unstable { inherit system; config.allowUnfree = true; };
isDesktop = builtins.hasAttr "desktop" self.nixosConfigurations;
in {
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
catppuccin.nixosModules.catppuccin
lanzaboote.nixosModules.lanzaboote
./hosts/laptop
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.exatio = {
imports = [
./home/exatio.nix
catppuccin.homeModules.catppuccin
];
};
home-manager.extraSpecialArgs = { inherit inputs pkgs isDesktop; };
}
];
specialArgs = { inherit inputs; };
};
desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
catppuccin.nixosModules.catppuccin
lanzaboote.nixosModules.lanzaboote
./hosts/desktop
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.exatio = {
imports = [
./home/exatio.nix
catppuccin.homeModules.catppuccin
];
};
home-manager.extraSpecialArgs = { inherit inputs pkgs isDesktop; };
}
];
specialArgs = { inherit inputs; };
};
};
};
}