refactor: reorganize module layout
This commit is contained in:
1 parent
9a6bbc26c1
commit
0431bce152
63 files changed
+323
No files matched your search
@@ -0,0 +1,31 @@
|
||||
{ inputs, ... }: {
|
||||
den.aspects.fetch = {
|
||||
homeManager = { ... }: {
|
||||
imports = [ inputs.fetch.homeManagerModules.default ];
|
||||
|
||||
programs.fetch = {
|
||||
enable = true;
|
||||
|
||||
info = [
|
||||
"os"
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"display"
|
||||
"wm"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"swap"
|
||||
"disk"
|
||||
"ip"
|
||||
"battery"
|
||||
];
|
||||
|
||||
speed = 1.0;
|
||||
spin = "xy";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
den.aspects.software.shell.nixos = { pkgs, host, ... }: {
|
||||
programs.fish = {
|
||||
shellAliases = {
|
||||
box = "ssh box.${host.domain}";
|
||||
unbox = "sh -c 'ssh -N -L \"$1\":0.0.0.0:\"$1\" box.${host.domain} &' --";
|
||||
rebox = "sh -c 'fuser -k \"$1\"/tcp' --";
|
||||
dock = "sh -c 'ssh -N -D \"$1\" box.${host.domain} &' --";
|
||||
|
||||
vpn = "sshuttle --dns --python python3 -r box.${host.domain} 0/0";
|
||||
|
||||
pico = "ssh pico.sh";
|
||||
|
||||
ns = "nh os switch ~/nix --impure -H (hostname)";
|
||||
rebuild = "ns";
|
||||
};
|
||||
|
||||
shellInit = ''
|
||||
function tssh
|
||||
ssh (tailscale status | awk -v host=$argv[1] '$2 == host {print $1}')
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs.fishPlugins; [
|
||||
sponge
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user