ops/nixos: further tweaks
This commit is contained in:
parent
29fa1e35fd
commit
f5c80fe35d
5 changed files with 65 additions and 13 deletions
|
@ -47,6 +47,10 @@ in
|
|||
allowPing = true;
|
||||
};
|
||||
|
||||
environment.homeBinInPath = true;
|
||||
security.doas.wheelNeedsPassword = false;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users = let secrets = depot.ops.secrets; in {
|
||||
root.hashedPassword = secrets.passwordHashes.root;
|
||||
|
|
|
@ -22,17 +22,5 @@ in
|
|||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
users.users.lukegb.packages = mkBefore (with pkgs; [
|
||||
chromium
|
||||
dino
|
||||
lutris
|
||||
pavucontrol
|
||||
rxvt_unicode
|
||||
teamspeak_client
|
||||
virtmanager
|
||||
xclip
|
||||
yubioath-desktop
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
imports = [ ./client.nix ];
|
||||
|
||||
|
@ -12,4 +12,43 @@
|
|||
enable = true;
|
||||
platformTheme = "gtk";
|
||||
};
|
||||
|
||||
home.packages = lib.mkAfter (with pkgs; [
|
||||
chromium
|
||||
dino
|
||||
lutris
|
||||
pavucontrol
|
||||
pngquant
|
||||
rxvt_unicode
|
||||
teamspeak_client
|
||||
virtmanager
|
||||
xclip
|
||||
xss-lock
|
||||
yubioath-desktop
|
||||
]);
|
||||
|
||||
home.file."bin/screencap" = {
|
||||
executable = true;
|
||||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
import png:/dev/stdout | pngquant - | xclip -t image/png -selection clipboard -in
|
||||
'';
|
||||
};
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
keybindings = let
|
||||
modifier = config.xsession.windowManager.i3.config.modifier;
|
||||
in lib.mkOptionDefault {
|
||||
"${modifier}+l" = "exec loginctl lock-session";
|
||||
"${modifier}+p" = "exec screencap";
|
||||
};
|
||||
startup = [
|
||||
{ command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -163,6 +163,8 @@ in {
|
|||
iw
|
||||
vulkan-tools
|
||||
]);
|
||||
|
||||
xdg.configFile."pulse/default.pa".source = ./default.pa;
|
||||
};
|
||||
|
||||
# github.com/target/lorri
|
||||
|
|
19
ops/nixos/porcorosso/default.pa
Normal file
19
ops/nixos/porcorosso/default.pa
Normal file
|
@ -0,0 +1,19 @@
|
|||
.include /etc/pulse/default.pa
|
||||
|
||||
.nofail
|
||||
|
||||
# Configure my standard USB headphones.
|
||||
set-default-sink alsa_output.usb-SteelSeries_Arctis_Pro_Wireless-00.analog-stereo
|
||||
set-default-source alsa_input.usb-SteelSeries_Arctis_Pro_Wireless-00.analog-mono
|
||||
|
||||
# Webcam
|
||||
set-card-profile alsa_card.usb-Microsoft_Microsoft___LifeCam_HD-3000-02 off
|
||||
|
||||
# HDA NVIDIA / TU104 HD Audio Controller
|
||||
set-card-profile alsa_card.pci-0000_01_00.1 off
|
||||
|
||||
# WD19 Dell Dock
|
||||
set-card-profile alsa_card.usb-Generic_USB_Audio_200901010001-00 off
|
||||
|
||||
# HDA Intel PCH / Cannon Lake PCH cAVS
|
||||
set-card-profile alsa_card.pci-0000_00_1f.3 off
|
Loading…
Reference in a new issue