1
0
Fork 0
dotfiles/system/flakes/sail.nix

47 lines
1 KiB
Nix
Raw Normal View History

2022-07-31 18:49:51 +00:00
{ nixpkgs, home-manager, arion, inputs, ... }:
2022-07-30 16:19:49 +00:00
2022-07-30 19:38:01 +00:00
let
overlay-arion = arion.overlay;
2022-07-31 18:48:49 +00:00
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
overlay-zig = _: prev: { zigpkgs = inputs.zig-overlay.packages.${prev.system}; };
overlay-nifoc = inputs.nifoc-overlay.overlay;
2022-07-30 19:38:01 +00:00
nixpkgsConfig = {
overlays = [
overlay-arion
2022-07-31 18:48:49 +00:00
overlay-neovim
overlay-zig
overlay-nifoc
2022-07-30 19:38:01 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
2022-07-30 16:19:49 +00:00
{
nixosConfigurations.sail = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2022-07-31 10:23:30 +00:00
({
nixpkgs.overlays = nixpkgsConfig.overlays;
nixpkgs.config = nixpkgsConfig.config;
})
2022-07-30 19:41:46 +00:00
2022-07-30 18:27:33 +00:00
arion.nixosModules.arion
2022-07-30 16:19:49 +00:00
../hosts/sail.nix
2022-07-31 18:48:49 +00:00
2022-07-31 18:55:17 +00:00
home-manager.nixosModules.home-manager
2022-07-31 18:48:49 +00:00
{
nixpkgs = nixpkgsConfig;
nix.nixPath = { nixpkgs = "${nixpkgs}"; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.daniel = import ../../home/hosts/sail.nix;
}
2022-07-30 16:19:49 +00:00
];
};
}