Mon Jun 3 09:04:20 PM CEST 2024
This commit is contained in:
parent
063df11269
commit
36fa874bc8
|
@ -26,15 +26,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
disk_timer = mkTimer {
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(import ./common.nix { inherit inputs config pkgs; })
|
|
||||||
./ssh
|
|
||||||
];
|
|
||||||
|
|
||||||
mkTimer {
|
|
||||||
name = "disk_check";
|
name = "disk_check";
|
||||||
interval = "1h";
|
interval = "1h";
|
||||||
serviceScript = toString (pkgs.writeShellScript "disk_check" ''
|
serviceScript = toString (pkgs.writeShellScript "disk_check" ''
|
||||||
|
@ -51,5 +43,24 @@ in
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
'');
|
'');
|
||||||
}
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.username = "server";
|
||||||
|
home.homeDirectory = "/home/server";
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nix;
|
||||||
|
settings.use-xdg-base-directories = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# home.profileDirectory = "${config.xdg.stateHome}/nix/profile";
|
||||||
|
imports = [
|
||||||
|
(import ./common.nix { inherit inputs config pkgs; })
|
||||||
|
./ssh
|
||||||
|
];
|
||||||
|
home.sessionVariables = {
|
||||||
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
|
LANG = "en_US.UTF-8";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./zsh ./git ./nvim ./email ./lf ];
|
imports = [ ./zsh ./git ./nvim ./email ./lf ./tmux ];
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
targets.genericLinux.enable = true;
|
targets.genericLinux.enable = true;
|
||||||
|
|
|
@ -17,7 +17,7 @@ in
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
terminal = "tmux-256color";
|
terminal = "screen-256color";
|
||||||
enable = true;
|
enable = true;
|
||||||
clock24 = true;
|
clock24 = true;
|
||||||
shortcut = "a";
|
shortcut = "a";
|
||||||
|
|
Loading…
Reference in New Issue