-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
96 lines (90 loc) · 2.65 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
{
description = "Lucifer's NIX";
inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-colors.url = "github:misterio77/nix-colors";
ags.url = "github:/Aylur/ags/v1";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
submodules = true;
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
type = "git";
url = "https://github.com/Arana-Jayavihan/spicetify-nix.git";
rev = "834c8f9bb8a7b63ba242f9ce0db81708c620f2bc";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox = {
type = "git";
url = "https://github.com/nix-community/flake-firefox-nightly.git";
#rev = "d20be2e9c1b201e4253e79a200f0a2ed7fc27441";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
};
outputs = inputs@{ nixpkgs-stable, nixpkgs, home-manager, impermanence, nix-colors, spicetify-nix, firefox, ... }:
let
system = "x86_64-linux";
inherit (import ./options.nix) username hostname;
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
pkgs-stable = import nixpkgs-stable {
inherit system;
config = {
allowUnfree = true;
};
};
nixColorsContrib = nix-colors.lib.contrib { inherit pkgs; };
in {
nixosConfigurations = {
"${hostname}" = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit system;
inherit inputs;
inherit username;
inherit hostname;
inherit pkgs-stable;
inherit nixColorsContrib;
inherit firefox;
};
modules = [
./system.nix
impermanence.nixosModules.impermanence
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = {
inherit username;
inherit inputs;
inherit pkgs-stable;
inherit nixColorsContrib;
inherit spicetify-nix;
inherit firefox;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.${username} = import ./home.nix;
}
];
};
};
};
}