awawa
This commit is contained in:
parent
77b02b6d8d
commit
e2604dddd0
8 changed files with 48 additions and 12 deletions
|
@ -4,6 +4,7 @@
|
|||
#!${pkgs.stdenv.shell}
|
||||
which=0
|
||||
controlName=""
|
||||
newValue=$${1:-2}
|
||||
|
||||
find_control() {
|
||||
for i in /dev/snd/controlC*; do
|
||||
|
@ -12,6 +13,8 @@
|
|||
if [[ -z $r ]]; then
|
||||
((which++))
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
|
||||
echo "found: $r"
|
||||
|
@ -28,17 +31,21 @@
|
|||
continue
|
||||
fi
|
||||
|
||||
${amixer} cset -c $which "$controlName" 2 && exit 0
|
||||
${amixer} cset -c $which "$controlName" "$newValue" && exit 0
|
||||
done
|
||||
'';
|
||||
in {
|
||||
systemd.user.services.scarlett-air = {
|
||||
enable = true;
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
description = "Enables yellow Air on the DAC";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${script}/bin/scarlett-air";
|
||||
};
|
||||
};
|
||||
home.packages = [
|
||||
script
|
||||
];
|
||||
|
||||
# systemd.user.services.scarlett-air = {
|
||||
# enable = true;
|
||||
# wantedBy = [ "graphical-session.target" ];
|
||||
# description = "Enables yellow Air on the DAC";
|
||||
# serviceConfig = {
|
||||
# Type = "oneshot";
|
||||
# ExecStart = "${script}/bin/scarlett-air";
|
||||
# };
|
||||
# };
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
../../features/vesktop
|
||||
../../features/retroarch.nix
|
||||
../../features/wallpaper.nix
|
||||
../../features/scarlett-air.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; let
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
nerd-fonts.fira-code
|
||||
nerd-fonts.fira-code
|
||||
noto-fonts-cjk-sans
|
||||
local-pkgs.kelmscott-mono
|
||||
];
|
||||
|
||||
fontDir.enable = true;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
keyutils
|
||||
gamemode
|
||||
mangohud
|
||||
steamtinkerlaunch
|
||||
];
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
|
@ -14,4 +15,8 @@
|
|||
remotePlay.openFirewall = true;
|
||||
protontricks.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.steamtinkerlaunch
|
||||
];
|
||||
}
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
../../features/tailscale.nix
|
||||
../../features/telemetry
|
||||
../../features/wine.nix
|
||||
|
||||
./scarlett-air.nix
|
||||
];
|
||||
|
||||
home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix;
|
||||
|
|
|
@ -67,6 +67,10 @@ in rec {
|
|||
proxy_set_header user-agent "";
|
||||
proxy_method GET;
|
||||
|
||||
# no dot, assume a dir path
|
||||
rewrite (/[^.]+)[^/]$ $1/ redirect;
|
||||
|
||||
# pronouns/ => pronouns/index.html;
|
||||
rewrite (.*)/$ $1/index.html;
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
beyond-all-reason = import ./beyond-all-reason.nix { inherit pkgs; };
|
||||
mspaint = import ./mspaint { inherit pkgs; };
|
||||
wallpaper = import ./wallpaper { inherit pkgs; };
|
||||
kelmscott-mono = import ./kelmscott-mono { inherit pkgs; };
|
||||
}
|
||||
|
19
pkgs/kelmscott-mono/default.nix
Normal file
19
pkgs/kelmscott-mono/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }: pkgs.stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "kelmscott-mono";
|
||||
version = "1.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "seeddisperser";
|
||||
repo = "kelmscott-mono";
|
||||
rev = "54fa2edd797ba381678c420a1cbc6e38d2c1c5d5";
|
||||
hash = "sha256-xyydL/T6z9DnmIb9paSnVK/JjVTpxSM45V9jj2GSU78=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm644 *.otf -t $out/share/fonts/opentype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue