dotfiles/flake.nix

47 lines
1.4 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";
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
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 = [
./nixpkgs/nixos/apollo/configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.opdavies = import ./nixpkgs/home-manager/apollo.nix;
}
];
};
};
2022-09-26 20:28:35 +00:00
homeConfigurations = {
pop-os = home-manager.lib.homeManagerConfiguration {
modules = [
{ nixpkgs.overlays = overlays; }
2022-09-29 18:29:50 +00:00
./nixpkgs/configuration/pop-os
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; }
2022-09-29 18:29:50 +00:00
./nixpkgs/configuration/wsl2
2022-09-27 06:37:57 +00:00
];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
2022-09-26 20:28:35 +00:00
};
};
}