41 lines
916 B
Nix
41 lines
916 B
Nix
{ nixpkgs, home-manager, agenix, inputs, ... }:
|
|
|
|
let
|
|
overlay-attic = inputs.attic.overlays.default;
|
|
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
nixpkgsConfig = {
|
|
overlays = [
|
|
overlay-attic
|
|
overlay-neovim
|
|
overlay-nifoc
|
|
];
|
|
|
|
config = {
|
|
allowUnfree = true;
|
|
allowBroken = true;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
system = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
../hosts/mediaserver.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
agenix.nixosModules.default
|
|
|
|
{
|
|
nixpkgs = nixpkgsConfig;
|
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.daniel = import ../../home/hosts/mediaserver.nix;
|
|
}
|
|
];
|
|
};
|
|
}
|