New pike
host
This commit is contained in:
parent
ca6f5e6919
commit
73814bfa47
2 changed files with 203 additions and 0 deletions
|
@ -121,6 +121,33 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pike = {
|
||||||
|
vpn = {
|
||||||
|
ip = "10.100.0.8";
|
||||||
|
publicKey = "16ctjunXCXDPLSUhocstJ9z9l45/YuJFxlLkpoxChjI=";
|
||||||
|
};
|
||||||
|
extraModules = [
|
||||||
|
inputs.lix-module.nixosModules.default
|
||||||
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
];
|
||||||
|
extraHmModules = [
|
||||||
|
inputs.impermanence.homeManagerModules.impermanence
|
||||||
|
"${inputs.homeManagerGitWorkspace}/modules/services/git-workspace.nix"
|
||||||
|
inputs.vscode-server.nixosModules.home
|
||||||
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
|
];
|
||||||
|
secrets = {
|
||||||
|
"pike-wireguard-private-key" = { };
|
||||||
|
"chatgpt-token".owner = "ccr";
|
||||||
|
"cachix-personal-token".owner = "ccr";
|
||||||
|
"git-workspace-tokens".owner = "ccr";
|
||||||
|
"autistici-password".owner = "ccr";
|
||||||
|
"restic-hetzner-password" = { };
|
||||||
|
"forgejo-runners-token".owner = "nixuser";
|
||||||
|
"forgejo-nix-access-tokens".owner = "nixuser";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
tpol = {
|
tpol = {
|
||||||
extraModules = with inputs; [
|
extraModules = with inputs; [
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
|
176
hosts/pike/default.nix
Normal file
176
hosts/pike/default.nix
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
{
|
||||||
|
fleetModules,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = fleetModules [
|
||||||
|
"common"
|
||||||
|
"ssh"
|
||||||
|
"ccr"
|
||||||
|
"nix"
|
||||||
|
"networkmanager"
|
||||||
|
"bluetooth"
|
||||||
|
"dbus"
|
||||||
|
"docker"
|
||||||
|
"fonts"
|
||||||
|
"qmk-udev"
|
||||||
|
"mosh"
|
||||||
|
"udisks2"
|
||||||
|
"xdg"
|
||||||
|
"pipewire"
|
||||||
|
"nix-development"
|
||||||
|
"waydroid"
|
||||||
|
"virt-manager"
|
||||||
|
"ssh-initrd"
|
||||||
|
"printing"
|
||||||
|
"pam"
|
||||||
|
"wireguard-client"
|
||||||
|
"binfmt"
|
||||||
|
"greetd"
|
||||||
|
# "syncthing"
|
||||||
|
"hass-poweroff"
|
||||||
|
"forgejo-runners"
|
||||||
|
"teamviewer"
|
||||||
|
"sunshine"
|
||||||
|
"mount-sisko"
|
||||||
|
"adb"
|
||||||
|
"prometheus-exporters"
|
||||||
|
"promtail"
|
||||||
|
"zerotier"
|
||||||
|
];
|
||||||
|
|
||||||
|
ccr = {
|
||||||
|
enable = true;
|
||||||
|
autologin = false;
|
||||||
|
modules = [
|
||||||
|
"git"
|
||||||
|
"git-workspace"
|
||||||
|
"helix"
|
||||||
|
"shell"
|
||||||
|
"zellij"
|
||||||
|
# "element"
|
||||||
|
"zmkbatx"
|
||||||
|
"tremotesf"
|
||||||
|
"firefox"
|
||||||
|
"gpg"
|
||||||
|
"mpv"
|
||||||
|
"password-store"
|
||||||
|
"slack"
|
||||||
|
"hyprland"
|
||||||
|
"niri"
|
||||||
|
"udiskie"
|
||||||
|
"xdg"
|
||||||
|
# "spotify"
|
||||||
|
"lutris"
|
||||||
|
"wine"
|
||||||
|
"cura"
|
||||||
|
"chrome"
|
||||||
|
"email"
|
||||||
|
"digikam"
|
||||||
|
"dolphin"
|
||||||
|
"tor-browser"
|
||||||
|
"kicad"
|
||||||
|
"monero"
|
||||||
|
# "zulip"
|
||||||
|
"teams"
|
||||||
|
"obs-studio"
|
||||||
|
"calibre"
|
||||||
|
"reinstall-magisk-on-lineage"
|
||||||
|
"vscode-server"
|
||||||
|
"zk"
|
||||||
|
"catppuccin"
|
||||||
|
"freecad"
|
||||||
|
"zathura"
|
||||||
|
"imv"
|
||||||
|
"libreoffice"
|
||||||
|
"emacs"
|
||||||
|
"vial"
|
||||||
|
"chirp"
|
||||||
|
"sdrangel"
|
||||||
|
"discord"
|
||||||
|
# "ib-tws"
|
||||||
|
"zoom"
|
||||||
|
"pantalaimon"
|
||||||
|
];
|
||||||
|
extraGroups = [ "plugdev" ];
|
||||||
|
backupPaths = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.kernelParams = [ "ip=dhcp" ];
|
||||||
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
# "ahci"
|
||||||
|
"usbhid"
|
||||||
|
# "r8169"
|
||||||
|
"thunderbolt"
|
||||||
|
"vmd"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
boot.kernelModules = [
|
||||||
|
# "kvm-amd"
|
||||||
|
# "ddcci"
|
||||||
|
# "ddcci-backlight"
|
||||||
|
# "i2c-dev" # needed?
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "zpool/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
options = [ "zfsutil" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" = {
|
||||||
|
device = "zpool/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
options = [ "zfsutil" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var" = {
|
||||||
|
device = "zpool/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
options = [ "zfsutil" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" = {
|
||||||
|
device = "zpool/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
options = [ "zfsutil" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/4AA5-7242";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
||||||
|
networking.hostId = "30fc8ed7";
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
algorithm = "zstd";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue