feat: kanshi fish and tailscale
move kanshi config to individual file add tailscale fish completions remove auto-cpufreq change tailscale service to fix exit-node and routing features
This commit is contained in:
parent
c2e4f54322
commit
f4df5fd49c
4 changed files with 54 additions and 3 deletions
49
home-manager/stvnliu/kanshi.nix
Normal file
49
home-manager/stvnliu/kanshi.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.kanshi = {
|
||||||
|
enable = true;
|
||||||
|
profiles = {
|
||||||
|
undocked = {
|
||||||
|
outputs = [
|
||||||
|
{
|
||||||
|
criteria = "eDP-1";
|
||||||
|
scale = 1.0;
|
||||||
|
status = "enable";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
docked_office_cn = {
|
||||||
|
outputs = [
|
||||||
|
{
|
||||||
|
criteria = "AOC 2619 M1194JA002428";
|
||||||
|
position = "0,0";
|
||||||
|
mode = "1920x1200@59.94Hz";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
criteria = "eDP-1";
|
||||||
|
position = "0,0";
|
||||||
|
status = "disable";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
docked_office_gr = {
|
||||||
|
outputs = [
|
||||||
|
{
|
||||||
|
criteria = "HDMI-A-1";
|
||||||
|
position = "0,0";
|
||||||
|
mode = "1920x1080@60.00Hz";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
criteria = "eDP-1";
|
||||||
|
position = "0,0";
|
||||||
|
status = "disable";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemdTarget = "hyprland-session.target";
|
||||||
|
};
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ in
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
${builtins.readFile ./init/zoxide.fish}
|
${builtins.readFile ./init/zoxide.fish}
|
||||||
${builtins.readFile ./init/nh.fish}
|
${builtins.readFile ./init/nh.fish}
|
||||||
|
${builtins.readFile ./init/tailscale.fish}
|
||||||
function fish_greeting
|
function fish_greeting
|
||||||
${pkgs.fortune}/bin/fortune -a
|
${pkgs.fortune}/bin/fortune -a
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
specialisation.powersave.configuration = {
|
#specialisation.powersave.configuration = {
|
||||||
services.auto-cpufreq.enable = true;
|
# services.auto-cpufreq.enable = true;
|
||||||
};
|
#};
|
||||||
services = {
|
services = {
|
||||||
upower.enable = true;
|
upower.enable = true;
|
||||||
udisks2.enable = true;
|
udisks2.enable = true;
|
||||||
|
|
|
@ -5,5 +5,6 @@
|
||||||
}: {
|
}: {
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
useRoutingFeatures = "client";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue