diff --git a/provision/flake.nix b/provision/flake.nix index b3ee1741..1b4178e0 100644 --- a/provision/flake.nix +++ b/provision/flake.nix @@ -51,6 +51,28 @@ ]; }; + manofwar = lib.nixosSystem { + inherit system; + specialArgs = { inherit user; inherit inputs; }; + modules = [ + ./modules + ./hosts/manofwar/configuration.nix + ./hosts/manofwar/hardware.nix + sops-nix.nixosModules.sops + home-manager.nixosModules.home-manager { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.extraSpecialArgs = { inherit user; }; + home-manager.users.${user} = { + imports = [ + ./home-modules + ./hosts/manofwar/home-configuration.nix + ]; + }; + } + ]; + }; + shivan = lib.nixosSystem { inherit system; specialArgs = { inherit user; inherit inputs; }; diff --git a/provision/hosts/manofwar/configuration.nix b/provision/hosts/manofwar/configuration.nix index e10db60c..c03dd934 100644 --- a/provision/hosts/manofwar/configuration.nix +++ b/provision/hosts/manofwar/configuration.nix @@ -24,19 +24,16 @@ nixpkgs.overlays = import ../../lib/overlays.nix; # Use zen kernel - boot.kernelPackages = pkgs.linuxPackages_zen; + boot.kernelPackages = pkgs.linuxPackages; # Hardware options hardware.bluetooth.enable = true; hardware.bluetooth.package = pkgs.bluez; hardware.sensor.iio.enable = true; - hardware.opengl.enable = true; - hardware.opengl.driSupport = true; - hardware.opengl.driSupport32Bit = true; # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; # Set networking options networking.hostName = "manofwar"; diff --git a/provision/hosts/manofwar/hardware.nix b/provision/hosts/manofwar/hardware.nix new file mode 100644 index 00000000..77cefe16 --- /dev/null +++ b/provision/hosts/manofwar/hardware.nix @@ -0,0 +1,33 @@ +# 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" "usbhid" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + # 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.end0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; +}