-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
executable file
·94 lines (88 loc) · 3.33 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
{
description = "NixLand configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-firefox.url =
"github:nixos/nixpkgs?rev=c4a9c4f8d2f1196e4b08dc8477b2575ee4e3e3be";
# nixpkgs.url = "github:diniamo/nixpkgs/nvidia-555";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-master.url =
"github:nixos/nixpkgs?rev=65f5cbb5f29450dc32a2835aeb8cabfca2fedc09";
# nixpkgs-nvidia.url = "github:diniamo/nixpkgs/nvidia-555";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/hyprland";
# hyprland.url =
# "git+https://github.com/hyprwm/Hyprland?ref=refs/tags/v0.43.0&submodules=1";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
# hyprlock = { url = "github:hyprwm/Hyprlock/"; };
ags.url = "github:Aylur/ags";
astal.url = "github:Aylur/astal";
# matugen.url = "github:InioX/matugen?ref=v2.2.0";
spicetify = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
spmp = { url = "github:toasterofbread/spmp"; };
arrpc = { url = "github:notashelf/arrpc-flake"; };
# personal neovim flake
nvim-flake = { url = "github:cenunix/nvim-flake"; };
# zellij status-bar plugin
# zjstatus = { url = "github:dj95/zjstatus"; };
};
outputs = { self, nixpkgs, ... }@inputs:
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
in rec {
packages = forAllSystems (
# Your custom packages Acessible through 'nix build', 'nix shell', etc
system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./pkgs { inherit pkgs; });
devShells = forAllSystems (
# Devshell for bootstrapping Acessible through 'nix develop' or 'nix-shell' (legacy)
system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./shell.nix { inherit pkgs; });
overlays = import ./overlays {
inherit inputs outputs packages;
}; # Your custom packages and modifications, exported as overlays
nixosModules = import
./modules/nixos; # Reusable nixos modules you might want to export
homeManagerModules = import
./modules/home-manager; # These are usually stuff you would upstream into nixpkgs
lib = import ./lib { inherit inputs; };
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
callisto = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs self lib; };
modules = [ ./hosts/callisto ./modules ];
};
europa = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs outputs self lib;
asztal = self.packages.x86_64-linux.default;
};
modules = [ ./hosts/europa ./modules ];
};
};
};
}