mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
Fix light-locker, google-drive; add power to lightdm
This commit is contained in:
15
config.nix
15
config.nix
@@ -14,8 +14,6 @@ in {
|
||||
configs/retiolum.nix
|
||||
];
|
||||
|
||||
nix.optimise.automatic = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
sound.enable = true;
|
||||
@@ -58,18 +56,17 @@ in {
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
systemd.user.services.google-drive = {
|
||||
systemd.services.google-drive = {
|
||||
description = "Google Drive synchronisation service";
|
||||
wants = [ "network-online.target" ];
|
||||
script = ''
|
||||
${pkgs.grive2}/bin/grive -p ${config.users.users.kfm.home}/cloud/gdrive
|
||||
'';
|
||||
serviceConfig.Restart = "on-failure";
|
||||
};
|
||||
|
||||
systemd.user.timers.google-drive = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnUnitActiveSec = "5minutes";
|
||||
startAt = "*:0/5";
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
User = "kfm";
|
||||
};
|
||||
};
|
||||
|
||||
programs.tmux = {
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
${pkgs.dropbox-cli}/bin/dropbox start &
|
||||
${pkgs.seafile-client}/bin/seafile-applet &
|
||||
${pkgs.systemd}/bin/systemctl --user import-environment XDG_SESSION_PATH
|
||||
${pkgs.lightlocker}/bin/light-locker
|
||||
${pkgs.lightlocker}/bin/light-locker &
|
||||
${pkgs.openssh}/bin/ssh-add
|
||||
'';
|
||||
displayManager.lightdm.greeters.gtk = {
|
||||
enable = true;
|
||||
theme = { name = config.constants.theme.gtk.name; package = config.constants.theme.gtk.package; };
|
||||
iconTheme = { name = config.constants.theme.icon.name; package = config.constants.theme.icon.package; };
|
||||
indicators = [ "~spacer" "~host" "~spacer" "~session" ];
|
||||
indicators = [ "~spacer" "~host" "~spacer" "~session" "~power" ];
|
||||
};
|
||||
desktopManager.xterm.enable = false;
|
||||
windowManager.default = "i3";
|
||||
|
||||
@@ -30,7 +30,7 @@ in with pkgs;
|
||||
] ++ [ # office
|
||||
abiword
|
||||
gnumeric
|
||||
typora
|
||||
# typora
|
||||
] ++ [ # theme
|
||||
config.constants.theme.gtk.package
|
||||
config.constants.theme.icon.package
|
||||
|
||||
Reference in New Issue
Block a user