fix hardware config for board, move some things around
This commit is contained in:
@@ -60,6 +60,7 @@
|
|||||||
./modules/gui/services/xdg.nix
|
./modules/gui/services/xdg.nix
|
||||||
|
|
||||||
./modules/net/services/avahi.nix
|
./modules/net/services/avahi.nix
|
||||||
|
./modules/net/services/fail2ban.nix
|
||||||
./modules/net/services/networkmanager.nix
|
./modules/net/services/networkmanager.nix
|
||||||
./modules/net/services/printing.nix
|
./modules/net/services/printing.nix
|
||||||
./modules/net/services/tailscale.nix
|
./modules/net/services/tailscale.nix
|
||||||
@@ -108,6 +109,7 @@
|
|||||||
./modules/gui/services/xdg.nix
|
./modules/gui/services/xdg.nix
|
||||||
|
|
||||||
./modules/net/services/avahi.nix
|
./modules/net/services/avahi.nix
|
||||||
|
./modules/net/services/fail2ban.nix
|
||||||
./modules/net/services/networkmanager.nix
|
./modules/net/services/networkmanager.nix
|
||||||
./modules/net/services/printing.nix
|
./modules/net/services/printing.nix
|
||||||
./modules/net/services/tailscale.nix
|
./modules/net/services/tailscale.nix
|
||||||
@@ -166,6 +168,7 @@
|
|||||||
# }
|
# }
|
||||||
#];
|
#];
|
||||||
"nixcloud" = mkHost "x86_64-linux" [
|
"nixcloud" = mkHost "x86_64-linux" [
|
||||||
|
./modules/net/services/fail2ban.nix
|
||||||
./modules/net/services/networkmanager.nix
|
./modules/net/services/networkmanager.nix
|
||||||
./modules/net/services/tailscale.nix
|
./modules/net/services/tailscale.nix
|
||||||
./modules/sys/compat.nix
|
./modules/sys/compat.nix
|
||||||
@@ -182,7 +185,6 @@
|
|||||||
./modules/sys/stateversion.nix
|
./modules/sys/stateversion.nix
|
||||||
./modules/sys/tz.nix
|
./modules/sys/tz.nix
|
||||||
./modules/sys/users.nix
|
./modules/sys/users.nix
|
||||||
./modules/vps-aarch64-common.nix
|
|
||||||
./hosts/nixcloud/configuration.nix
|
./hosts/nixcloud/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,27 +8,25 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/" =
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||||
{ device = "/dev/disk/by-label/NixOS";
|
boot.initrd.kernelModules = [ ];
|
||||||
fsType = "btrfs";
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
options = [ "subvol=@" ];
|
boot.extraModulePackages = [ ];
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-label/NixOS";
|
{ device = "/dev/disk/by-uuid/b17472f2-bf78-4850-abe1-f324dbb4d361";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=@home" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/E0C2-A3A3";
|
{ device = "/dev/disk/by-uuid/894A-AE22";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
#swapDevices =
|
swapDevices =
|
||||||
# [ { device = "/dev/disk/by-uuid/fe32f9af-3382-4505-90e3-aaf1c41bf5d4"; }
|
[ { device = "/dev/disk/by-uuid/9d20f606-cd87-40e1-adad-c470acf0a66a"; }
|
||||||
# ];
|
];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
};
|
};
|
||||||
networking.networkmanager.wifi.powersave = false;
|
networking.networkmanager.wifi.powersave = false;
|
||||||
|
|
||||||
boot.loader.grub.enable = false;
|
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{ pkgs, ... }: {
|
|
||||||
|
|
||||||
#environment.systemPackages = with pkgs; [
|
|
||||||
#];
|
|
||||||
|
|
||||||
services.fail2ban.enable = true;
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PasswordAuthentication = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user