This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemd.user.services.rfkill-own = { | |
description = "RFKill-Block WLAN"; | |
serviceConfig = { | |
Type = "idle"; | |
ExecStart = "/run/current-system/sw/bin/rfkill block wlan"; | |
}; | |
wantedBy = [ "multi-user.target" ]; | |
}; | |
systemd.services.rfkill-own.enable = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
programs.zsh = { | |
enable = true; | |
ohMyZsh = let | |
packages = [ | |
{ | |
owner = "nwuensche"; | |
repo = "dotFiles"; | |
rev = "1.0"; | |
sha256 = "0n8xagqilkw13h20knb6by6ycpqjrx0qdjnpiaizbfkj8j5p4nyj"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
environment.systemPackages = with pkgs; [ | |
(pkgs.oh-my-zsh.overrideAttrs (oldAttrs: rec { | |
phases = "installPhase customThemePhase"; | |
srcTheme = fetchurl { | |
url = "https://raw.githubusercontent.com/NWuensche/dotFiles/master/terminalStuff/agnoster.zsh-theme"; | |
sha256 = "b99455c561bdcf9ec0601669da3d1aa680328ec1836430de22c6e7e32497ea5b"; | |
}; | |
customThemePhase = "sudo cp $srcTheme $outdir/themes/agnoster.zsh-theme"; | |
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security.wrappers.light-intel = { source = pkgs.writeScript "light-intel" | |
'' | |
#!/bin/sh | |
CURR=$(cat /sys/class/backlight/intel_backlight/brightness) | |
echo $(($CURR+$1)) | tee /sys/class/backlight/intel_backlight/brightness | |
''; | |
owner = "root"; setuid = true; }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.istack.internal.NotNull; | |
import com.sun.istack.internal.Nullable; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.function.Predicate; | |
import java.util.stream.Collectors; | |
/** | |
* @author Niklas Wünsche |
NewerOlder