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

Binary file not shown.

View file

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

View file

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