mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-28 01:18:29 +02:00
user: remove shikane config
This commit is contained in:
parent
97a9bbce42
commit
a9f3c6836e
7 changed files with 37 additions and 267 deletions
|
@ -21,7 +21,7 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
home-manager.users.rouven = { ... }: {
|
||||
imports = [ ./modules ./options ];
|
||||
imports = [ ./modules ];
|
||||
|
||||
config = {
|
||||
home.username = "rouven";
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
./mpv
|
||||
./ssh
|
||||
./theme
|
||||
./tex
|
||||
# ./tex
|
||||
./packages.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
git = "~/.ssh/git";
|
||||
in
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
package = pkgs.openssh_gssapi;
|
||||
compression = true;
|
||||
controlMaster = "auto";
|
||||
controlPersist = "10m";
|
||||
|
@ -67,13 +68,15 @@ in
|
|||
user = "r5";
|
||||
extraOptions = {
|
||||
VerifyHostKeyDNS = "yes";
|
||||
GSSAPIAuthentication = "yes";
|
||||
};
|
||||
};
|
||||
"*.agdsn.network" = {
|
||||
user = "r5";
|
||||
extraOptions = {
|
||||
ProxyJump = "dijkstra";
|
||||
# ProxyJump = "dijkstra";
|
||||
VerifyHostKeyDNS = "yes";
|
||||
GSSAPIAuthentication = "yes";
|
||||
};
|
||||
};
|
||||
"git@git.agdsn.de" = {
|
||||
|
|
|
@ -1,172 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.shikane = {
|
||||
enable = true;
|
||||
settings = {
|
||||
profile = [
|
||||
{
|
||||
name = "home";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 1920;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "DP-2";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "HDMI-A-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 3840;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "home-vertical";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 1080;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "DP-3";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
transform = "270";
|
||||
}
|
||||
{
|
||||
match = "HDMI-A-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 3000;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "external-monitor-default";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "HDMI-A-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 1920;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "external-monitor-usb-c";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 1440;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "/P24h/";
|
||||
enable = true;
|
||||
mode = {
|
||||
height = 1440;
|
||||
width = 2560;
|
||||
refresh = 60;
|
||||
};
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "external-monitor-usb-c";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 1920;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "DP-2";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
# vertical mode if on dp-3
|
||||
{
|
||||
name = "external-monitor-usb-c-vertical";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 1080;
|
||||
y = 840;
|
||||
};
|
||||
}
|
||||
{
|
||||
match = "DP-3";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
transform = "270";
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "builtin";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
home.packages = [
|
||||
pkgs.shikane
|
||||
];
|
||||
systemd.user.services.shikane = {
|
||||
Unit = {
|
||||
Description = "Dynamic output configuration tool";
|
||||
Documentation = "man:shikane(1)";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = { ExecStart = "${pkgs.shikane}/bin/shikane"; };
|
||||
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
imports = [ ./shikane.nix ];
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.shikane;
|
||||
tomlFormat = pkgs.formats.toml { };
|
||||
in
|
||||
{
|
||||
meta.maintainers = [ maintainers.therealr5 ];
|
||||
options.services.shikane = {
|
||||
|
||||
enable = mkEnableOption
|
||||
"shikane, A dynamic output configuration tool that automatically detects and configures connected outputs based on a set of profiles.";
|
||||
|
||||
package = mkPackageOption pkgs "shikane" { };
|
||||
|
||||
settings = mkOption {
|
||||
type = tomlFormat.type;
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
profile = [
|
||||
{
|
||||
name = "external-monitor-default";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
}
|
||||
{
|
||||
match = "HDMI-A-1";
|
||||
enable = true;
|
||||
position = {
|
||||
x = 1920;
|
||||
y = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "builtin-monitor-only";
|
||||
output = [
|
||||
{
|
||||
match = "eDP-1";
|
||||
enable = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
'';
|
||||
description = ''
|
||||
Configuration written to
|
||||
<filename>$XDG_CONFIG_HOME/shikane/config.toml</filename>.
|
||||
</para><para>
|
||||
See <link xlink:href="https://gitlab.com/w0lff/shikane/-/blob/master/docs/shikane.5.man.md" />
|
||||
for more information.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.user.services.shikane = {
|
||||
Unit = {
|
||||
Description = "Dynamic output configuration tool";
|
||||
Documentation = "man:shikane(1)";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = { ExecStart = "${cfg.package}/bin/shikane -c ${tomlFormat.generate "shikane-config.toml" cfg.settings}"; };
|
||||
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue