blob: f80e975e46d21285dced5ebc87c068ffbd3a857a (
plain)
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
|
{
description = "NixOS configuration";
inputs = {
# nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# home manager
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# hyprland
hyprland.url = "github:hyprwm/Hyprland";
hyprland.inputs.nixpkgs.follows = "nixpkgs";
# hyprland plugins
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
hyprland-plugins.inputs.hyprland.follows = "hyprland";
# hyprland hy3
hy3.url = "github:outfoxxed/hy3";
hy3.inputs.hyprland.follows = "hyprland";
# sops
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
# astal
astal.url = "github:aylur/astal";
astal.inputs.nixpkgs.follows = "nixpkgs";
# talc
talc.url = "git+https://g.trimill.xyz/trimill/talc";
talc.inputs.nixpkgs.follows = "nixpkgs";
# unofficial-homestuck-collection
unofficial-homestuck-collection.url = "git+https://g.freya.cat/freya/unofficial-homestuck-collection-nix";
unofficial-homestuck-collection.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
nixpkgs,
flake-utils,
...
} @ inputs:
let
options = import ./options.nix;
systems = ["x86_64-linux"];
in rec {
nixosConfigurations = {
shinji = import ./hosts/shinji.nix { inherit inputs options; };
kaworu = import ./hosts/kaworu.nix { inherit inputs options; };
};
homeConfigurations = {
shinji = nixosConfigurations.shinji.config.home-manager.users.${options.user}.home;
kaworu = nixosConfigurations.kaworu.config.home-manager.users.${options.user}.home;
};
packages = builtins.listToAttrs (map (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
name = system;
value = import ./pkgs { inherit pkgs inputs system options; };
}
) systems);
legacyPackages = packages;
};
}
|