2022-09-26 20:28:35 +00:00
|
|
|
{
|
2023-07-30 22:01:46 +00:00
|
|
|
inputs = {
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-11-12 20:03:29 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2024-03-29 01:33:25 +00:00
|
|
|
|
2024-09-21 08:58:08 +00:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
|
2024-11-12 20:03:29 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-11-16 15:23:10 +00:00
|
|
|
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
|
2023-07-30 22:01:46 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
|
2024-06-10 08:31:28 +00:00
|
|
|
outputs =
|
2024-09-21 08:58:08 +00:00
|
|
|
{
|
|
|
|
nixos-hardware,
|
|
|
|
nixpkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}@inputs:
|
2024-03-18 20:33:28 +00:00
|
|
|
let
|
2024-11-05 12:00:00 +00:00
|
|
|
inherit (self) outputs;
|
|
|
|
|
2024-03-29 01:33:25 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
username = "opdavies";
|
|
|
|
|
2024-11-20 21:37:15 +00:00
|
|
|
mkNixos = import ./nix/lib/nixos {
|
2024-06-15 11:52:54 +00:00
|
|
|
inherit
|
|
|
|
inputs
|
2024-11-05 12:00:00 +00:00
|
|
|
outputs
|
2024-09-21 08:58:08 +00:00
|
|
|
nixos-hardware
|
2024-06-15 11:52:54 +00:00
|
|
|
pkgs
|
|
|
|
self
|
|
|
|
username
|
|
|
|
;
|
|
|
|
};
|
2024-11-20 21:37:15 +00:00
|
|
|
mkWsl = import ./nix/lib/wsl2 {
|
2024-11-05 12:00:00 +00:00
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
outputs
|
|
|
|
self
|
|
|
|
username
|
|
|
|
;
|
|
|
|
};
|
2024-02-24 10:21:53 +00:00
|
|
|
|
2024-05-06 13:36:44 +00:00
|
|
|
inherit (pkgs) mkShell;
|
2024-10-09 17:32:36 +00:00
|
|
|
inherit (pkgs.vimUtils) buildVimPlugin;
|
2024-06-10 08:31:28 +00:00
|
|
|
in
|
|
|
|
{
|
2024-10-09 17:32:36 +00:00
|
|
|
packages.${system} = {
|
|
|
|
default = mkShell { buildInputs = with pkgs; [ bashInteractive ]; };
|
|
|
|
|
|
|
|
opdavies-nvim = buildVimPlugin {
|
|
|
|
name = "opdavies-nvim";
|
2024-11-20 21:37:15 +00:00
|
|
|
src = ./nvim;
|
2024-10-09 17:32:36 +00:00
|
|
|
};
|
|
|
|
};
|
2024-03-18 20:33:28 +00:00
|
|
|
|
2024-06-10 08:31:28 +00:00
|
|
|
formatter.${system} = pkgs.nixfmt-rfc-style;
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2024-11-20 21:37:15 +00:00
|
|
|
overlays = import ./nix/overlays { inherit inputs; };
|
2024-11-05 12:00:00 +00:00
|
|
|
|
2024-03-29 01:33:25 +00:00
|
|
|
nixosConfigurations = {
|
2024-09-11 12:00:00 +00:00
|
|
|
lemp11 = mkNixos {
|
|
|
|
desktop = true;
|
|
|
|
hostname = "lemp11";
|
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
};
|
2024-03-29 01:33:25 +00:00
|
|
|
|
2024-06-10 08:31:28 +00:00
|
|
|
homeConfigurations = {
|
|
|
|
wsl2 = mkWsl { system = "x86_64-linux"; };
|
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
}
|