Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed Sep 22, 2024
1 parent 5cb68b1 commit 30c69f1
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
8 changes: 7 additions & 1 deletion home-manager/services/advanced.nix
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{ pkgs }: let mako = import ./mako { inherit pkgs; }; in [ mako ]
{ pkgs }:
let
mako = import ./mako { inherit pkgs; };
swayidle = import ./swayidle { inherit pkgs; };
swaync = import ./swaync { inherit pkgs; };
swayosd = import ./swayosd { inherit pkgs; };
in [ mako swayidle swaync swayosd ]
6 changes: 6 additions & 0 deletions home-manager/services/autorandr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ pkgs }: {
services.autorandr = {
enable = pkgs.stdenv.isLinux;
ignoreLid = false;
};
}
15 changes: 15 additions & 0 deletions home-manager/services/swayidle/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ pkgs }: {
services.swayidle = {
enable = pkgs.stdenv.isLinux;
timeouts = [
{
timeout = 60;
command = "${pkgs.swaylock}/bin/swaylock -fF";
}
{
timeout = 90;
command = "${pkgs.systemd}/bin/systemctl suspend";
}
];
};
}
22 changes: 22 additions & 0 deletions home-manager/services/swaync/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ pkgs }: {
services.swaync = {
enable = pkgs.stdenv.isLinux;
settings = {
positionX = "right";
positionY = "top";
layer = "overlay";
control-center-layer = "top";
layer-shell = true;
cssPriority = "application";
control-center-margin-top = 0;
control-center-margin-bottom = 0;
control-center-margin-right = 0;
control-center-margin-left = 0;
notification-2fa-action = true;
notification-inline-replies = false;
notification-icon-size = 64;
notification-body-image-height = 100;
notification-body-image-width = 200;
};
};
}
6 changes: 6 additions & 0 deletions home-manager/services/swayosd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ pkgs }: {
services.swayosd = {
enable = pkgs.stdenv.isLinux;
display = null;
};
}

0 comments on commit 30c69f1

Please sign in to comment.