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

59 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-07-23 20:03:30 +00:00
{ nixpkgs, lix-module, 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
nixpkgsConfig = {
overlays = [
2024-06-12 16:00:48 +00:00
inputs.neovim-nightly-overlay.overlays.default
inputs.nifoc-overlay.overlay
2023-04-13 14:45:01 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
2023-05-20 11:35:13 +00:00
2024-07-23 20:03:30 +00:00
permittedInsecurePackages = [ ];
2023-04-13 14:45:01 +00:00
};
};
in
2024-07-23 20:03:30 +00:00
{
arch = default-system;
2023-04-13 14:45:01 +00:00
system = nixpkgs.lib.nixosSystem {
system = default-system;
2023-04-13 14:45:01 +00:00
modules = [
{
nixpkgs = nixpkgsConfig;
2024-07-23 20:03:30 +00:00
nix = {
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
};
}
lix-module.nixosModules.default
2023-09-16 22:53:55 +00:00
2024-07-23 20:03:30 +00:00
home-manager.nixosModules.home-manager
{
2023-09-16 22:53:55 +00:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/mediaserver.nix;
};
2023-04-13 14:45:01 +00:00
}
2023-05-12 15:39:09 +00:00
2024-07-23 20:03:30 +00:00
agenix.nixosModules.default
2024-03-20 23:24:16 +00:00
2024-07-23 20:03:30 +00:00
../hosts/mediaserver.nix
];
};
2024-07-23 20:03:30 +00:00
deployment = {
hostname = "mediaserver";
sshUser = "root";
remoteBuild = true;
autoRollback = false;
magicRollback = false;
2023-05-12 15:39:09 +00:00
};
2023-04-13 14:45:01 +00:00
}