nixvimConfig/flake.nix

66 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-25 12:37:10 +01:00
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-27 23:45:23 +01:00
2024-07-03 00:37:56 +02:00
# nixvim = {
# url = "github:nix-community/nixvim";
# inputs.nixpkgs.follows = "nixpkgs";
# };
2024-07-02 18:36:44 +02:00
nixvim-config = {
type = "gitlab";
owner = "MFlossmann";
repo = "nixvim_config";
};
2024-03-27 23:45:23 +01:00
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-16 15:09:24 +02:00
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-25 12:37:10 +01:00
};
2024-07-03 00:37:56 +02:00
outputs = {
self,
nixpkgs,
...
} @ inputs: let
2024-03-27 23:45:23 +01:00
# basic boilerplate-reducing lib with a bunch of functions
helperLib = import ./helperLib/default.nix {inherit inputs;};
2024-07-03 00:37:56 +02:00
nixvim_config = inputs.nixvim_config;
in {
packages = helperLib.forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
formatter = helperLib.forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
nixosConfigurations = {
remus = helperLib.mkSystem ./hosts/remus/configuration.nix;
muffinman = helperLib.mkSystem ./hosts/muffinman/configuration.nix;
2024-03-25 12:37:10 +01:00
};
2024-07-03 00:37:56 +02:00
homeConfigurations = {
"prunebutt@remus" = helperLib.mkHome "x86_64-linux" ./hosts/remus/home.nix;
2024-07-10 16:30:49 +02:00
"prunebutt@muffinman" = helperLib.mkHome "x86_64-linux" ./hosts/muffinman/home.nix;
2024-07-03 00:37:56 +02:00
};
homeManagerModules.default = ./modules/home;
nixosModules.default = ./modules/nixOS;
# overlays.additions =
# (final: prev: {
# neovim = nixvim_config.packages.${prev.system}.default;
# });
};
2024-03-25 12:37:10 +01:00
}