diff --git a/hosts/Anton/hardware-configuration.nix b/hosts/Anton/hardware-configuration.nix new file mode 100644 index 0000000..b1da3d4 --- /dev/null +++ b/hosts/Anton/hardware-configuration.nix @@ -0,0 +1,26 @@ +# 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") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp6s0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp7s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/server/boot.nix b/hosts/server/boot.nix new file mode 100644 index 0000000..019a354 --- /dev/null +++ b/hosts/server/boot.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + initrd.systemd.enable = true; + }; +} diff --git a/hosts/server/default.nix b/hosts/server/default.nix index 38c661d..ac62c2e 100644 --- a/hosts/server/default.nix +++ b/hosts/server/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./boot.nix ./ssh-server.nix ]; -} \ No newline at end of file +} diff --git a/users/willifan/default.nix b/users/willifan/default.nix index fbe7d2c..992d3b0 100644 --- a/users/willifan/default.nix +++ b/users/willifan/default.nix @@ -2,7 +2,7 @@ { imports = [ ./common - ./${type} - ./${hostname} +# ./${type} +# ./${hostname} ]; -} \ No newline at end of file +}