-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
executable file
·53 lines (51 loc) · 1.74 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
{
description = "ALK's NixOS conf.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim.url = "github:alcestide/nixvim";
nix-alien.url = "github:thiagokokada/nix-alien";
home-manager.url = "github:nix-community/home-manager/release-24.11";
agenix.url = "github:ryantm/agenix";
flake-utils.url = "github:numtide/flake-utils";
catppuccin.url = "github:catppuccin/nix";
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
};
outputs = {
self,nixpkgs,flake-utils,
home-manager,catppuccin,nixvim,
nix-alien,agenix,
...
} @ inputs: let
inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib;
host = "horus";
username = "alcestide";
system = ["x86_64-linux"];
in {
inherit lib;
nixosConfigurations = {
"${host}" =
nixpkgs.lib.nixosSystem {
specialArgs = {inherit self inputs outputs system username host nixvim;};
modules = [
./global/configuration.nix
agenix.nixosModules.default
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${username} =
{ imports = [
./home-manager/home.nix
catppuccin.homeManagerModules.catppuccin
];
};
};
}
];
};
};
};
}