dotfiles/flake.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

2022-09-26 20:28:35 +00:00
{
2023-07-30 22:01:46 +00:00
inputs = {
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-01-14 09:11:03 +00:00
home-manager.url = "github:nix-community/home-manager";
2024-01-14 09:11:03 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
opdavies-nvim.url = "github:opdavies/opdavies.nvim";
2024-05-06 13:33:55 +00:00
# opdavies-nvim.url = "path:/home/opdavies/Code/personal/opdavies.nvim";
build-configs.inputs.nixpkgs.follows = "nixpkgs";
build-configs.url = "path:/home/opdavies/Code/personal/build-configs";
# TODO: how to do this with a private GitHub repository?
# build-configs.url = "github:OliverDaviesLtd/build-configs";
2023-07-30 22:01:46 +00:00
};
2022-09-26 20:28:35 +00:00
outputs =
{ nixpkgs, self, ... }@inputs:
2024-03-18 20:33:28 +00:00
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2024-03-18 20:33:28 +00:00
username = "opdavies";
mkNixos = import ./lib/nixos { inherit inputs self username; };
mkWsl = import ./lib/wsl2 { inherit inputs self username; };
2024-02-24 10:21:53 +00:00
2024-05-06 13:36:44 +00:00
inherit (pkgs) mkShell;
in
{
packages.${system}.default = mkShell { buildInputs = with pkgs; [ just ]; };
2024-03-18 20:33:28 +00:00
formatter.${system} = pkgs.nixfmt-rfc-style;
nixosConfigurations = {
apollo = mkNixos {
desktop = true;
hostname = "apollo";
};
2022-09-27 06:37:57 +00:00
nixedo = mkNixos {
desktop = true;
hostname = "nixedo";
};
2022-09-27 06:37:57 +00:00
};
homeConfigurations = {
wsl2 = mkWsl { system = "x86_64-linux"; };
};
2022-09-26 20:28:35 +00:00
};
}