more systems
This commit is contained in:
parent
9159465836
commit
fbb274a50a
@ -55,6 +55,12 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs-builder = channels: {
|
||||||
|
devShells = {
|
||||||
|
default = import ./shells/default/default.nix { pkgs = channels.nixpkgs; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
homes.modules = with inputs; [
|
homes.modules = with inputs; [
|
||||||
sops-nix.homeManagerModules.sops
|
sops-nix.homeManagerModules.sops
|
||||||
];
|
];
|
||||||
|
65
homes/x86_64-linux/evanreichard@lin-va-terminal/default.nix
Executable file
65
homes/x86_64-linux/evanreichard@lin-va-terminal/default.nix
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
{ pkgs, lib, config, namespace, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.${namespace}) enabled;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.stateVersion = "25.05";
|
||||||
|
|
||||||
|
reichard = {
|
||||||
|
user = {
|
||||||
|
enable = true;
|
||||||
|
inherit (config.snowfallorg.user) name;
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
ssh-agent = enabled;
|
||||||
|
fusuma = enabled;
|
||||||
|
swww = enabled;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
graphical = {
|
||||||
|
wms.hyprland = enabled;
|
||||||
|
ghostty = enabled;
|
||||||
|
ghidra = enabled;
|
||||||
|
browsers.firefox = {
|
||||||
|
enable = true;
|
||||||
|
gpuAcceleration = true;
|
||||||
|
hardwareDecoding = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
terminal = {
|
||||||
|
btop = enabled;
|
||||||
|
direnv = enabled;
|
||||||
|
git = enabled;
|
||||||
|
k9s = enabled;
|
||||||
|
nvim = enabled;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
dconf = {
|
||||||
|
settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
cursor-theme = "catppuccin-macchiato-mauve-cursors";
|
||||||
|
cursor-size = 24;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
name = "catppuccin-macchiato-mauve-cursors";
|
||||||
|
package = pkgs.catppuccin-cursors.macchiatoMauve;
|
||||||
|
size = 24;
|
||||||
|
};
|
||||||
|
|
||||||
|
# SQLite Configuration
|
||||||
|
home.file.".sqliterc".text = ''
|
||||||
|
.headers on
|
||||||
|
.mode column
|
||||||
|
'';
|
||||||
|
}
|
@ -32,12 +32,17 @@ in
|
|||||||
server_url = "https://headscale.reichard.io";
|
server_url = "https://headscale.reichard.io";
|
||||||
dns = {
|
dns = {
|
||||||
base_domain = "reichard.dev";
|
base_domain = "reichard.dev";
|
||||||
nameservers.split = {
|
nameservers = {
|
||||||
|
global = [
|
||||||
|
"9.9.9.9"
|
||||||
|
];
|
||||||
|
split = {
|
||||||
"va.reichard.io" = [ "10.0.20.20" ];
|
"va.reichard.io" = [ "10.0.20.20" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall = mkIf cfg.openFirewall {
|
networking.firewall = mkIf cfg.openFirewall {
|
||||||
allowedTCPPorts = [ 8080 ];
|
allowedTCPPorts = [ 8080 ];
|
||||||
|
@ -16,6 +16,8 @@ let
|
|||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMWj6rd6uDtHj/gGozgIEgxho/vBKebgN5Kce/N6vQWV"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMWj6rd6uDtHj/gGozgIEgxho/vBKebgN5Kce/N6vQWV"
|
||||||
# evanreichard@lin-va-thinkpad
|
# evanreichard@lin-va-thinkpad
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAq5JQr/6WJMIHhR434nK95FrDmf2ApW2Ahd2+cBKwDz"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAq5JQr/6WJMIHhR434nK95FrDmf2ApW2Ahd2+cBKwDz"
|
||||||
|
# evanreichard@mobile
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIARTNbl4lgQsp7SJEng7vprL0+ChC9e6iR7o/PiC4Jme"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
29
shells/default/default.nix
Normal file
29
shells/default/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
sync-repo = pkgs.writeShellScriptBin "sync-repo" ''
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: sync-repo <ip-address>"
|
||||||
|
echo "Example: sync-repo 23.29.118.42"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync -av \
|
||||||
|
--exclude='.git' \
|
||||||
|
--exclude='.direnv' \
|
||||||
|
--exclude='_scratch' \
|
||||||
|
. evanreichard@$1:/etc/nixos
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
name = "reichard-dev";
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
rsync
|
||||||
|
sync-repo
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
echo "Use: sync-repo <ip-address> to sync repository"
|
||||||
|
'';
|
||||||
|
}
|
@ -25,9 +25,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
diskPath = "/dev/sda";
|
diskPath = "/dev/sda";
|
||||||
};
|
};
|
||||||
networking = {
|
networking = enabled;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
60
systems/x86_64-linux/lin-o1-x86-node/default.nix
Executable file
60
systems/x86_64-linux/lin-o1-x86-node/default.nix
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
{ namespace, config, pkgs, lib, modulesPath, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.${namespace}) enabled;
|
||||||
|
|
||||||
|
cfg = config.${namespace}.user;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
time.timeZone = "UTC";
|
||||||
|
|
||||||
|
boot.loader.grub = {
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
reichard = {
|
||||||
|
nix = enabled;
|
||||||
|
|
||||||
|
system = {
|
||||||
|
disk = {
|
||||||
|
enable = true;
|
||||||
|
diskPath = "/dev/sda";
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
openssh = enabled;
|
||||||
|
tailscale = {
|
||||||
|
enable = true;
|
||||||
|
enableRouting = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.${cfg.name} = {
|
||||||
|
openssh = {
|
||||||
|
authorizedKeys.keys = [
|
||||||
|
# evanreichard@lin-va-mbp-personal
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJJoyXQOv9cAjGUHrUcvsW7vY9W0PmuPMQSI9AMZvNY"
|
||||||
|
# evanreichard@mac-va-mbp-personal
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMWj6rd6uDtHj/gGozgIEgxho/vBKebgN5Kce/N6vQWV"
|
||||||
|
# evanreichard@lin-va-thinkpad
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAq5JQr/6WJMIHhR434nK95FrDmf2ApW2Ahd2+cBKwDz"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btop
|
||||||
|
tmux
|
||||||
|
vim
|
||||||
|
];
|
||||||
|
}
|
@ -27,15 +27,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
diskPath = "/dev/sda";
|
diskPath = "/dev/sda";
|
||||||
};
|
};
|
||||||
networking = {
|
networking = enabled;
|
||||||
enable = true;
|
|
||||||
useStatic = {
|
|
||||||
interface = "enp3s0";
|
|
||||||
address = "23.29.118.42";
|
|
||||||
defaultGateway = "23.29.118.1";
|
|
||||||
nameservers = [ "1.1.1.1" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
73
systems/x86_64-linux/lin-ssd-kube1/default.nix
Executable file
73
systems/x86_64-linux/lin-ssd-kube1/default.nix
Executable file
@ -0,0 +1,73 @@
|
|||||||
|
{ namespace, config, pkgs, lib, modulesPath, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.${namespace}) enabled;
|
||||||
|
|
||||||
|
cfg = config.${namespace}.user;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
time.timeZone = "UTC";
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 443 ];
|
||||||
|
|
||||||
|
boot.loader.grub = {
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
reichard = {
|
||||||
|
nix = enabled;
|
||||||
|
|
||||||
|
system = {
|
||||||
|
disk = {
|
||||||
|
enable = true;
|
||||||
|
diskPath = "/dev/sda";
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
enable = true;
|
||||||
|
useStatic = {
|
||||||
|
interface = "enp3s0";
|
||||||
|
address = "23.29.118.42";
|
||||||
|
defaultGateway = "23.29.118.1";
|
||||||
|
nameservers = [ "1.1.1.1" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
openssh = enabled;
|
||||||
|
tailscale = {
|
||||||
|
enable = true;
|
||||||
|
enableRouting = true;
|
||||||
|
};
|
||||||
|
rke2 = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = false;
|
||||||
|
disable = [ "rke2-ingress-nginx" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# users.users.${cfg.name} = {
|
||||||
|
# openssh = {
|
||||||
|
# authorizedKeys.keys = [
|
||||||
|
# # evanreichard@lin-va-mbp-personal
|
||||||
|
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJJoyXQOv9cAjGUHrUcvsW7vY9W0PmuPMQSI9AMZvNY"
|
||||||
|
# # evanreichard@mac-va-mbp-personal
|
||||||
|
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMWj6rd6uDtHj/gGozgIEgxho/vBKebgN5Kce/N6vQWV"
|
||||||
|
# # evanreichard@lin-va-thinkpad
|
||||||
|
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAq5JQr/6WJMIHhR434nK95FrDmf2ApW2Ahd2+cBKwDz"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btop
|
||||||
|
tmux
|
||||||
|
vim
|
||||||
|
];
|
||||||
|
}
|
57
systems/x86_64-linux/lin-va-terminal/default.nix
Executable file
57
systems/x86_64-linux/lin-va-terminal/default.nix
Executable file
@ -0,0 +1,57 @@
|
|||||||
|
{ namespace, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.${namespace}) enabled;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
|
reichard = {
|
||||||
|
nix = enabled;
|
||||||
|
|
||||||
|
system = {
|
||||||
|
boot = {
|
||||||
|
enable = true;
|
||||||
|
xenGuest = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
disk = {
|
||||||
|
enable = true;
|
||||||
|
diskPath = "/dev/xvda";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
enable = true;
|
||||||
|
useStatic = {
|
||||||
|
interface = "enX0";
|
||||||
|
address = "10.0.50.240";
|
||||||
|
defaultGateway = "10.0.50.254";
|
||||||
|
nameservers = [ "10.0.50.254" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
opengl = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
enableIntel = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
avahi = enabled;
|
||||||
|
ydotool = enabled;
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation = {
|
||||||
|
podman = enabled;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
graphical = {
|
||||||
|
wms.hyprland = enabled;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user