feat: a bunch of misc updates
This commit is contained in:
parent
db83134e6b
commit
bb120b4e3d
18 changed files with 256 additions and 121 deletions
|
@ -1,11 +1,6 @@
|
|||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{ inputs
|
||||
, lib
|
||||
, config
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
{ inputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
../common/variables.nix
|
||||
./greetd.nix
|
||||
|
@ -15,7 +10,10 @@
|
|||
./services/laptop.preset.nix
|
||||
./virtualisation.nix
|
||||
./hardware-configuration.nix
|
||||
./custom-hosts.nix
|
||||
];
|
||||
|
||||
# Virtual cam settings: see https://wiki.nixos.org/wiki/OBS_Studio#Using_the_Virtual_Camera
|
||||
environment.sessionVariables = {
|
||||
GDK_SCALE = config.displayScale;
|
||||
FLAKE = config.myConfigLocation;
|
||||
|
@ -103,6 +101,10 @@
|
|||
gamemode.enable = true;
|
||||
};
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
supportedFilesystems = [ "ntfs" ];
|
||||
};
|
||||
|
@ -121,10 +123,9 @@
|
|||
zed-editor
|
||||
libsForQt5.qt5.qtquickcontrols2
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
/*
|
||||
(blender.override {
|
||||
cudaSupport = true;
|
||||
})
|
||||
/* (blender.override {
|
||||
cudaSupport = true;
|
||||
})
|
||||
*/
|
||||
trash-cli
|
||||
#inputs.hyprswitch.packages.x86_64-linux.default
|
||||
|
@ -164,10 +165,8 @@
|
|||
};
|
||||
|
||||
nix =
|
||||
let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in
|
||||
{
|
||||
let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in {
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
# flake-registry = "";
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
{ ...
|
||||
}: {
|
||||
}:
|
||||
let
|
||||
rootDomainName = "stvnliu.me";
|
||||
subdomains = [
|
||||
"git"
|
||||
"kellnr"
|
||||
"www"
|
||||
"blog"
|
||||
"files"
|
||||
];
|
||||
in
|
||||
{
|
||||
networking.extraHosts = ''
|
||||
# home IP mapping
|
||||
|
||||
192.168.2.1 router.home
|
||||
192.168.2.2 server.home
|
||||
# home IP mapping
|
||||
100.91.33.34 ${rootDomainName} ${builtins.concatStringsSep " " (map (x: x + "." + rootDomainName) subdomains)}
|
||||
'';
|
||||
}
|
||||
|
|
26
nixos/droidcam.nix
Normal file
26
nixos/droidcam.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
# /etc/nixos/configuration.nix
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Virtual cam settings: see https://wiki.nixos.org/wiki/OBS_Studio#Using_the_Virtual_Camera
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
security.polkit.enable = true;
|
||||
|
||||
# Install OBS Studio with droidcam-obs
|
||||
users.users.foo = {
|
||||
packages = with pkgs; [
|
||||
# ...
|
||||
(wrapOBS {
|
||||
plugins = with obs-studio-plugins; [
|
||||
droidcam-obs
|
||||
];
|
||||
})
|
||||
# ...
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,10 +1,16 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
waydroid.enable = true;
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = [ pkgs.distrobox pkgs.distrobox-tui ];
|
||||
programs.virt-manager.enable = true;
|
||||
#virtualisation.vmware.host.enable = true;
|
||||
#virtualisation.virtualbox.host = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue