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