synology-drive-vm/common.nix

33 lines
683 B
Nix
Raw Normal View History

2024-07-01 11:42:52 +02:00
{ lib, pkgs, ... }:
{
nixpkgs.hostPlatform = "x86_64-linux";
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
users.users.test = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "test";
};
services.xserver = {
enable = true;
displayManager = {
autoLogin.enable = true;
autoLogin.user = "test";
};
};
virtualisation.vmVariant.virtualisation = {
memorySize = 2048;
cores = 3;
};
environment.systemPackages = with pkgs; [ synology-drive-client ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"synology-drive-client"
];
}