inpermanance & idle inhibitor
disable idle inhibitator as it did not work, change the logic to start and stop of hypridle. Disable inpermanance as the configuration is not finished yet. Disable whatsie due to an insecure dependencie.
This commit is contained in:
@@ -120,6 +120,7 @@
|
||||
dbus
|
||||
|
||||
libnotify
|
||||
dunst
|
||||
|
||||
# For Saving the Auth of Nextcloud.
|
||||
seahorse
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
};
|
||||
|
||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||
|
||||
# impermanence.url = "github:nix-community/impermanence";
|
||||
};
|
||||
|
||||
outputs =
|
||||
@@ -33,6 +35,7 @@
|
||||
home-manager,
|
||||
nur,
|
||||
nixvim,
|
||||
# impermanence,
|
||||
...
|
||||
}@inputs:
|
||||
{
|
||||
@@ -45,6 +48,7 @@
|
||||
./home/services/pipewire.nix
|
||||
nur.modules.nixos.default
|
||||
home-manager.nixosModules.home-manager
|
||||
# impermanence.nixosModules.impermanence
|
||||
{
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
@@ -66,6 +70,7 @@
|
||||
./home/services/pipewire.nix
|
||||
nur.modules.nixos.default
|
||||
home-manager.nixosModules.home-manager
|
||||
# impermanence.nixosModules.impermanence
|
||||
{
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
|
||||
@@ -5,6 +5,26 @@
|
||||
./services
|
||||
];
|
||||
|
||||
# home.persistence."/persistent" = {
|
||||
# directories = [
|
||||
# "Downloads"
|
||||
# "Pictures"
|
||||
# "Documents"
|
||||
# {
|
||||
# directory = ".gnupg";
|
||||
# mode = "0700";
|
||||
# }
|
||||
# {
|
||||
# directory = ".ssh";
|
||||
# mode = "0700";
|
||||
# }
|
||||
# {
|
||||
# directory = ".local/share/keyrings";
|
||||
# mode = "0700";
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
#
|
||||
home = {
|
||||
username = "elias";
|
||||
homeDirectory = "/home/elias";
|
||||
@@ -31,18 +51,6 @@
|
||||
stateVersion = "23.11";
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
idle-inhibitor = {
|
||||
Unit = {
|
||||
Description = "Presentation Mode";
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "systemd-inhibit --what=idle --who=Caffeine --why=Caffeine --mode=block sleep inf";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
nixpkgs.config = {
|
||||
|
||||
@@ -51,14 +51,14 @@
|
||||
|
||||
;; ── Idle Inhibitor ──────────────────────────────────────────────────
|
||||
|
||||
(deflisten idle_inhibitor "journalctl --output=cat --output-fields=JOB_TYPE --user --follow --unit=idle-inhibitor")
|
||||
(deflisten idle_inhibitor "journalctl --output=cat --output-fields=JOB_TYPE --user --follow --unit=hypridle.service")
|
||||
|
||||
(defwidget idle_inhibitor []
|
||||
(box
|
||||
:space-evenly false
|
||||
(button
|
||||
:class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }"
|
||||
:onclick "systemctl is-active idle-inhibitor.service && systemctl stop idle-inhibitor.service || systemctl start idle-inhibitor.service"
|
||||
:onclick "systemctl --user is-active hypridle.service && systemctl --user stop hypridle.service || systemctl --user start hypridle.service"
|
||||
(label :text "${idle_inhibitor == 'start' ? '' : '' }"))))
|
||||
|
||||
;; ── Audio ───────────────────────────────────────────────────────────
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
signal-desktop
|
||||
slack
|
||||
telegram-desktop
|
||||
# whatsie
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user