This commit is contained in:
Your Name 2022-10-31 09:45:49 +01:00
parent 7b9c264ec8
commit 9d5d268a97

View File

@ -130,10 +130,22 @@
inter
];
virtualisation = {
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.dnsname.enable = true;
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
set-backlight-script
neovim
git
wget
@ -341,26 +353,26 @@ $NEW_PROMPT_COMMAND"
};
let set-backlight-script = (writeShellApplication {
systemd.services.setbacklight = let set-backlight-script = (pkgs.writeShellApplication {
name = "set-backlight-script";
text = ''
#!/bin/sh
for d in /sys/class/backlight/*; do
cd $d
cd "$d"
echo $(( $(cat max_brightness) / 2)) > brightness
done
'';
});
in
systemd.services.99setbacklight = {
in {
enable = true;
description = "bar";
unitConfig = {
Type = "simple";
};
serviceConfig = {
ExecStart = "${set-backlight-script}";
ExecStart = "${set-backlight-script}/bin/set-backlight-script";
};
wantedBy = [ "multi-user.target" ];
};