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 | |
Skyler Grey | 5db90f9 | 2024-02-25 11:24:31 +0000 | [diff] [blame] | 27 | nixos-hardware.url = "github:nixos/nixos-hardware/master"; |
| 28 | |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 29 | nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
| 30 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 31 | nur.url = "github:nix-community/nur"; |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 32 | |
| 33 | snowfall-lib = { |
| 34 | url = "github:snowfallorg/lib"; |
| 35 | inputs.nixpkgs.follows = "nixpkgs"; |
| 36 | }; |
| 37 | |
| 38 | sops-nix.url = "github:Mic92/sops-nix"; |
Samuel Shuert | 804f81b | 2024-02-21 22:20:01 +0000 | [diff] [blame] | 39 | |
| 40 | templates.url = "git+https://git.clicks.codes/Templates"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 41 | }; |
| 42 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 43 | outputs = |
| 44 | { self, nixpkgs, ... }@inputs: |
Samuel Shuert | d7ad8db | 2024-02-20 20:53:34 +0000 | [diff] [blame] | 45 | let |
| 46 | extraHomeModules = [ |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 47 | inputs.anyrun.homeManagerModules.default |
| 48 | inputs.hyprland.homeManagerModules.default |
| 49 | inputs.nur.hmModules.nur |
Samuel Shuert | 73a9d28 | 2024-02-23 18:43:32 +0000 | [diff] [blame] | 50 | inputs.nix-index-database.hmModules.nix-index |
Samuel Shuert | d7ad8db | 2024-02-20 20:53:34 +0000 | [diff] [blame] | 51 | ]; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 52 | in |
| 53 | inputs.snowfall-lib.mkFlake { |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 54 | inherit inputs; |
| 55 | src = ./.; |
| 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 | |
Skyler Grey | 5db90f9 | 2024-02-25 11:24:31 +0000 | [diff] [blame] | 67 | systems.hosts.greylag.modules = [ |
| 68 | inputs.nixos-hardware.nixosModules.framework-13th-gen-intel |
| 69 | ]; |
| 70 | |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 71 | snowfall = { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 72 | namespace = "chimera"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 73 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 74 | meta.name = "chimera"; |
| 75 | meta.title = "Coded and Minion's Nix Configurations"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | outputs-builder = channels: { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 79 | formatter = nixpkgs.legacyPackages.${channels.nixpkgs.system}.nixfmt-rfc-style; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | channels-config = { |
| 83 | allowUnfree = true; |
| 84 | }; |
| 85 | }; |
| 86 | } |