2023-12-08 14:59:44 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
nur,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./vars.nix
|
|
|
|
./pkgs
|
2023-12-13 21:38:30 -05:00
|
|
|
./modules/global.nix
|
2023-12-08 14:59:44 -05:00
|
|
|
nur.nixosModules.nur
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
2024-01-23 09:06:09 -05:00
|
|
|
|
|
|
|
# FIXME: cache doesn't work
|
2023-12-27 11:39:38 -05:00
|
|
|
# Personal config cache
|
2024-01-23 09:06:09 -05:00
|
|
|
# "https://cache.nelim.org"
|
2023-12-08 14:59:44 -05:00
|
|
|
];
|
|
|
|
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="
|
2023-12-27 11:39:38 -05:00
|
|
|
# Personal config cache
|
2024-01-23 09:06:09 -05:00
|
|
|
# "cache.nelim.org:JmFqkUdH11EA9EZOFAGVHuRYp7EbsdJDHvTQzG2pPyY="
|
2023-12-08 14:59:44 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Global hm settings
|
2023-12-13 21:38:30 -05:00
|
|
|
home-manager.config = {
|
|
|
|
imports = [
|
|
|
|
# Make the vars be the same on Nix and HM
|
|
|
|
./vars.nix
|
|
|
|
{vars = config.vars;}
|
2023-12-08 14:59:44 -05:00
|
|
|
|
2023-12-13 21:38:30 -05:00
|
|
|
nur.hmModules.nur
|
2023-12-08 14:59:44 -05:00
|
|
|
|
2023-12-13 21:38:30 -05:00
|
|
|
./home
|
|
|
|
./pkgs
|
2023-12-20 04:07:56 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.bash.shellAliases = {
|
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
|
|
|
|
|
|
|
# Misc Nix servers
|
2023-12-26 04:00:25 -05:00
|
|
|
oksys = "ssh -t matt@100.64.0.1 'tmux -2u new -At phone'";
|
|
|
|
servivi = "ssh -t matt@100.64.0.7 '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'";
|
|
|
|
thingtwo = "ssh -t matt@100.64.0.9'tmux -2u new -At phone'";
|
|
|
|
|
|
|
|
# Proxmox
|
2023-12-26 04:00:25 -05:00
|
|
|
pve = "ssh -t matt@100.64.0.4 'tmux -2u new -At phone'";
|
2023-12-23 02:40:23 -05:00
|
|
|
|
2024-01-23 08:06:18 -05:00
|
|
|
# Proxmox LXC instances
|
2023-12-23 02:40:23 -05:00
|
|
|
pod = "mosh matt@100.64.0.4 -- ssh -t -p 6768 matt@10.0.0.122 'tmux -2u new -At phone'";
|
|
|
|
jelly = "mosh matt@100.64.0.4 -- ssh -t matt@10.0.0.123 'tmux -2u new -At phone'";
|
|
|
|
qbit = "mosh matt@100.64.0.4 -- ssh -t matt@10.0.0.128 '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
|
|
|
};
|
|
|
|
}
|