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 {
|
2022-10-02 22:42:33 +00:00
|
|
|
nixosConfigurations = {
|
2022-10-03 08:55:36 +00:00
|
|
|
apollo = nixpkgs.lib.nixosSystem {
|
2022-10-02 22:42:33 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./nixpkgs/nixos/apollo/configuration.nix
|
2022-10-06 11:33:59 +00:00
|
|
|
{ nixpkgs.overlays = overlays; }
|
2022-10-02 22:42:33 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|