nix-conf/system/dev/skydrive-lap/default.nix
2026-03-06 17:52:33 +08:00

46 lines
1.2 KiB
Nix
Executable file

{ hostname }:
{
self,
pkgs,
...
}:
let
username = "skydrive";
serverCfg = self.nixosConfigurations.dn-server.config;
serverNextcloudCfg = serverCfg.services.nextcloud;
nextcloudURL =
(if serverNextcloudCfg.https then "https" else "http") + "://" + serverNextcloudCfg.hostName;
in
{
systemConf = {
inherit hostname username;
domain = "net.dn";
enableHomeManager = true;
windowManager = "niri";
face = pkgs.fetchurl {
url = "${nextcloudURL}/s/EtMnqXqCy78MLt4/preview";
hash = "sha256-McwMPLFJWiWhh7K12ZHI6uwyvRgj9zW/hFIBl3dLrKE=";
};
};
imports = [
../../modules/presets/basic.nix
../../modules/virtualization.nix
./common
./games
./sops
./utility
./network
./home
../../modules/shells/noctalia
];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSAOufpee7f8D8ONIIGU3qsN+8+DGO7BfZnEOTYqtQ5 danny@pre7780.dn"
];
users.users."${username}".openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSAOufpee7f8D8ONIIGU3qsN+8+DGO7BfZnEOTYqtQ5 danny@pre7780.dn"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBDk8GmC7b9+XSDxnIj5brYmNLPVO47G5enrL3Q+8fuh "
];
}