Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ config, pkgs, pkgs-unstable, lib, host, domain, inputs, ... }:
|
||||
{ config, pkgs, hyper, inputs, ... }:
|
||||
let
|
||||
grub-theme-ascii-diana = (pkgs.fetchFromGitea {
|
||||
domain = "git.${domain}";
|
||||
domain = "git.${hyper.domain}";
|
||||
owner = "nx2";
|
||||
repo = "grub-theme-ascii-diana";
|
||||
rev = "0.5.0";
|
||||
@@ -9,10 +9,10 @@ let
|
||||
});
|
||||
in
|
||||
{
|
||||
imports = if host == "NxNORTH" then [
|
||||
imports = if hyper.host == "NxNORTH" then [
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
] else [];
|
||||
config = if host == "NxNORTH" then {
|
||||
config = if hyper.host == "NxNORTH" then {
|
||||
# I have to boot with secureboot becasue of the chinese spyware called Vanguard
|
||||
|
||||
environment.systemPackages = with pkgs; [ sbctl ];
|
||||
@@ -22,7 +22,7 @@ in
|
||||
in {
|
||||
enable = true;
|
||||
pkiBundle = "/etc/secureboot";
|
||||
package = lib.mkForce (pkgs.writeShellApplication {
|
||||
package = pkgs.lib.mkForce (pkgs.writeShellApplication {
|
||||
name = "lzbt";
|
||||
runtimeInputs = [
|
||||
inputs.lanzaboote.packages.x86_64-linux.tool
|
||||
@@ -74,13 +74,13 @@ in
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
kernelPackages = pkgs-unstable.linuxPackages_zen;
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
kernelModules = [ "v4l2loopback" ];
|
||||
extraModprobeConfig = ''options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1'';
|
||||
};
|
||||
security.polkit.enable = true;
|
||||
} else if host == "NxXPS" then {
|
||||
} else if hyper.host == "NxXPS" then {
|
||||
boot = {
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
@@ -103,7 +103,7 @@ in
|
||||
'';
|
||||
};
|
||||
};
|
||||
kernelPackages = pkgs-unstable.linuxPackages_latest;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
kernelModules = [ "v4l2loopback" ];
|
||||
extraModprobeConfig = ''options v4l2loopback devices=1 video_nr=1 card_label="OBS VCam" exclusive_caps=1'';
|
||||
|
||||
Reference in New Issue
Block a user