Add missed imports
This commit is contained in:
parent
7759fd1fa9
commit
cebc7be1bf
58 changed files with 15 additions and 23 deletions
13
home/services/gnome-keyring.nix
Normal file
13
home/services/gnome-keyring.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{pkgs, ...}: {
|
||||
services.gnome-keyring = {
|
||||
enable = true;
|
||||
components = [
|
||||
"ssh"
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gnome.gnome-keyring
|
||||
gnome.libgnome-keyring
|
||||
];
|
||||
}
|
43
home/services/mako.nix
Normal file
43
home/services/mako.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{pkgs, outputs, ...}: {
|
||||
# Notification daemon
|
||||
services.mako = {
|
||||
enable = true;
|
||||
borderColor = "#${outputs.look.colors.accent}";
|
||||
backgroundColor = "#${outputs.look.colors.dark}CC";
|
||||
output = "${outputs.displays.d1}";
|
||||
sort = "+time";
|
||||
layer = "overlay";
|
||||
padding = "8";
|
||||
margin = "0";
|
||||
borderSize = outputs.look.border.int;
|
||||
maxIconSize = 40;
|
||||
defaultTimeout = 6000;
|
||||
font = "${outputs.look.fonts.main} 12";
|
||||
anchor = "bottom-right";
|
||||
extraConfig = "on-button-right=dismiss-all\nouter-margin=10\n[mode=do-not-disturb]\ninvisible=1";
|
||||
};
|
||||
|
||||
# Script to toggle notifications using mako
|
||||
home.packages = let
|
||||
makoToggle = pkgs.writeScriptBin "makotoggle" ''
|
||||
# Run makoctl mode and store the output in a variable
|
||||
mode_output=$(makoctl mode)
|
||||
|
||||
# Extract the second line after "default"
|
||||
mode_line=$(echo "$mode_output" | sed -n '/default/{n;p}')
|
||||
|
||||
if [[ "$mode_line" == "do-not-disturb" ]]; then
|
||||
# Notifications are disabled, so we enable them
|
||||
makoctl mode -r do-not-disturb
|
||||
notify-send --expire-time=1500 'Notifications Enabled'
|
||||
else
|
||||
# Notifications are enabled, so we disable them
|
||||
notify-send --expire-time=1500 'Notifications Disabled'
|
||||
sleep 2
|
||||
makoctl mode -a do-not-disturb
|
||||
fi
|
||||
'';
|
||||
in with pkgs; [
|
||||
makoToggle
|
||||
];
|
||||
}
|
7
home/services/reloadunits.nix
Normal file
7
home/services/reloadunits.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user = {
|
||||
enable = true;
|
||||
startServices = "sd-switch";
|
||||
};
|
||||
}
|
4
home/services/udiskie.nix
Normal file
4
home/services/udiskie.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
# Automount with udisk2
|
||||
services.udiskie.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue