Move stuff back to AMD-Workstation

This commit is contained in:
Alexander Bantyev 2021-01-21 23:19:07 +03:00
parent 02f264263c
commit 6be480f310
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
4 changed files with 25 additions and 23 deletions

View File

@ -1,5 +1,16 @@
{ inputs, ... }: { { inputs, ... }: {
imports = [ ./hardware-configuration.nix inputs.self.nixosProfiles.desktop ]; imports = with inputs.self.nixosModules; [
./hardware-configuration.nix
inputs.self.nixosProfiles.desktop
gitea
jitsi
mailserver
matrix-synapse
minidlna
nextcloud
nginx
vsftpd
];
deviceSpecific.devInfo = { deviceSpecific.devInfo = {
cpu = { cpu = {
vendor = "amd"; vendor = "amd";

View File

@ -2,15 +2,14 @@
imports = with inputs.self.nixosModules; [ imports = with inputs.self.nixosModules; [
./hardware-configuration.nix ./hardware-configuration.nix
inputs.self.nixosProfiles.server inputs.self.nixosProfiles.server
gitea
jitsi
mailserver mailserver
matrix-synapse
minidlna
nextcloud
nginx
vsftpd
]; ];
loader.raspberryPi = {
enable = true;
version = 3;
};
deviceSpecific.devInfo = { deviceSpecific.devInfo = {
cpu = { cpu = {
vendor = "broadcom"; vendor = "broadcom";

View File

@ -4,20 +4,15 @@
loader.systemd-boot.enable = lib.mkIf (pkgs.system == "x86_64-linux") true; loader.systemd-boot.enable = lib.mkIf (pkgs.system == "x86_64-linux") true;
# loader.raspberryPi = lib.mkIf (pkgs.system == "aarch64-linux") {
# enable = true;
# version = 4;
# };
loader.grub.enable = false; loader.grub.enable = false;
# kernelParams = [ "quiet" "scsi_mod.use_blk_mq=1" "modeset" "nofb" ] kernelParams = [ "quiet" "scsi_mod.use_blk_mq=1" "modeset" "nofb" ]
# ++ lib.optional (pkgs.system == "x86_64-linux") [ ++ lib.optional (pkgs.system == "x86_64-linux") [
# "rd.systemd.show_status=auto" "rd.systemd.show_status=auto"
# "rd.udev.log_priority=3" "rd.udev.log_priority=3"
# "pti=off" "pti=off"
# "spectre_v2=off" "spectre_v2=off"
# ]; ];
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;

View File

@ -65,9 +65,6 @@ in {
]; ];
dnsBlacklistOverrides = '' dnsBlacklistOverrides = ''
balsoft.ru OK balsoft.ru OK
${
builtins.concatStringsSep " OK \n" (builtins.attrNames config.devices)
} OK
192.168.0.0/16 OK 192.168.0.0/16 OK
''; '';
}; };