add screen rotation
This commit is contained in:
parent
87331d9826
commit
2a54626ab0
1 changed files with 35 additions and 21 deletions
|
|
@ -5,10 +5,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.grub.enable = true;
|
||||
|
|
@ -56,8 +56,11 @@
|
|||
users.users.kemp = {
|
||||
isNormalUser = true;
|
||||
description = "kemp";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [];
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
packages = with pkgs; [ ];
|
||||
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINGHadFhDCUU/ta3p1FQgpm7NExHkyHNrJbNJP6np5w9 kempinger@ins.jku.at"
|
||||
|
|
@ -76,32 +79,43 @@
|
|||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
git
|
||||
nil
|
||||
nixd
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
git
|
||||
nil
|
||||
nixd
|
||||
wlr-randr
|
||||
kmsxx
|
||||
];
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
systemd.services.cage-tty1={
|
||||
systemd.services.cage-tty1 = {
|
||||
after = [
|
||||
"network-online.target"
|
||||
#"systemd-resolved.service"
|
||||
];serviceConfig = {
|
||||
Restart = "always";
|
||||
RestartSec = "1s";
|
||||
};
|
||||
environment.XKB_DEFAULT_LAYOUT = "de";
|
||||
"network-online.target"
|
||||
#"systemd-resolved.service"
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
RestartSec = "1s";
|
||||
};
|
||||
environment.XKB_DEFAULT_LAYOUT = "de";
|
||||
};
|
||||
|
||||
services.cage = {
|
||||
enable = true;
|
||||
user = "kemp";
|
||||
program = "${pkgs.firefox}/bin/firefox";
|
||||
program = "${pkgs.writeScriptBin "start-cage-app" ''
|
||||
#!/usr/bin/env bash
|
||||
kmsprint |
|
||||
grep '(connected)' |
|
||||
sed -E 's/.* ([^ ]+) \(connected\).*/\1/' |
|
||||
while read -r output; do
|
||||
wlr-randr --output "$output" --transform 180
|
||||
done
|
||||
exec ${pkgs.firefox}/bin/firefox
|
||||
''}/bin/start-cage-app";
|
||||
};
|
||||
services.getty.loginProgram = "${pkgs.coreutils}/bin/true";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue