dotfiles/flake.nix

52 lines
1.6 KiB
Nix
Raw Normal View History

2022-09-26 20:28:35 +00:00
# https://nix-community.github.io/home-manager/index.html#ch-nix-flakes
{
inputs = {
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
2023-02-07 20:16:16 +00:00
neovim-nightly = {
# workaround: https://github.com/nix-community/neovim-nightly-overlay/issues/164
inputs.nixpkgs.url = "github:nixos/nixpkgs?rev=fad51abd42ca17a60fc1d4cb9382e2d79ae31836";
url = "github:nix-community/neovim-nightly-overlay";
};
2022-09-26 20:28:35 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, home-manager, neovim-nightly, nixpkgs, ... }:
let
overlays = [ neovim-nightly.overlay ];
in {
nixosConfigurations = {
2022-10-03 08:55:36 +00:00
apollo = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./system/nixos/apollo/configuration.nix
2022-10-06 11:33:59 +00:00
{ nixpkgs.overlays = overlays; }
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2022-12-21 11:40:36 +00:00
home-manager.users.opdavies = import ./home-manager/apollo.nix;
}
];
};
};
2022-09-26 20:28:35 +00:00
homeConfigurations = {
pop-os = home-manager.lib.homeManagerConfiguration {
modules = [
{ nixpkgs.overlays = overlays; }
./system/pop-os.nix
2022-09-26 20:28:35 +00:00
];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
2022-09-27 06:37:57 +00:00
wsl2 = home-manager.lib.homeManagerConfiguration {
modules = [
{ nixpkgs.overlays = overlays; }
./system/wsl2.nix
2022-09-27 06:37:57 +00:00
];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
2022-09-26 20:28:35 +00:00
};
};
}