Mon Jun 3 09:04:20 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-03 21:04:20 +02:00
parent 063df11269
commit 36fa874bc8
4 changed files with 24 additions and 12 deletions

View File

@ -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";
};
} }

View File

@ -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;

View File

@ -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";

1
result Symbolic link
View File

@ -0,0 +1 @@
/nix/store/a3w8d1fnvdlm6kqjmp65apvnpm56m244-home-manager-generation