Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 1 | { |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 2 | description = "The Chimera nix configuration flake, a shared system configuration"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 3 | |
| 4 | inputs = { |
| 5 | nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
| 6 | |
| 7 | snowfall-lib = { |
| 8 | url = "github:snowfallorg/lib"; |
| 9 | inputs.nixpkgs.follows = "nixpkgs"; |
| 10 | }; |
| 11 | |
| 12 | home-manager = { |
| 13 | url = "github:nix-community/home-manager"; |
| 14 | inputs.nixpkgs.follows = "nixpkgs"; |
| 15 | }; |
| 16 | |
| 17 | nix-index-database = { |
| 18 | url = "github:nix-community/nix-index-database"; |
| 19 | inputs.nixpkgs.follows = "nixpkgs"; |
| 20 | }; |
| 21 | |
| 22 | hyprland.url = "github:hyprwm/Hyprland"; |
| 23 | |
| 24 | anyrun = { |
| 25 | url = "github:Kirottu/anyrun"; |
| 26 | inputs.nixpkgs.follows = "nixpkgs"; |
| 27 | }; |
| 28 | |
| 29 | ewwsalmoomedits--eww-widgets = { |
| 30 | url = "github:saimoomedits/eww-widgets"; |
| 31 | flake = false; |
| 32 | }; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 33 | |
| 34 | nur.url = "github:nix-community/nur"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 35 | }; |
| 36 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 37 | outputs = |
| 38 | { self, nixpkgs, ... }@inputs: |
Samuel Shuert | d7ad8db | 2024-02-20 20:53:34 +0000 | [diff] [blame] | 39 | let |
| 40 | extraHomeModules = [ |
| 41 | inputs.anyrun.homeManagerModules.default |
| 42 | inputs.hyprland.homeManagerModules.default |
| 43 | inputs.nur.hmModules.nur |
| 44 | ]; |
| 45 | in inputs.snowfall-lib.mkFlake { |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 46 | inherit inputs; |
| 47 | src = ./.; |
| 48 | |
Samuel Shuert | d7ad8db | 2024-02-20 20:53:34 +0000 | [diff] [blame] | 49 | # homes.modules = [ |
| 50 | # TODO: inputs.nix-index-database.hmModules.nix-index |
| 51 | # ]; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 52 | |
Samuel Shuert | d7ad8db | 2024-02-20 20:53:34 +0000 | [diff] [blame] | 53 | homes.users."coded@shorthair".modules = extraHomeModules; |
| 54 | |
| 55 | homes.users."minion@greylag".modules = extraHomeModules; |
| 56 | |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 57 | |
| 58 | system.modules.nixos = [ |
| 59 | inputs.hyprland.nixosModules.default |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 60 | inputs.nur.nixosModules.nur |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 61 | ]; |
| 62 | |
| 63 | snowfall = { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 64 | namespace = "chimera"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 65 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 66 | meta.name = "chimera"; |
| 67 | meta.title = "Coded and Minion's Nix Configurations"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | outputs-builder = channels: { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 71 | formatter = nixpkgs.legacyPackages.${channels.nixpkgs.system}.nixfmt-rfc-style; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 72 | }; |
| 73 | |
| 74 | channels-config = { |
| 75 | allowUnfree = true; |
| 76 | }; |
| 77 | }; |
| 78 | } |