blob: 4b6fc1e81780014091fa91c9bef54c0bb1e0efc5 [file] [log] [blame]
Skyler Greya0da6b22024-02-11 22:53:41 +00001{
Samuel Shuert02ffd1e2024-02-13 21:37:15 -05002 description = "The Chimera nix configuration flake, a shared system configuration";
Skyler Greya0da6b22024-02-11 22:53:41 +00003
4 inputs = {
Skyler Greya0da6b22024-02-11 22:53:41 +00005 anyrun = {
6 url = "github:Kirottu/anyrun";
7 inputs.nixpkgs.follows = "nixpkgs";
8 };
9
Skyler Grey57f6b782024-03-13 14:43:09 +000010 collabora-gtimelog = {
11 url = "git+https://gitlab.collabora.com/collabora/gtimelog.git";
12 flake = false;
13 };
14 collabora-icon = {
15 url = "https://www.collabora.com/favicon.ico";
16 flake = false;
17 };
18
Skyler Greya0da6b22024-02-11 22:53:41 +000019 ewwsalmoomedits--eww-widgets = {
20 url = "github:saimoomedits/eww-widgets";
21 flake = false;
22 };
Skyler Grey4e230892024-02-13 22:58:46 +000023
Skyler Grey33e86632024-05-24 23:57:45 +000024 firefox-sidebery-gnome = {
25 url = "github:rafaelmardojai/firefox-gnome-theme";
26 flake = false;
27 };
28
Samuel Shuert2e42e672024-02-21 21:49:28 +000029 home-manager = {
30 url = "github:nix-community/home-manager";
31 inputs.nixpkgs.follows = "nixpkgs";
32 };
33
34 hyprland.url = "github:hyprwm/Hyprland";
35
36 nix-index-database = {
37 url = "github:nix-community/nix-index-database";
38 inputs.nixpkgs.follows = "nixpkgs";
39 };
40
Skyler Grey5db90f92024-02-25 11:24:31 +000041 nixos-hardware.url = "github:nixos/nixos-hardware/master";
42
Samuel Shuert2e42e672024-02-21 21:49:28 +000043 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
44
Skyler Grey4e230892024-02-13 22:58:46 +000045 nur.url = "github:nix-community/nur";
Samuel Shuert2e42e672024-02-21 21:49:28 +000046
47 snowfall-lib = {
Skyler Grey694958e2024-02-29 23:54:28 +000048 url = "github:snowfallorg/lib/dev";
Samuel Shuert2e42e672024-02-21 21:49:28 +000049 inputs.nixpkgs.follows = "nixpkgs";
50 };
51
52 sops-nix.url = "github:Mic92/sops-nix";
Samuel Shuert804f81b2024-02-21 22:20:01 +000053
54 templates.url = "git+https://git.clicks.codes/Templates";
Skyler Greya0da6b22024-02-11 22:53:41 +000055 };
56
Skyler Grey4e230892024-02-13 22:58:46 +000057 outputs =
58 { self, nixpkgs, ... }@inputs:
Skyler Grey694958e2024-02-29 23:54:28 +000059 inputs.snowfall-lib.mkFlake {
60 inherit inputs;
61 src = ./.;
62
63 homes.modules = [
Samuel Shuert659b5642024-02-23 20:47:43 +000064 inputs.anyrun.homeManagerModules.default
65 inputs.hyprland.homeManagerModules.default
66 inputs.nur.hmModules.nur
Samuel Shuert73a9d282024-02-23 18:43:32 +000067 inputs.nix-index-database.hmModules.nix-index
Skyler Grey57f6b782024-03-13 14:43:09 +000068 inputs.sops-nix.homeManagerModules.sops
Samuel Shuertd7ad8db2024-02-20 20:53:34 +000069 ];
Samuel Shuertd7ad8db2024-02-20 20:53:34 +000070
Samuel Shuert2e42e672024-02-21 21:49:28 +000071 systems.modules.nixos = [
Skyler Greya0da6b22024-02-11 22:53:41 +000072 inputs.hyprland.nixosModules.default
Samuel Shuert02ffd1e2024-02-13 21:37:15 -050073 inputs.nur.nixosModules.nur
Samuel Shuert2e42e672024-02-21 21:49:28 +000074 inputs.sops-nix.nixosModules.sops
Skyler Greya0da6b22024-02-11 22:53:41 +000075 ];
76
Skyler Grey5db90f92024-02-25 11:24:31 +000077 systems.hosts.greylag.modules = [
78 inputs.nixos-hardware.nixosModules.framework-13th-gen-intel
79 ];
80
Skyler Greya0da6b22024-02-11 22:53:41 +000081 snowfall = {
Skyler Grey4e230892024-02-13 22:58:46 +000082 namespace = "chimera";
Skyler Greya0da6b22024-02-11 22:53:41 +000083
Skyler Grey4e230892024-02-13 22:58:46 +000084 meta.name = "chimera";
85 meta.title = "Coded and Minion's Nix Configurations";
Skyler Greya0da6b22024-02-11 22:53:41 +000086 };
87
88 outputs-builder = channels: {
Skyler Grey4e230892024-02-13 22:58:46 +000089 formatter = nixpkgs.legacyPackages.${channels.nixpkgs.system}.nixfmt-rfc-style;
Skyler Greya0da6b22024-02-11 22:53:41 +000090 };
91
92 channels-config = {
93 allowUnfree = true;
94 };
95 };
96}