From a38a53a7c5dc9d4ba448bc9d1c36a01e5b140444 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Sat, 4 Oct 2025 22:23:13 +0200 Subject: [PATCH] Revert "SP-IOV test" This reverts commit 965609b07afa038329730d7c399fdc2b2d1dbfd1. --- flake.lock | 17 ---------------- flake.nix | 4 ---- modules/nixos/presets/default/default.nix | 8 +------- .../kylekrein-framework12/default.nix | 20 ++----------------- 4 files changed, 3 insertions(+), 46 deletions(-) diff --git a/flake.lock b/flake.lock index 2f44c5b..ab2fd19 100644 --- a/flake.lock +++ b/flake.lock @@ -1839,7 +1839,6 @@ "snowfall-flake": "snowfall-flake", "snowfall-lib": "snowfall-lib_3", "sops-nix": "sops-nix", - "sr-iov": "sr-iov", "stylix": "stylix", "unstable": "unstable" } @@ -2034,22 +2033,6 @@ "type": "github" } }, - "sr-iov": { - "flake": false, - "locked": { - "lastModified": 1725366839, - "narHash": "sha256-w6Txt0vtnvsjRusFMPwFN3q4MPdBK34EFmZd3649XTg=", - "owner": "cyberus-technology", - "repo": "nixos-sriov", - "rev": "6bfcad7698afebbfead331826ee77f0b970603ed", - "type": "github" - }, - "original": { - "owner": "cyberus-technology", - "repo": "nixos-sriov", - "type": "github" - } - }, "stylix": { "inputs": { "base16": "base16", diff --git a/flake.nix b/flake.nix index 81fe1ee..d350afc 100644 --- a/flake.nix +++ b/flake.nix @@ -94,10 +94,6 @@ url = "github:Sveske-Juice/declarative-jellyfin"; inputs.nixpkgs.follows = "nixpkgs"; }; - sr-iov = { - url = "github:cyberus-technology/nixos-sriov"; - flake = false; - }; }; outputs = inputs: let diff --git a/modules/nixos/presets/default/default.nix b/modules/nixos/presets/default/default.nix index cf4ad7a..22ec849 100644 --- a/modules/nixos/presets/default/default.nix +++ b/modules/nixos/presets/default/default.nix @@ -19,7 +19,7 @@ in { }; services.fwupd.enable = true; #fwupdmgr update boot = { - #kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; + kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; loader = { systemd-boot.enable = !config.${namespace}.hardware.secureBoot.enable; efi.canTouchEfiVariables = !config.${namespace}.hardware.asahi.enable; @@ -29,12 +29,6 @@ in { # It will just not appear on screen unless a key is pressed loader.timeout = 0; }; - services.logind = { - lidSwitch = mkDefault "suspend"; - powerKey = mkDefault "suspend"; - powerKeyLongPress = mkDefault "poweroff"; - }; - # Set your time zone. time.timeZone = "Europe/Berlin"; diff --git a/systems/x86_64-linux/kylekrein-framework12/default.nix b/systems/x86_64-linux/kylekrein-framework12/default.nix index af5c511..969f333 100644 --- a/systems/x86_64-linux/kylekrein-framework12/default.nix +++ b/systems/x86_64-linux/kylekrein-framework12/default.nix @@ -31,25 +31,9 @@ in with lib.custom; { facter.reportPath = ./facter.json; systemd.network.wait-online.enable = lib.mkForce false; #facter - imports = [ - "${inputs.sr-iov}/sriov.nix" - ]; - virtualisation.cyberus.intel-graphics-sriov.enable = true; - virtualisation.virtualbox.host = { - enable = true; - package = - (import (pkgs.fetchFromGitHub { - owner = "nixos"; - repo = "nixpkgs"; - rev = "0398740424de50bc851ece775b19cc5d5eb755e9"; - sha256 = "sha256-ZA9s5LroljnJtU4HcGSGB2sqGcSVO3OD+qz5wo+wmlE="; - }) {inherit (pkgs) system;}).virtualbox; - enableKvm = true; - enableHardening = false; - addNetworkInterface = false; - }; + custom.hardware.hibernation = { - enable = false; + enable = true; swapFileOffset = 533760; }; custom.presets.disko.impermanenceBtrfsLuks = {