Compare commits

..

No commits in common. "0d0ebbdc686f431f37d4a9d79f65970521598e0b" and "e14a7d8b5eb0befe62773efcd18a11b818c35847" have entirely different histories.

4 changed files with 31 additions and 36 deletions

View file

@ -1,44 +1,39 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot = {
initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod"];
initrd.kernelModules = [];
kernelModules = ["kvm-intel"];
extraModulePackages = [];
};
# fileSystems."/" =
# { device = "/dev/disk/by-uuid/33b7e681-d92a-40db-a172-b797591a1e2e";
# fsType = "ext4";
# };
#
# fileSystems."/boot" =
# { device = "/dev/disk/by-uuid/0BEA-7525";
# fsType = "vfat";
# options = [ "fmask=0022" "dmask=0022" ];
# };
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2ce4b2b1-0083-43b2-bd8d-0e8cd21b1ef6";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/33b7e681-d92a-40db-a172-b797591a1e2e";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/AE71-FD70";
"/boot" = {
device = "/dev/disk/by-uuid/0BEA-7525";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
options = ["fmask=0022" "dmask=0022"];
};
};
swapDevices = [];
swapDevices =
[ { device = "/dev/disk/by-uuid/f5af06e8-e285-4565-abc3-fdd0ddde4736"; }
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

Binary file not shown.

View file

@ -13,7 +13,7 @@
bash = getExe pkgs.bash;
mainDir = "/var/lib/${name}/";
mainDir = "/var/lib/dcbot/";
programDir = mainDir + "program";
dataDir = mainDir + "data";
denoDir = mainDir + "deno";
@ -71,12 +71,12 @@ in {
};
};
users.groups.${name} = {
users.groups."dcbot" = {
members = optional nextcloud.enable "nextcloud"; #TODO: if config.niksos.server.nextcloud
#NOTE: for nextcloud mounted folder
};
users.users.${name} = {
group = name;
users.users."dcbot" = {
group = "dcbot";
isSystemUser = true;
};
};

View file

@ -11,8 +11,8 @@
then ""
else "${cfg.subDomain}.";
in
cfg //
{
domain = "${subDomain}${baseDomain}";
inherit baseDomain subDomain;
domain = "${subDomain}.${baseDomain}";
inherit baseDomain;
}
// cfg