Merge branch 'main' into cosmic
This commit is contained in:
commit
b3550dc00a
21 changed files with 363 additions and 96 deletions
|
@ -1,52 +0,0 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../nix-os/core.nix
|
||||
../nix-os/core-desktop.nix
|
||||
../nix-os/nvidia.nix
|
||||
../nix-os/docker.nix
|
||||
../nix-os/razer.nix
|
||||
../nix-os/desktopManagers/gnome.nix
|
||||
../nix-os/displayManagers/gdm.nix
|
||||
#../nix-os/desktop/kde-plasma.nix
|
||||
../nix-os/shell.nix
|
||||
../nix-os/virtualization.nix
|
||||
../nix-os/polkit/disable-shutdown.nix
|
||||
../nix-os/locale.nix
|
||||
../nix-os/adb.nix
|
||||
../nix-os/account.nix
|
||||
../nix-os/xdg-default-apps.nix
|
||||
../nix-os/services/nix-binary-cache.nix
|
||||
../nix-os/udev.nix
|
||||
|
||||
"${inputs.nixos-vscode-server}"
|
||||
];
|
||||
|
||||
config = {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "wroclaw-main";
|
||||
|
||||
services.xrdp.enable = true;
|
||||
users.groups."tsusers".members = [ "wroclaw" ];
|
||||
|
||||
services.printing.drivers = with pkgs; [
|
||||
hplip
|
||||
];
|
||||
|
||||
# nixos-vscode-server module needs this
|
||||
programs.nix-ld.enable = true;
|
||||
services.vscode-server = {
|
||||
enable = true;
|
||||
extraRuntimeDependencies = with pkgs; [
|
||||
docker
|
||||
];
|
||||
};
|
||||
|
||||
services.printing.startWhenNeeded = false;
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
};
|
||||
}
|
64
hosts/main/default.nix
Normal file
64
hosts/main/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../nix-os/core.nix
|
||||
../../nix-os/core-desktop.nix
|
||||
../../nix-os/nvidia.nix
|
||||
../../nix-os/docker.nix
|
||||
../../nix-os/razer.nix
|
||||
../../nix-os/desktopManagers/gnome.nix
|
||||
../../nix-os/displayManagers/gdm.nix
|
||||
../../nix-os/shell.nix
|
||||
../../nix-os/virtualization.nix
|
||||
../../nix-os/polkit/disable-shutdown.nix
|
||||
../../nix-os/locale.nix
|
||||
../../nix-os/adb.nix
|
||||
../../nix-os/account.nix
|
||||
../../nix-os/xdg-default-apps.nix
|
||||
../../nix-os/services/nix-binary-cache.nix
|
||||
../../nix-os/udev.nix
|
||||
../../nix-os/gnupg.nix
|
||||
|
||||
"${inputs.nixos-vscode-server}"
|
||||
];
|
||||
|
||||
config = {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "wroclaw-main";
|
||||
|
||||
services.xrdp.enable = true;
|
||||
users.groups."tsusers".members = [ "wroclaw" ];
|
||||
|
||||
services.printing.drivers = with pkgs; [
|
||||
hplip
|
||||
];
|
||||
|
||||
# nixos-vscode-server module needs this
|
||||
programs.nix-ld.enable = true;
|
||||
services.vscode-server = {
|
||||
enable = true;
|
||||
extraRuntimeDependencies = with pkgs; [
|
||||
docker
|
||||
];
|
||||
};
|
||||
|
||||
services.pipewire.wireplumber.configPackages = [(
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "wireplumber-config";
|
||||
src = ./wireplumber;
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/wireplumber/wireplumber.conf.d
|
||||
cp -r $src/* $out/share/wireplumber/wireplumber.conf.d
|
||||
'';
|
||||
}
|
||||
)];
|
||||
|
||||
services.printing.startWhenNeeded = false;
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
};
|
||||
}
|
10
hosts/main/wireplumber/51-digital-output.conf
Normal file
10
hosts/main/wireplumber/51-digital-output.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
monitor.alsa.rules = [{
|
||||
matches = [{
|
||||
node.name = "alsa_output.pci-0000_00_1f.3.iec958-stereo"
|
||||
}]
|
||||
actions = {
|
||||
update-props = {
|
||||
node.description = "Digital Output"
|
||||
}
|
||||
}
|
||||
}]
|
10
hosts/main/wireplumber/51-hdmi-otuput.conf
Normal file
10
hosts/main/wireplumber/51-hdmi-otuput.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
monitor.alsa.rules = [{
|
||||
matches = [{
|
||||
node.name = "alsa_output.pci-0000_01_00.1.hdmi-stereo"
|
||||
}]
|
||||
actions = {
|
||||
update-props = {
|
||||
node.description = "Monitor speakers"
|
||||
}
|
||||
}
|
||||
}]
|
11
hosts/main/wireplumber/51-razerHeadphones-device.conf
Normal file
11
hosts/main/wireplumber/51-razerHeadphones-device.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
monitor.alsa.rules = [{
|
||||
matches = [{
|
||||
device.name = "alsa_card.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00"
|
||||
}]
|
||||
actions = {
|
||||
update-props = {
|
||||
device.description = "Headphones"
|
||||
device.profile = "Pro Audio"
|
||||
}
|
||||
}
|
||||
}]
|
10
hosts/main/wireplumber/51-razerHeadphones-input.conf
Normal file
10
hosts/main/wireplumber/51-razerHeadphones-input.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
monitor.alsa.rules = [{
|
||||
matches = [{
|
||||
node.name = "alsa_input.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00.pro-input-0"
|
||||
}]
|
||||
actions = {
|
||||
update-props = {
|
||||
node.description = "Headphones"
|
||||
}
|
||||
}
|
||||
}]
|
22
hosts/main/wireplumber/51-razerHeadphones-output.conf
Normal file
22
hosts/main/wireplumber/51-razerHeadphones-output.conf
Normal file
|
@ -0,0 +1,22 @@
|
|||
monitor.alsa.rules = [
|
||||
{
|
||||
matches = [{
|
||||
node.name = "alsa_output.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00.pro-output-0"
|
||||
}]
|
||||
actions = {
|
||||
update-props = {
|
||||
node.description = "Headphones (Chat)"
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
matches = [{
|
||||
node.name = "alsa_output.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00.pro-output-1"
|
||||
}]
|
||||
actions = {
|
||||
update-props = {
|
||||
node.description = "Headphones (Game)"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
|
@ -8,6 +8,7 @@
|
|||
../nix-os/adb.nix
|
||||
../nix-os/locale.nix
|
||||
../nix-os/shell.nix
|
||||
../nix-os/gnupg.nix
|
||||
|
||||
../nix-os/desktopManagers/gnome.nix
|
||||
../nix-os/displayManagers/gdm.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue