System Gen149 @ 2026-04-09-18:02:02 by jonas@monolith
This commit is contained in:
@@ -74,6 +74,7 @@
|
|||||||
clientIdSopsKey = config.sops.secrets.spotifyShortcutsClientId.name;
|
clientIdSopsKey = config.sops.secrets.spotifyShortcutsClientId.name;
|
||||||
clientSecretSopsKey = config.sops.secrets.spotifyShortcutsClientSecret.name;
|
clientSecretSopsKey = config.sops.secrets.spotifyShortcutsClientSecret.name;
|
||||||
};
|
};
|
||||||
|
hive.ntsync.enable = false;
|
||||||
|
|
||||||
# system packages
|
# system packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@@ -171,6 +172,7 @@
|
|||||||
boot.plymouth.enable = true;
|
boot.plymouth.enable = true;
|
||||||
boot.initrd.systemd.enable = true;
|
boot.initrd.systemd.enable = true;
|
||||||
boot.supportedFilesystems = ["ntfs"];
|
boot.supportedFilesystems = ["ntfs"];
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
self.nixosModules.firefox
|
self.nixosModules.firefox
|
||||||
self.nixosModules.kdeconnect
|
self.nixosModules.kdeconnect
|
||||||
self.nixosModules.spotify-shortcuts
|
self.nixosModules.spotify-shortcuts
|
||||||
|
self.nixosModules.ntsync
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,21 +2,19 @@
|
|||||||
flake.nixosModules.ntsync = {
|
flake.nixosModules.ntsync = {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
current_kernel_pkgs = pkgs.linuxPackages_latest;
|
|
||||||
current_kernel_version = current_kernel_pkgs.kernel.version;
|
|
||||||
cfg = config.hive.ntsync;
|
cfg = config.hive.ntsync;
|
||||||
in {
|
in {
|
||||||
options.hive.ntsync.enable = lib.mkEnableOption "Enable the nt-sync kernel driver. Enforces a minimum kernel version of 6.14.";
|
options.hive.ntsync.enable = lib.mkEnableOption "Enable the nt-sync kernel driver.";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# Require at least 6.14 for the new nt-sync driver
|
assertions = [
|
||||||
boot.kernelPackages =
|
{
|
||||||
if lib.versionAtLeast current_kernel_version "6.14"
|
assertion = lib.versionAtLeast config.boot.kernelModules.kernel.version "6.14";
|
||||||
then current_kernel_pkgs
|
message = "ntsync requires at least linux 6.14";
|
||||||
else pkgs.linuxPackages_6_14;
|
}
|
||||||
|
];
|
||||||
|
|
||||||
boot.kernelModules = ["ntsync"];
|
boot.kernelModules = ["ntsync"];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user