-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
70 lines (66 loc) · 2.11 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 = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
# inputs.nixpkgs.follows = "hyprland";
};
matugen.url = "github:InioX/matugen?ref=v2.2.0";
spicetify-nix.url = "github:the-argus/spicetify-nix";
homeManager={
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix";
auto-cpufreq = {
url = "github:AdnanHodzic/auto-cpufreq";
inputs.nixpkgs.follows = "nixpkgs";
};
ags.url = "github:Aylur/ags";
nix-colors.url = "github:misterio77/nix-colors";
};
outputs = { self,nixpkgs,home-manager, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
myOverlay = final: prev: {
libfprint = prev.libfprint.overrideAttrs (old: {
src = builtins.fetchGit {
url = "https://gitlab.freedesktop.org/depau/libfprint.git";
ref = "elanmoc2";
rev = "f4439ce96b2938fea8d4f42223d7faea05bd4048";
};
});
fprintd = prev.fprintd.overrideAttrs (old: {
mesonCheckFlags = [
"--no-suite" "fprintd:TestPamFprintd"
"--no-suite" "fprintd:FPrintdManagerPreStartTests"
];
});
};
in
{
nixosConfigurations.roronoa = nixpkgs.lib.nixosSystem {
specialArgs = {inherit self system inputs myOverlay;};
modules = [
./configuration.nix
./hardware-configuration.nix
./packages.nix
# ./gaming.nix
inputs.catppuccin.nixosModules.catppuccin
inputs.auto-cpufreq.nixosModules.default
];
};
#remains unused for now can be accessed using home-manager switch
homeConfigurations.roronoa = home-manager.lib.homeManagerConfiguration{
inherit pkgs;
extraSpecialArgs = {inherit system inputs;};
modules=[
./home-manager/home.nix
inputs.catppuccin.homeManagerModules.catppuccin
];
};
};
}