feat(servivi): init config of newest server
All checks were successful
Discord / discord commits (push) Successful in 1m21s
All checks were successful
Discord / discord commits (push) Successful in 1m21s
This commit is contained in:
parent
894fdd92f1
commit
704151031b
5 changed files with 101 additions and 7 deletions
|
@ -5,6 +5,7 @@ on:
|
|||
push:
|
||||
paths:
|
||||
- 'devices/oksys/*'
|
||||
- 'devices/servivi/*'
|
||||
|
||||
jobs:
|
||||
discord_commits:
|
||||
|
|
49
devices/servivi/default.nix
Normal file
49
devices/servivi/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{config, ...}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
||||
../../modules/kmscon.nix
|
||||
../../modules/tailscale.nix
|
||||
];
|
||||
|
||||
vars = {
|
||||
user = "matt";
|
||||
hostName = "servivi";
|
||||
};
|
||||
|
||||
users.users.${config.vars.user} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"adm"
|
||||
];
|
||||
};
|
||||
home-manager.users.${config.vars.user} = {
|
||||
imports = [];
|
||||
|
||||
# No touchy
|
||||
home.stateVersion = "24.05";
|
||||
};
|
||||
|
||||
networking = {
|
||||
inherit (config.vars) hostName;
|
||||
resolvconf.enable = true;
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Montreal";
|
||||
|
||||
# No touchy
|
||||
system.stateVersion = "24.05";
|
||||
}
|
43
devices/servivi/hardware-configuration.nix
Normal file
43
devices/servivi/hardware-configuration.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
config,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
timeout = 2;
|
||||
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
kernelModules = ["kvm-amd"];
|
||||
initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/NIXROOT";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-label/NIXBOOT";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
||||
}
|
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -12,13 +12,14 @@
|
|||
home-manager.users.${config.vars.user}.programs.bash.shellAliases = {
|
||||
tup = "tailscale up --login-server https://headscale.nelim.org";
|
||||
|
||||
pc = "mosh matt@binto -- tmux -2u new -At laptop";
|
||||
oksys = "mosh matt@oksys -- tmux -2u new -At laptop";
|
||||
pve = "mosh matt@pve -- tmux -2u new -At laptop";
|
||||
pc = "mosh matt@binto -- tmux -2u new -At ${config.vars.hostName}";
|
||||
oksys = "mosh matt@oksys -- tmux -2u new -At ${config.vars.hostName}";
|
||||
servivi = "mosh matt@servivi -- tmux -2u new -At ${config.vars.hostName}";
|
||||
pve = "mosh matt@pve -- tmux -2u new -At ${config.vars.hostName}";
|
||||
|
||||
mc = "mosh mc@mc -- tmux -2u new -At laptop";
|
||||
pod = "mosh matt@pve -- ssh -t -p 6768 matt@10.0.0.122 'tmux -2u new -At laptop'";
|
||||
jelly = "mosh matt@pve -- ssh -t matt@10.0.0.123 'tmux -2u new -At laptop'";
|
||||
qbit = "mosh matt@pve -- ssh -t matt@10.0.0.128 'tmux -2u new -At laptop'";
|
||||
mc = "mosh mc@mc -- tmux -2u new -At ${config.vars.hostName}";
|
||||
pod = "mosh matt@pve -- ssh -t -p 6768 matt@10.0.0.122 'tmux -2u new -At ${config.vars.hostName}'";
|
||||
jelly = "mosh matt@pve -- ssh -t matt@10.0.0.123 'tmux -2u new -At ${config.vars.hostName}'";
|
||||
qbit = "mosh matt@pve -- ssh -t matt@10.0.0.128 'tmux -2u new -At ${config.vars.hostName}'";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue