unlikified
This commit is contained in:
parent
fc7b529ffd
commit
a41c072709
3 changed files with 101 additions and 108 deletions
|
|
@ -1,106 +1,108 @@
|
||||||
{ pkgs, config, hostName, lib, ... }: {
|
{ pkgs, config, hostName, lib, ... }:
|
||||||
home.username = "alisceon";
|
let
|
||||||
home.homeDirectory = "/home/alisceon";
|
globalShellAbbrs = {
|
||||||
home.stateVersion = "24.05";
|
tsla-fan = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0";
|
||||||
manual.manpages.enable = true;
|
|
||||||
|
# NixOS commands
|
||||||
|
nixoss = "sudo nixos-rebuild switch --flake .#${hostName}";
|
||||||
|
nixos-main = "git checkout main ; git pull ; sudo nixos-rebuild switch --flake .#${hostName}";
|
||||||
|
nixossr = "sudo nixos-rebuild boot --flake .#${hostName} ; reboot";
|
||||||
|
nixost = "sudo nixos-rebuild dry-build --flake .#${hostName}";
|
||||||
|
|
||||||
globalShellAbbrs = {
|
# Development commands
|
||||||
tsla-fan = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0";
|
devt = "devenv test";
|
||||||
# NixOS commands
|
|
||||||
nixoss = "sudo nixos-rebuild switch --flake .#${hostName}";
|
|
||||||
nixos-main = "git checkout main ; git pull ; sudo nixos-rebuild switch --flake .#${hostName}";
|
|
||||||
nixossr = "sudo nixos-rebuild boot --flake .#${hostName} ; reboot";
|
|
||||||
nixost = "sudo nixos-rebuild dry-build --flake .#${hostName}";
|
|
||||||
|
|
||||||
# Development commands
|
devtas = "devenv tasks list";
|
||||||
devt = "devenv test";
|
devtar = "devenv tasks run";
|
||||||
|
devs = "devenv shell";
|
||||||
|
devu = "devenv up -d";
|
||||||
|
devi = "nix flake init -t templates#";
|
||||||
|
|
||||||
devtas = "devenv tasks list";
|
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
|
||||||
devtar = "devenv tasks run";
|
|
||||||
devs = "devenv shell";
|
|
||||||
devu = "devenv up -d";
|
|
||||||
devi = "nix flake init -t templates#";
|
|
||||||
|
|
||||||
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
|
# Tower commands
|
||||||
|
weboot = "nix shell nixpkgs#efibootmgr -c sudo efibootmgr -n 0000 ; reboot";
|
||||||
# Tower commands
|
}; # end globalShellAbbrs
|
||||||
weboot = "nix shell nixpkgs#efibootmgr -c sudo efibootmgr -n 0000 ; reboot";
|
in
|
||||||
}; # end globalShellAbbrs
|
{
|
||||||
|
home.username = "alisceon";
|
||||||
programs = {
|
home.homeDirectory = "/home/alisceon";
|
||||||
fish = {
|
home.stateVersion = "24.05";
|
||||||
enable = false;
|
manual.manpages.enable = true;
|
||||||
# Disable greeting
|
programs = {
|
||||||
interactiveShellInit = ''
|
fish = {
|
||||||
set fish_greeting
|
enable = false;
|
||||||
'';
|
# Disable greeting
|
||||||
preferAbbrs = true;
|
interactiveShellInit = ''
|
||||||
shellAbbrs = globalShellAbbrs // {
|
set fish_greeting
|
||||||
ls = "exa";
|
'';
|
||||||
ll = "exa -lah";
|
preferAbbrs = true;
|
||||||
grep = "rg";
|
shellAbbrs = globalShellAbbrs // {
|
||||||
cat = "bat -p";
|
ls = "exa";
|
||||||
};
|
ll = "exa -lah";
|
||||||
}; # end fish
|
grep = "rg";
|
||||||
nushell = {
|
cat = "bat -p";
|
||||||
enable = true;
|
|
||||||
configFile.source = ../conf/config.nu;
|
|
||||||
shellAliases = globalShellAbbrs //{
|
|
||||||
};
|
|
||||||
};
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "alisceon";
|
|
||||||
userEmail = "alisceon@protonmail.com";
|
|
||||||
extraConfig = {
|
|
||||||
push = { autoSetupRemote = true; };
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
};
|
|
||||||
}; # end git
|
|
||||||
ssh = {
|
|
||||||
enable = true;
|
|
||||||
matchBlocks = {
|
|
||||||
"alisceon.com" = {
|
|
||||||
hostname = "alisceon.com";
|
|
||||||
user = "opc";
|
|
||||||
};
|
};
|
||||||
"miscbox" = {
|
}; # end fish
|
||||||
hostname = "10.1.0.11";
|
nushell = {
|
||||||
proxyJump = "alisceon.com";
|
enable = true;
|
||||||
user = "opc";
|
configFile.source = ../conf/config.nu;
|
||||||
};
|
shellAliases = globalShellAbbrs // {
|
||||||
"blogbox" = {
|
|
||||||
hostname = "10.1.0.10";
|
|
||||||
proxyJump = "alisceon.com";
|
|
||||||
user = "ubuntu";
|
|
||||||
};
|
|
||||||
"filurbox" = {
|
|
||||||
hostname = "oci.malice.zone";
|
|
||||||
user = "opc";
|
|
||||||
};
|
|
||||||
"dnspi" = {
|
|
||||||
hostname = "10.40.0.2";
|
|
||||||
user = "pi";
|
|
||||||
};
|
|
||||||
"tsla-exporter-bridge" = {
|
|
||||||
hostname = "alma02.lab.the.malice.zone";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
"tsla-runner-boi" = {
|
|
||||||
hostname = "alma03.lab.the.malice.zone";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
"tsla-nixos" = {
|
|
||||||
hostname = "tesla-nixos.lab.the.malice.zone";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}; # end ssh
|
git = {
|
||||||
direnv = {
|
enable = true;
|
||||||
enable = true;
|
userName = "alisceon";
|
||||||
silent = true;
|
userEmail = "alisceon@protonmail.com";
|
||||||
}; # end direnv
|
extraConfig = {
|
||||||
}; # end programs
|
push = { autoSetupRemote = true; };
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
};
|
||||||
|
}; # end git
|
||||||
|
ssh = {
|
||||||
|
enable = true;
|
||||||
|
matchBlocks = {
|
||||||
|
"alisceon.com" = {
|
||||||
|
hostname = "alisceon.com";
|
||||||
|
user = "opc";
|
||||||
|
};
|
||||||
|
"miscbox" = {
|
||||||
|
hostname = "10.1.0.11";
|
||||||
|
proxyJump = "alisceon.com";
|
||||||
|
user = "opc";
|
||||||
|
};
|
||||||
|
"blogbox" = {
|
||||||
|
hostname = "10.1.0.10";
|
||||||
|
proxyJump = "alisceon.com";
|
||||||
|
user = "ubuntu";
|
||||||
|
};
|
||||||
|
"filurbox" = {
|
||||||
|
hostname = "oci.malice.zone";
|
||||||
|
user = "opc";
|
||||||
|
};
|
||||||
|
"dnspi" = {
|
||||||
|
hostname = "10.40.0.2";
|
||||||
|
user = "pi";
|
||||||
|
};
|
||||||
|
"tsla-exporter-bridge" = {
|
||||||
|
hostname = "alma02.lab.the.malice.zone";
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
"tsla-runner-boi" = {
|
||||||
|
hostname = "alma03.lab.the.malice.zone";
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
"tsla-nixos" = {
|
||||||
|
hostname = "tesla-nixos.lab.the.malice.zone";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}; # end ssh
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
silent = true;
|
||||||
|
}; # end direnv
|
||||||
|
}; # end programs
|
||||||
|
|
||||||
# nixpkgs config
|
# nixpkgs config
|
||||||
xdg.configFile."nixpkgs/config.nix".source = ../conf/config.nix;
|
xdg.configFile."nixpkgs/config.nix".source = ../conf/config.nix;
|
||||||
} # end file
|
} # end file
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{ pkgs, config, hostName, lib, ... }: {
|
{ pkgs, config, hostName, lib, ... }: {
|
||||||
home.username = "alisceon";
|
|
||||||
home.homeDirectory = "/home/alisceon";
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
manual.manpages.enable = true;
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
}; # end programs
|
||||||
} # end file
|
} # end file
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
{ pkgs, config, hostName, lib, ... }: {
|
{ pkgs, config, hostName, lib, ... }: {
|
||||||
home.username = "alisceon";
|
|
||||||
home.homeDirectory = "/home/alisceon";
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
manual.manpages.enable = true;
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
firefox = {
|
firefox = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue