1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-11-26 06:08:48 +01:00
git.oat.zone--dark-firepit-.../flake.nix

85 lines
2.5 KiB
Nix
Raw Normal View History

2022-01-11 18:44:40 +01:00
{
description = "Frosted Flakes";
inputs = {
2023-06-01 23:36:20 +02:00
nixpkgs.url = "nixpkgs/nixos-23.05";
# WARNING: Where possible, prefer the stable branch of nixpkgs as nixpkgs-unstable may have incompatable or vulnerable software.
2022-01-11 18:44:40 +01:00
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
2023-06-01 23:36:20 +02:00
home-manager.url = "github:nix-community/home-manager/release-23.05";
#home-manager.inputs.nixpkgs.follows = "nixpkgs";
2022-01-11 18:44:40 +01:00
# agenix - age-encrypted secrets
2022-11-15 06:19:54 +01:00
agenix = {
url = "github:ryantm/agenix";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
2022-01-11 18:44:40 +01:00
2022-11-15 06:19:54 +01:00
nixos-hardware = {
url = "github:nixos/nixos-hardware";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
2022-01-11 18:44:40 +01:00
2022-11-15 06:19:54 +01:00
nix-minecraft = {
url = "github:Infinidoge/nix-minecraft";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
2022-01-11 18:44:40 +01:00
2023-04-30 21:42:43 +02:00
cohost-blogger = {
url = "git+https://git.oat.zone/oat/cohost-blogger";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2023-04-30 21:42:43 +02:00
};
2022-11-15 06:19:54 +01:00
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
hyprland = {
url = "github:hyprwm/Hyprland";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
hyprpaper = {
url = "github:hyprwm/hyprpaper";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
hyprpicker = {
url = "github:hyprwm/hyprpicker";
2023-06-01 23:36:20 +02:00
#inputs.nixpkgs.follows = "nixpkgs";
2022-11-15 06:19:54 +01:00
};
2023-01-19 15:17:35 +01:00
vscode-server.url = "github:nix-community/nixos-vscode-server";
2022-01-11 18:44:40 +01:00
};
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nix-minecraft, cohost-blogger, /* hyprland, hyprpaper, hyprpicker, */ ... }:
2022-01-11 18:44:40 +01:00
let
system = "x86_64-linux";
lib = import ./lib { inherit pkgs inputs; lib = nixpkgs.lib; };
inherit (lib._) mapModules mapModulesRec mkHost;
mkPkgs = pkgs: overlays: import pkgs {
inherit system;
config.allowUnfree = true;
overlays = overlays ++ (lib.attrValues self.overlays);
};
pkgs = mkPkgs nixpkgs [ self.overlay nix-minecraft.overlay ];
2022-01-11 18:44:40 +01:00
in {
packages."${system}" = mapModules ./packages (p: pkgs.callPackage p {});
overlay = final: prev: {
_ = self.packages."${system}";
unstable = mkPkgs nixpkgs-unstable [];
};
overlays = mapModules ./overlays import;
nixosModules = (mapModulesRec ./modules import) ++ [
2023-04-24 23:41:20 +02:00
#hyprland.nixosModules.default
];
nixosConfigurations = mapModules ./hosts (host: mkHost host { inherit system; });
2022-04-20 10:53:28 +02:00
devShell."${system}" = import ./shell.nix { inherit pkgs; };
2022-01-11 18:44:40 +01:00
};
}