nix-conf/flake.nix

117 lines
3.1 KiB
Nix
Raw Normal View History

2023-02-20 16:38:19 +01:00
{
inputs = {
2023-02-23 20:34:35 +01:00
# nixpkgs (Packges and modules)
2023-05-16 13:13:30 +02:00
nixpkgs.url = github:NixOS/nixpkgs;#/nixos-unstable;
2023-04-11 21:04:40 +02:00
#nixpkgs.url = github:jopejoe1/nixpkgs/noto-fonts;
2023-02-23 20:34:35 +01:00
# Nix Hardware (Hardware configs)
2023-02-20 16:38:19 +01:00
nixos-hardware.url = github:NixOS/nixos-hardware;
2023-02-23 20:34:35 +01:00
# NUR (User Packges)
2023-02-20 16:38:19 +01:00
nur.url = github:nix-community/NUR;
2023-02-23 20:34:35 +01:00
# Home Manger (Dot files)
2023-02-20 16:38:19 +01:00
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
2023-02-23 20:34:35 +01:00
# Nix Darwin (Mac OS support)
2023-02-20 16:38:19 +01:00
nix-darwin = {
url = github:LnL7/nix-darwin;
inputs.nixpkgs.follows = "nixpkgs";
};
2023-02-23 20:34:35 +01:00
# Image generators
nixos-generators = {
url = github:nix-community/nixos-generators;
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixlib.follows = "nixlib";
};
# PrismLauncher (git version of PrismLauncher)
prismlauncher = {
url = github:PrismLauncher/PrismLauncher;
2023-03-01 17:29:13 +01:00
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "flake-compat";
inputs.libnbtplusplus.follows = "libnbtplusplus";
2023-02-23 20:34:35 +01:00
};
# vscode extensions
2023-02-20 16:38:19 +01:00
nix-vscode-extensions = {
url = github:nix-community/nix-vscode-extensions;
inputs.flake-compat.follows = "flake-compat";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-02-23 20:34:35 +01:00
2023-02-24 00:45:34 +01:00
peerix = {
url = github:cid-chan/peerix;
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "flake-compat";
inputs.flake-utils.follows = "flake-utils";
};
2023-02-24 12:35:58 +01:00
agenix = {
url = github:ryantm/agenix;
inputs.nixpkgs.follows = "nixpkgs";
inputs.darwin.follows = "nix-darwin";
2023-05-16 13:15:33 +02:00
inputs.home-manager.follows = "home-manager";
2023-02-24 12:35:58 +01:00
};
2023-03-06 21:46:14 +01:00
dns = {
url = github:kirelagin/dns.nix;
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2023-02-23 20:34:35 +01:00
# Dependcies
flake-compat = {
url = github:edolstra/flake-compat;
flake = false;
};
2023-03-05 01:06:25 +01:00
2023-02-23 20:34:35 +01:00
flake-utils.url = github:numtide/flake-utils;
nixlib.url = github:nix-community/nixpkgs.lib;
2023-03-05 01:06:25 +01:00
libnbtplusplus = {
url = github:PrismLauncher/libnbtplusplus;
flake = false;
};
2023-02-20 16:38:19 +01:00
};
2023-02-23 20:34:35 +01:00
2023-05-16 14:55:15 +02:00
outputs = { self, nixpkgs, nixos-hardware, prismlauncher, home-manager, nur, ... }@attrs: {
nixosConfigurations.yokai = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = attrs;
modules = [
2023-05-16 14:57:45 +02:00
./systems/yokai/default.nix
2023-05-16 14:55:15 +02:00
./common.nix
nixos-hardware.nixosModules.pine64-pinebook-pro
home-manager.nixosModules.home-manager
nur.nixosModules.nur
2023-02-20 16:38:19 +01:00
];
2023-05-16 14:55:15 +02:00
};
nixosConfigurations.oni = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
2023-05-16 14:57:45 +02:00
./systems/oni/default.nix
2023-05-16 14:55:15 +02:00
./common.nix
2023-02-22 13:01:05 +01:00
home-manager.nixosModules.home-manager
nur.nixosModules.nur
];
2023-05-16 14:55:15 +02:00
};
nixosConfigurations.kami = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
2023-05-16 14:57:45 +02:00
./systems/kami/default.nix
2023-05-16 14:55:15 +02:00
./common.nix
home-manager.nixosModules.home-manager
nur.nixosModules.nur
2023-02-22 17:56:24 +01:00
];
};
2023-05-16 14:55:15 +02:00
};
2023-02-20 16:38:19 +01:00
}