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

42 lines
873 B
Nix
Raw Normal View History

2023-04-14 08:23:54 +00:00
{ nixpkgs, home-manager, agenix, inputs, ... }:
2023-04-13 14:45:01 +00:00
let
default-system = "x86_64-linux";
2023-04-13 14:45:01 +00:00
overlay-attic = inputs.attic.overlays.default;
overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = {
overlays = [
overlay-attic
overlay-nifoc
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
{
system = nixpkgs.lib.nixosSystem {
system = default-system;
2023-04-13 14:45:01 +00:00
modules = [
../hosts/mediaserver.nix
home-manager.nixosModules.home-manager
2023-04-14 08:23:54 +00:00
agenix.nixosModules.default
2023-04-13 14:45:01 +00:00
{
nixpkgs = nixpkgsConfig;
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
2023-04-22 23:21:04 +00:00
nix.registry.nixpkgs.flake = nixpkgs;
2023-04-13 14:45:01 +00:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.daniel = import ../../home/hosts/mediaserver.nix;
}
];
};
}