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: |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 39 | inputs.snowfall-lib.mkFlake { |
| 40 | inherit inputs; |
| 41 | src = ./.; |
| 42 | |
| 43 | homes.modules = [ |
| 44 | # TODO: inputs.nix-index-database.hmModules.nix-index |
| 45 | ]; |
| 46 | |
| 47 | homes.users."minion@greylag".modules = [ |
| 48 | inputs.hyprland.homeManagerModules.default |
| 49 | inputs.anyrun.homeManagerModules.default |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 50 | inputs.nur.hmModules.nur |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 51 | ]; |
| 52 | |
| 53 | system.modules.nixos = [ |
| 54 | inputs.hyprland.nixosModules.default |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 55 | inputs.nur.nixosModules.nur |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 56 | ]; |
| 57 | |
| 58 | snowfall = { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 59 | namespace = "chimera"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 60 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 61 | meta.name = "chimera"; |
| 62 | meta.title = "Coded and Minion's Nix Configurations"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | outputs-builder = channels: { |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 66 | formatter = nixpkgs.legacyPackages.${channels.nixpkgs.system}.nixfmt-rfc-style; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 67 | }; |
| 68 | |
| 69 | channels-config = { |
| 70 | allowUnfree = true; |
| 71 | }; |
| 72 | }; |
| 73 | } |