2023-05-12 15:39:09 +00:00
|
|
|
{ nixpkgs, deploy-rs, home-manager, agenix, inputs, ... }:
|
2023-04-13 14:45:01 +00:00
|
|
|
|
|
|
|
let
|
2023-05-03 18:06:30 +00:00
|
|
|
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;
|
2023-05-20 11:35:13 +00:00
|
|
|
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"openssl-1.1.1t"
|
|
|
|
];
|
2023-04-13 14:45:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2023-05-12 15:39:09 +00:00
|
|
|
rec {
|
2023-04-13 14:45:01 +00:00
|
|
|
system = nixpkgs.lib.nixosSystem {
|
2023-05-03 18:06:30 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-05-12 15:39:09 +00:00
|
|
|
|
|
|
|
deployment = {
|
2023-05-14 10:55:56 +00:00
|
|
|
hostname = "mediaserver";
|
2023-05-12 15:39:09 +00:00
|
|
|
sshUser = "root";
|
|
|
|
remoteBuild = true;
|
2023-06-01 19:35:47 +00:00
|
|
|
autoRollback = false;
|
|
|
|
magicRollback = false;
|
2023-05-12 15:39:09 +00:00
|
|
|
|
|
|
|
profiles.system = {
|
|
|
|
path = deploy-rs.lib.${default-system}.activate.nixos system;
|
|
|
|
};
|
|
|
|
};
|
2023-04-13 14:45:01 +00:00
|
|
|
}
|