2024-11-22 23:15:13 -05:00
|
|
|
# FIXME: eval is broken
|
2023-12-08 14:59:44 -05:00
|
|
|
{
|
|
|
|
config,
|
2024-11-22 02:48:41 -05:00
|
|
|
self,
|
2023-12-08 14:59:44 -05:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
2024-11-22 17:58:24 -05:00
|
|
|
../../common/vars
|
|
|
|
../../common/modules/global.nix
|
|
|
|
../../common/packages.nix
|
|
|
|
|
|
|
|
self.nixosModules.tmux
|
|
|
|
{programs.tmux.enableCustomConf = true;}
|
2023-12-08 14:59:44 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
# Edit nix.conf
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
warn-dirty = false
|
|
|
|
'';
|
|
|
|
|
|
|
|
substituters = [
|
2024-01-23 09:06:09 -05:00
|
|
|
# Nix-community
|
2023-12-08 14:59:44 -05:00
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
trustedPublicKeys = [
|
2024-01-23 09:06:09 -05:00
|
|
|
# Nix-community
|
2023-12-08 14:59:44 -05:00
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Global hm settings
|
2023-12-13 21:38:30 -05:00
|
|
|
home-manager.config = {
|
|
|
|
imports = [
|
2024-11-22 02:48:41 -05:00
|
|
|
self.homeManagerModules.neovim
|
2024-11-22 17:58:24 -05:00
|
|
|
{programs.neovim.enable = true;}
|
|
|
|
|
|
|
|
self.homeManagerModules.shell
|
|
|
|
{programs.bash.enable = true;}
|
2023-12-20 04:07:56 -05:00
|
|
|
|
|
|
|
{
|
2024-03-30 22:17:51 -04:00
|
|
|
programs.bash.sessionVariables = {
|
|
|
|
FLAKE = config.environment.variables.FLAKE;
|
|
|
|
};
|
|
|
|
|
2023-12-20 04:07:56 -05:00
|
|
|
programs.bash.shellAliases = {
|
2024-01-25 07:58:07 -05:00
|
|
|
# Make ping work on nix-on-droid
|
|
|
|
# https://github.com/nix-community/nix-on-droid/issues/185#issuecomment-1659294700
|
|
|
|
ping = "/android/system/bin/linker64 /android/system/bin/ping";
|
|
|
|
|
|
|
|
# SSH
|
2024-01-23 08:06:18 -05:00
|
|
|
# Desktop
|
2023-12-26 04:00:25 -05:00
|
|
|
pc = "ssh -t matt@100.64.0.6 'tmux -2u new -At phone'";
|
2024-01-23 08:06:18 -05:00
|
|
|
|
2024-03-02 02:59:40 -05:00
|
|
|
# NAS
|
|
|
|
nos = "ssh -t matt@100.64.0.4 'tmux -2u new -At phone'";
|
|
|
|
|
|
|
|
# Experimenting server
|
2023-12-26 04:00:25 -05:00
|
|
|
servivi = "ssh -t matt@100.64.0.7 'tmux -2u new -At phone'";
|
2024-01-23 08:06:18 -05:00
|
|
|
|
2024-08-18 23:01:08 -04:00
|
|
|
# Home-assistant
|
|
|
|
homie = "ssh -t matt@100.64.0.10 'tmux -2u new -At phone'";
|
|
|
|
|
2024-01-23 08:06:18 -05:00
|
|
|
# Cluster nodes
|
|
|
|
thingone = "ssh -t matt@100.64.0.8 'tmux -2u new -At phone'";
|
2024-01-23 09:14:11 -05:00
|
|
|
thingtwo = "ssh -t matt@100.64.0.9 'tmux -2u new -At phone'";
|
2023-12-20 04:07:56 -05:00
|
|
|
};
|
|
|
|
}
|
2023-12-13 21:38:30 -05:00
|
|
|
];
|
2023-12-08 14:59:44 -05:00
|
|
|
|
2023-12-13 21:38:30 -05:00
|
|
|
home.stateVersion = "23.05";
|
2023-12-08 14:59:44 -05:00
|
|
|
};
|
|
|
|
}
|