dotfiles/flake.nix
Oliver Davies 553d967bed Fix Kdenlive
Error when rendering a project.
2024-03-09 18:51:13 +00:00

51 lines
1.2 KiB
Nix

{
inputs = {
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
opdavies-nvim.url = "github:opdavies/opdavies.nvim";
};
outputs = inputs @ {
flake-parts,
self,
...
}: let
system = "x86_64-linux";
username = "opdavies";
mkNixos = import ./lib/nixos {inherit inputs self system username;};
mkWsl = import ./lib/wsl2 {inherit inputs self system username;};
in
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux"];
perSystem = {
pkgs,
self',
...
}: {
packages.default = pkgs.mkShell {
nativeBuildInputs = [pkgs.just];
};
formatter = pkgs.alejandra;
};
flake = {
lib = import ./lib {inherit inputs;};
nixosConfigurations = {
apollo = mkNixos {desktop = true;};
nixedo = mkNixos {desktop = true;};
};
homeConfigurations = {
wsl2 = mkWsl;
};
};
};
}