-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
76 lines (63 loc) · 1.81 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
{
description = "first flake";
inputs = {
nixpkgs = {
#url = "github:NixOS/nixpkgs/nixos-23.11";
url = "github:NixOS/nixpkgs/nixos-24.05";
};
home-manager = {
#url = "github:nix-community/home-manager/release-23.11";
url = "github:nix-community/home-manager/release-24.05";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
# Overriding hyperland package to get more opts
#hyprland.url = "github:hyprwm/Hyprland";
stylix = {
#url = "github:danth/stylix/release-23.11";
url = "github:danth/stylix/release-24.05";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
spicetify-nix = {
url = "github:the-argus/spicetify-nix";
};
# Configure neovim with Nix!
nixvim = {
#url = "github:nix-community/nixvim/nixos-23.11";
url = "github:nix-community/nixvim/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {self, nixpkgs, home-manager, stylix, spicetify-nix, nixvim, ...} @inputs:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
hermes = lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
# pass in stylix theming modules for system level theming (bootloaders, etc)
modules = [stylix.nixosModules.stylix ./configuration.nix];
#modules = [./configuration.nix];
};
};
homeConfigurations = {
gideon = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit spicetify-nix;};
# pass in stylix theming modules for user apps
modules = [
stylix.homeManagerModules.stylix
nixvim.homeManagerModules.nixvim
./home.nix
];
};
};
};
}