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