diff --git a/outputs.nix b/outputs.nix index 5d704a1..7648346 100644 --- a/outputs.nix +++ b/outputs.nix @@ -16,5 +16,12 @@ ./systems/frodo ]; }; + "legolas" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + home-manager.nixosModules.home-manager + ./systems/legolas + ]; + }; }; } diff --git a/systems/legolas/default.nix b/systems/legolas/default.nix new file mode 100644 index 0000000..3e9df82 --- /dev/null +++ b/systems/legolas/default.nix @@ -0,0 +1,35 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ../modules/common.nix + ../modules/users.nix + ../modules/locales.nix + ../modules/services.nix + ../modules/programs.nix + ../modules/gaming.nix + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "legolas"; + networking.networkmanager.enable = true; + networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ]; + + services.xserver.videoDrivers = ["nvidia"]; + + hardware = { + graphics.enable = true; + + nvidia.modesetting.enable = true; + nvidia.open = true; + nvidia.nvidiaSettings = true; + }; + + virtualisation.libvirtd.enable = true; + + system.stateVersion = "25.11"; # Did you read the comment? +} diff --git a/systems/legolas/hardware-configuration.nix b/systems/legolas/hardware-configuration.nix new file mode 100644 index 0000000..15ff426 --- /dev/null +++ b/systems/legolas/hardware-configuration.nix @@ -0,0 +1,31 @@ +# 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" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/3369db74-89ad-4b2f-b843-485c1b4f356b"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C4C8-E90E"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}