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}
|
#!${pkgs.stdenv.shell}
|
||||||
which=0
|
which=0
|
||||||
controlName=""
|
controlName=""
|
||||||
|
newValue=$${1:-2}
|
||||||
|
|
||||||
find_control() {
|
find_control() {
|
||||||
for i in /dev/snd/controlC*; do
|
for i in /dev/snd/controlC*; do
|
||||||
|
@ -12,6 +13,8 @@
|
||||||
if [[ -z $r ]]; then
|
if [[ -z $r ]]; then
|
||||||
((which++))
|
((which++))
|
||||||
continue
|
continue
|
||||||
|
else
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "found: $r"
|
echo "found: $r"
|
||||||
|
@ -28,17 +31,21 @@
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${amixer} cset -c $which "$controlName" 2 && exit 0
|
${amixer} cset -c $which "$controlName" "$newValue" && exit 0
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
systemd.user.services.scarlett-air = {
|
home.packages = [
|
||||||
enable = true;
|
script
|
||||||
wantedBy = [ "graphical-session.target" ];
|
];
|
||||||
description = "Enables yellow Air on the DAC";
|
|
||||||
serviceConfig = {
|
# systemd.user.services.scarlett-air = {
|
||||||
Type = "oneshot";
|
# enable = true;
|
||||||
ExecStart = "${script}/bin/scarlett-air";
|
# 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/vesktop
|
||||||
../../features/retroarch.nix
|
../../features/retroarch.nix
|
||||||
../../features/wallpaper.nix
|
../../features/wallpaper.nix
|
||||||
|
../../features/scarlett-air.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; let
|
home.packages = with pkgs; let
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
|
local-pkgs.kelmscott-mono
|
||||||
];
|
];
|
||||||
|
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
keyutils
|
keyutils
|
||||||
gamemode
|
gamemode
|
||||||
mangohud
|
mangohud
|
||||||
|
steamtinkerlaunch
|
||||||
];
|
];
|
||||||
extraCompatPackages = with pkgs; [
|
extraCompatPackages = with pkgs; [
|
||||||
proton-ge-bin
|
proton-ge-bin
|
||||||
|
@ -14,4 +15,8 @@
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
protontricks.enable = true;
|
protontricks.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.steamtinkerlaunch
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
../../features/tailscale.nix
|
../../features/tailscale.nix
|
||||||
../../features/telemetry
|
../../features/telemetry
|
||||||
../../features/wine.nix
|
../../features/wine.nix
|
||||||
|
|
||||||
./scarlett-air.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix;
|
home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix;
|
||||||
|
|
|
@ -67,6 +67,10 @@ in rec {
|
||||||
proxy_set_header user-agent "";
|
proxy_set_header user-agent "";
|
||||||
proxy_method GET;
|
proxy_method GET;
|
||||||
|
|
||||||
|
# no dot, assume a dir path
|
||||||
|
rewrite (/[^.]+)[^/]$ $1/ redirect;
|
||||||
|
|
||||||
|
# pronouns/ => pronouns/index.html;
|
||||||
rewrite (.*)/$ $1/index.html;
|
rewrite (.*)/$ $1/index.html;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
beyond-all-reason = import ./beyond-all-reason.nix { inherit pkgs; };
|
beyond-all-reason = import ./beyond-all-reason.nix { inherit pkgs; };
|
||||||
mspaint = import ./mspaint { inherit pkgs; };
|
mspaint = import ./mspaint { inherit pkgs; };
|
||||||
wallpaper = import ./wallpaper { 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