-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
135 lines (128 loc) · 4.01 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
description = "home-manager flake";
inputs = {
# Nix
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; # Update version
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.11"; # Update version
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
# Packages
catppuccin.url = "github:catppuccin/nix";
# cosmic-manager = {
# url = "github:HeitorAugustoLN/cosmic-manager";
# inputs = {
# nixpkgs.follows = "nixpkgs";
# # home-manager.follows = "home-manager";
# };
# };
helix = {
url = "github:helix-editor/helix";
inputs.nixpkgs.follows = "nixpkgs";
};
# hyprland.url = "github:hyprwm/Hyprland"; # Switched to nixpkgs version for now
# hyprland-plugins = {
# url = "github:hyprwm/hyprland-plugins";
# inputs.hyprland.follows = "hyprland";
# };
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
nixcord = {
url = "github:kaylorben/nixcord";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim/nixos-24.11"; # Update version
inputs.nixpkgs.follows = "nixpkgs";
};
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
rofi-applets = {
url = "gitlab:Zhaith-Izaliel/rofi-applets";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:MarceColl/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
home-manager,
...
}@inputs:
let
homeSystem =
system: hostname: username:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ inputs.hyprpanel.overlay ];
};
unstablePkgs = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
in
home-manager.lib.homeManagerConfiguration {
pkgs = pkgs;
extraSpecialArgs = {
inherit
inputs
pkgs
unstablePkgs
system
hostname
username
;
};
modules = [
# Allow unfree packages
{ nixpkgs.config.allowUnfree = true; }
./hosts/${hostname}.nix
inputs.catppuccin.homeManagerModules.catppuccin
# inputs.cosmic-manager.homeManagerModules.cosmic-manager
# inputs.hyprland.homeManagerModules.default # Switched to nixpkgs version for now
inputs.hyprpanel.homeManagerModules.hyprpanel
inputs.nixcord.homeManagerModules.nixcord
inputs.nixvim.homeManagerModules.nixvim
inputs.nix-flatpak.homeManagerModules.nix-flatpak
inputs.plasma-manager.homeManagerModules.plasma-manager
inputs.rofi-applets.homeManagerModules.default
inputs.sops-nix.homeManagerModules.sops
inputs.spicetify-nix.homeManagerModules.default
];
};
in
{
homeConfigurations = {
# NixOS hosts
"cycad@Lenny" = homeSystem "x86_64-linux" "Lenny" "cycad";
"cycad@NixBerry" = homeSystem "aarch64-linux" "NixBerry" "cycad";
# nix-on-droid hosts
"nix-on-droid@localhost" = homeSystem "aarch64-linux" "localhost" "nix-on-droid"; # Username must be set to nix-on-droid
};
};
}