aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-09-01 09:23:43 +0300
committerZhongheng Liu <z.liu@outlook.com.gr>2024-09-01 09:23:43 +0300
commitf4df5fd49ce3ed25094cf9861562531b1ff1da3d (patch)
treee4dd57e9e2ffa6d82ceca9d4e95b801bf3dadff0
parentc2e4f54322ea781123e08932ed2d7a069cf99a19 (diff)
downloadnixos-configuration-f4df5fd49ce3ed25094cf9861562531b1ff1da3d.tar.gz
nixos-configuration-f4df5fd49ce3ed25094cf9861562531b1ff1da3d.tar.bz2
nixos-configuration-f4df5fd49ce3ed25094cf9861562531b1ff1da3d.zip
feat: kanshi fish and tailscalev1.1
move kanshi config to individual file add tailscale fish completions remove auto-cpufreq change tailscale service to fix exit-node and routing features
-rw-r--r--home-manager/stvnliu/kanshi.nix49
-rw-r--r--home-manager/stvnliu/shells/fish/default.nix1
-rw-r--r--nixos/services/misc.service.nix6
-rw-r--r--nixos/services/tailscale.service.nix1
4 files changed, 54 insertions, 3 deletions
diff --git a/home-manager/stvnliu/kanshi.nix b/home-manager/stvnliu/kanshi.nix
new file mode 100644
index 0000000..ea86c62
--- /dev/null
+++ b/home-manager/stvnliu/kanshi.nix
@@ -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";
+ };
+}
diff --git a/home-manager/stvnliu/shells/fish/default.nix b/home-manager/stvnliu/shells/fish/default.nix
index 895cc7f..c339bb0 100644
--- a/home-manager/stvnliu/shells/fish/default.nix
+++ b/home-manager/stvnliu/shells/fish/default.nix
@@ -16,6 +16,7 @@ in
shellInit = ''
${builtins.readFile ./init/zoxide.fish}
${builtins.readFile ./init/nh.fish}
+ ${builtins.readFile ./init/tailscale.fish}
function fish_greeting
${pkgs.fortune}/bin/fortune -a
end
diff --git a/nixos/services/misc.service.nix b/nixos/services/misc.service.nix
index 72fcd2c..6a10eb0 100644
--- a/nixos/services/misc.service.nix
+++ b/nixos/services/misc.service.nix
@@ -1,7 +1,7 @@
{...}: {
- specialisation.powersave.configuration = {
- services.auto-cpufreq.enable = true;
- };
+ #specialisation.powersave.configuration = {
+ # services.auto-cpufreq.enable = true;
+ #};
services = {
upower.enable = true;
udisks2.enable = true;
diff --git a/nixos/services/tailscale.service.nix b/nixos/services/tailscale.service.nix
index 5e34a3c..d0fbde1 100644
--- a/nixos/services/tailscale.service.nix
+++ b/nixos/services/tailscale.service.nix
@@ -5,5 +5,6 @@
}: {
services.tailscale = {
enable = true;
+ useRoutingFeatures = "client";
};
}