Compare commits
78 Commits
master
...
rackserver
Author | SHA1 | Date |
---|---|---|
fallingsky04 | 424644cd97 | |
Sky Hearn | 93d2c9ce47 | |
fallingsky04 | 199d06538a | |
Sky Hearn | 7478740a0a | |
fallingsky04 | a61aa349d0 | |
fallingsky04 | 9935f7c4e0 | |
Sky Hearn | 44bc033828 | |
Sky Hearn | 778e2e6860 | |
Sky Hearn | 792eec4aa5 | |
fallingsky04 | 687fd697d1 | |
fallingsky04 | 41801992c2 | |
fallingsky04 | 6cae2056fe | |
Sky Hearn | d0c50ed1af | |
Sky Hearn | e372d23c89 | |
Sky Hearn | 514452531d | |
fallingsky04 | a0a9e032be | |
fallingsky04 | 20a5023d70 | |
fallingsky04 | 51da53ac97 | |
Sky Hearn | 6422d6c1bf | |
Sky Hearn | 4e0fa90cf7 | |
Sky Hearn | 05c0dd7168 | |
Sky Hearn | ad922e65fd | |
Sky Hearn | 22f5724b8e | |
Sky Hearn | 99de6e7528 | |
Sky Hearn | d993a8535e | |
Sky Hearn | c289954dc3 | |
Sky Hearn | fc7195db6f | |
fallingsky04 | 337b2bff00 | |
Sky Hearn | 0f14004a7b | |
Sky Hearn | 7fd3937726 | |
Sky Hearn | 67e8c86a87 | |
Sky Hearn | d695930229 | |
fallingsky04 | 3fade7c667 | |
Sky Hearn | ed27586631 | |
Sky Hearn | 035560abdd | |
Sky Hearn | 6618318370 | |
Sky Hearn | 3a8a31cb99 | |
Sky Hearn | 42768ab36e | |
Sky Hearn | fef06f7eae | |
Sky Hearn | 91a382415f | |
Sky Hearn | 9ea5275661 | |
Sky Hearn | dec37af817 | |
Sky Hearn | 0cc72e047b | |
Sky Hearn | 0516ff439d | |
Sky Hearn | 654f1bbf8a | |
Sky Hearn | d90654d02e | |
Sky Hearn | d02f1e8b9d | |
Sky Hearn | a6ccd25396 | |
Sky Hearn | 5001614445 | |
Sky Hearn | cd9946699d | |
Sky Hearn | e6aa7bb147 | |
Sky Hearn | 0d9b01da13 | |
Sky Hearn | fffeb726dc | |
Sky Hearn | ea20aa5bba | |
Sky Hearn | 7f095e0c5d | |
Sky Hearn | 8f6b8576b6 | |
Sky Hearn | 91e2296818 | |
Sky Hearn | 4fc5c31654 | |
Sky Hearn | ffa53ad2e8 | |
Sky Hearn | a2735e25cc | |
Sky Hearn | 96d5267072 | |
Sky Hearn | 17cf571296 | |
Sky Hearn | b653dbc0ca | |
Sky Hearn | eabf444e34 | |
Sky Hearn | abaeb7c598 | |
Sky Hearn | 18fb6eaee6 | |
Sky Hearn | f521ffecf7 | |
Sky Hearn | 95ae003413 | |
Sky Hearn | 329d7b1ab3 | |
Sky Hearn | 369df10eba | |
Sky Hearn | e1c592cef3 | |
Sky Hearn | 7b2d100cd3 | |
Sky Hearn | 9ee4009437 | |
Sky Hearn | 3e764e0b66 | |
Sky Hearn | 506b261a4c | |
Sky Hearn | a8c282a5fc | |
Sky Hearn | eb141ac2d5 | |
Sky Hearn | 15b8e99f33 |
|
@ -1,3 +0,0 @@
|
|||
[submodule "slstatus"]
|
||||
path = slstatus
|
||||
url = git://git.suckless.org/slstatus
|
|
@ -0,0 +1,11 @@
|
|||
# This example uses YAML anchors which allows reuse of multiple keys
|
||||
# without having to repeat yourself.
|
||||
# Also see https://github.com/Mic92/dotfiles/blob/master/nixos/.sops.yaml
|
||||
# for a more complex example.
|
||||
keys:
|
||||
- &sky age1j8gk5rrczcdql0mkwevjsgdaqqqzavgv006sx0xnc7mzmlp3x4wqvtwdsa
|
||||
creation_rules:
|
||||
- path_regex: secrets/[^/]+\.(yaml|json|env|ini)$
|
||||
key_groups:
|
||||
age:
|
||||
- *sky
|
|
@ -0,0 +1,3 @@
|
|||
This document exists to inform users that Sky Hearn has not been served with a secret government subpoena in any of their hardware, their software, or their services.
|
||||
|
||||
2024-03-03
|
Binary file not shown.
|
@ -1,167 +1,208 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
#your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
sops.age.keyFile = "/secrets/age/keys.txt";
|
||||
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
<home-manager/nixos>
|
||||
./users/users.nix
|
||||
./services/gitea.nix
|
||||
./services/duckddns.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# amdgpu stuffs
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
|
||||
# opengl support
|
||||
hardware.opengl.enable = true;
|
||||
# opengl packages
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocm-opencl-icd
|
||||
rocm-opencl-runtime
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
# set hostname
|
||||
networking.hostName = "rackserver";
|
||||
|
||||
# fix nixpkgs warning
|
||||
nix.nixPath = [
|
||||
"nixpkgs=${pkgs.path}"
|
||||
];
|
||||
hardware.opengl.driSupport = true;
|
||||
|
||||
networking.hostName = "sky-laptop"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
#keyMap = "us";
|
||||
useXkbConfig = true; # use xkb.options in tty.
|
||||
# ACME
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "sky.hearn@pm.me";
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb.layout = "us";
|
||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
# services.printing.enable = true;
|
||||
|
||||
# Enable sound.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
services.xserver.libinput.enable = true;
|
||||
|
||||
# Enable dwm
|
||||
services.xserver.windowManager.dwm.enable = true;
|
||||
|
||||
|
||||
|
||||
# Sky User
|
||||
users.users.sky.isNormalUser = true;
|
||||
users.users.sky.extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
|
||||
# Home Manager for Sky
|
||||
home-manager.users.sky = {pkgs, ...}: {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
firefox-bin
|
||||
neofetch
|
||||
ncpamixer
|
||||
tree
|
||||
neovim
|
||||
xclip
|
||||
grpc
|
||||
clipcat
|
||||
keepassxc
|
||||
jellyfin-media-player
|
||||
];
|
||||
|
||||
services.picom = {
|
||||
enable = true;
|
||||
vSync = true;
|
||||
backend = "glx";
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Sky Hearn";
|
||||
userEmail = "sky.hearn@pm.me";
|
||||
signing = {
|
||||
key = "DAB485883AE426EC";
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
pulseaudio
|
||||
bash
|
||||
vim
|
||||
wget
|
||||
acpi
|
||||
st
|
||||
dmenu
|
||||
(pkgs.slstatus.overrideAttrs (_: {
|
||||
src = ./slstatus;
|
||||
})
|
||||
)
|
||||
libva-utils
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
programs.mtr.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
# wireguard server setup
|
||||
# enable NAT
|
||||
networking.nat.enable = true;
|
||||
networking.nat.externalInterface = "eno4";
|
||||
networking.nat.internalInterfaces = [ "wg0" ];
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [ 51820 ];
|
||||
};
|
||||
|
||||
# clipcat systemd service
|
||||
systemd.services.clipcat = {
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
description = "Clipcat Daemon";
|
||||
networking.wireguard.interfaces = {
|
||||
# "wg0" is the network interface name. You can name the interface arbitrarily.
|
||||
wg0 = {
|
||||
# Determines the IP address and subnet of the server's end of the tunnel interface.
|
||||
ips = [ "10.100.0.1/22" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = ''/usr/bin/clipcatd --no-daemon --replace''; # TODO: find where to actually run clipcatd
|
||||
Restart = "on-failure";
|
||||
Type = "simple";
|
||||
# The port that WireGuard listens to. Must be accessible by the client.
|
||||
listenPort = 51820;
|
||||
|
||||
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN
|
||||
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
||||
postSetup = ''
|
||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno4 -j MASQUERADE
|
||||
'';
|
||||
|
||||
# This undoes the above command
|
||||
postShutdown = ''
|
||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno4 -j MASQUERADE
|
||||
'';
|
||||
|
||||
# Path to the private key file.
|
||||
#
|
||||
# Note: The private key can also be included inline via the privateKey option,
|
||||
# but this makes the private key world-readable; thus, using privateKeyFile is
|
||||
# recommended.
|
||||
privateKeyFile = "/run/keys/wg-privatekey"; # TODO: Change this to be a sops secret
|
||||
|
||||
peers = [
|
||||
# List of allowed peers.
|
||||
{ #nub
|
||||
# Public key of the peer (not a file path).
|
||||
publicKey = "j2WrE1lX5Pf12Yk61zzCUJCnzVQyR+s+nWw72a4gsik=";
|
||||
# List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.
|
||||
allowedIPs = [ "10.100.1.0/24" ];
|
||||
}
|
||||
{ # ku
|
||||
publicKey = "MCPLxi1clVx92gfeq04mm1flgjzS2XqtC3OKN6C0iE8=";
|
||||
allowedIPs = [ "10.100.2.0/24" ];
|
||||
}
|
||||
{ # Jas
|
||||
publicKey = "Q90Tvst8ZntJPl1WxLOcV108k9SwPIpjXAtxHPE62UM=";
|
||||
allowedIPs = ["10.100.0.6/32"];
|
||||
}
|
||||
{ # skyLaptop
|
||||
publicKey = "2sg0sgMMGQrCGt0f/5+1kO/B0Ghfb137DTf9nYctZTM=";
|
||||
allowedIPs = [ "10.100.0.4/32" ];
|
||||
}
|
||||
{ # skyDesktop
|
||||
publicKey = "36tqEexZ8e6ks+qjDpnMzUY9LAJvFvVDe6MLzR9vtEo=";
|
||||
allowedIPs = [ "10.100.0.5/32" ];
|
||||
}
|
||||
{ # melon :>
|
||||
publicKey = "nJgeRkHd6mRqT/lMUJIApCov4GgSekrkJJxZGTXOVCE=";
|
||||
allowedIPs = [ "10.100.0.7/32" ];
|
||||
}
|
||||
{
|
||||
publicKey = "gs17DdrtnYe2cA+Jxt6p/qovfCAT7eVn58Pq5eTHmGc=";
|
||||
allowedIPs = [ "10.100.0.8/32" ];
|
||||
}
|
||||
{ # Kitibri
|
||||
publicKey = "cT95nYaPYkra1Im355EwUXxw9Wef7b1j0YBx6+rnp1s=";
|
||||
allowedIPs = [ "10.100.0.9/32" ];
|
||||
}
|
||||
{ # ken
|
||||
publicKey = "6FHWDuKLW3QNVNTURIm6bJ1s0+FtzgEO9TtKuS0khhM=";
|
||||
allowedIPs = [ "10.100.0.10/32" ];
|
||||
}
|
||||
{ # Jamie
|
||||
publicKey = "mF6eLG4VgwVV56PGn+Omg0mvN2UGB8b0i7rq8rJI+l0=";
|
||||
allowedIPs = [ "10.100.0.11/32" ];
|
||||
}
|
||||
{ # saff
|
||||
publicKey = "3rxyEvAU3I/wdTRJR4qKAHmbmw5abnx1o49jei14FTI=";
|
||||
allowedIPs = [ "10.100.0.12/32" ];
|
||||
}
|
||||
{ # Tech
|
||||
publicKey = "uD+yrVfZidjwiJjk6y5bHL7xlIozgsSKKGM3idu92BI=";
|
||||
allowedIPs = [ "10.100.0.13/32" ];
|
||||
}
|
||||
{ # meow
|
||||
publicKey = "Jn3py2rxRuoluUl4eKxK+m+f21wMzQ4xI+NOMt7Oihc=";
|
||||
allowedIPs = [ "10.100.0.14/32" ];
|
||||
}
|
||||
{ # fetti
|
||||
publicKey = "g92YcBJQK/MOWMbpF8wZV/G8EgKdcIdltfdE/26GgSA=";
|
||||
allowedIPs = [ "10.100.0.15/32" ];
|
||||
}
|
||||
{ # baron
|
||||
publicKey = "4YQRCZwgdzpPk3Gia+3cl2GByHxjI1Vbup0orlgp8BI=";
|
||||
allowedIPs = [ "10.100.0.16/32" ];
|
||||
}
|
||||
{ # blise
|
||||
publicKey = "wOOOAtQ5YX4surQGU1aU+JzSV1fI/qFqMLm731z8nTc=";
|
||||
allowedIPs = [ "10.100.0.17/32" ];
|
||||
}
|
||||
{ # baba
|
||||
publicKey = "il12KBAwODC1TTZgT4JIL0f6AZcYWxylmuVlTlWd80s=";
|
||||
allowedIPs = [ "10.100.0.18/32" ];
|
||||
}
|
||||
{ # Mari
|
||||
publicKey = "NfEjPn+ZYgB1vfNZ353AQOKPZLKUt4gPoNUSrywXjl0=";
|
||||
allowedIPs = [ "10.100.0.20/32" ];
|
||||
}
|
||||
{ # WiTu
|
||||
publicKey = "k+PkzHREDszWnzvY79JcBL2XCkwtQ/XSunxNft7pjwY=";
|
||||
allowedIPs = ["10.100.0.19/32"];
|
||||
}
|
||||
{ # Shiro
|
||||
publicKey = "I4US1u5iR5g8qzVvtVMvK65dgNsnnXbkAac3GBS1PWQ=";
|
||||
allowedIPs = ["10.100.0.21/32"];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# arion setup
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.podman.dockerSocket.enable = true;
|
||||
virtualisation.podman.defaultNetwork.settings.dns_enabled = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.git
|
||||
pkgs.bash
|
||||
pkgs.wget
|
||||
pkgs.curl
|
||||
pkgs.vim
|
||||
|
||||
pkgs.arion
|
||||
# Do install the docker CLI to talk to podman.
|
||||
# Not needed when virtualisation.docker.enable = true;
|
||||
pkgs.docker-client
|
||||
];
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 22 25565 25566 25567];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
# accidentally delete configuration.nix.
|
||||
# system.copySystemConfiguration = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Forbid root login through SSH.
|
||||
PermitRootLogin = "no";
|
||||
# key authentication
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
|
@ -180,5 +221,4 @@
|
|||
#
|
||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,234 @@
|
|||
{
|
||||
"nodes": {
|
||||
"arion": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"haskell-flake": "haskell-flake",
|
||||
"hercules-ci-effects": "hercules-ci-effects",
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709606645,
|
||||
"narHash": "sha256-yObjAl8deNvx1uIfQn7/vkB9Rnr0kqTo1HVrsk46l30=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "arion",
|
||||
"rev": "d2d48c9ec304ac80c84ede138b8c6f298d07d995",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "arion",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": [
|
||||
"arion",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709336216,
|
||||
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-parts_2": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": [
|
||||
"arion",
|
||||
"hercules-ci-effects",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1701473968,
|
||||
"narHash": "sha256-YcVE5emp1qQ8ieHUnxt1wCZCC3ZfAS+SRRWZ2TMda7E=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "34fed993f1674c8d06d58b37ce1e0fe5eebcb9f5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "flake-parts",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"haskell-flake": {
|
||||
"locked": {
|
||||
"lastModified": 1675296942,
|
||||
"narHash": "sha256-u1X1sblozi5qYEcLp1hxcyo8FfDHnRUVX3dJ/tW19jY=",
|
||||
"owner": "srid",
|
||||
"repo": "haskell-flake",
|
||||
"rev": "c2cafce9d57bfca41794dc3b99c593155006c71e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "srid",
|
||||
"ref": "0.1.0",
|
||||
"repo": "haskell-flake",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hercules-ci-effects": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts_2",
|
||||
"nixpkgs": [
|
||||
"arion",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708547820,
|
||||
"narHash": "sha256-xU/KC1PWqq5zL9dQ9wYhcdgxAwdeF/dJCLPH3PNZEBg=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "hercules-ci-effects",
|
||||
"rev": "0ca27bd58e4d5be3135a4bef66b582e57abe8f4a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "hercules-ci-effects",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709578243,
|
||||
"narHash": "sha256-hF96D+c2PBmAFhymMw3z8hou++lqKtZ7IzpFbYeL1/Y=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "23ff9821bcaec12981e32049e8687f25f11e5ef3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1709479366,
|
||||
"narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b8697e57f10292a6165a20f03d2f42920dfaf973",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-23-11": {
|
||||
"locked": {
|
||||
"lastModified": 1709569716,
|
||||
"narHash": "sha256-iOR44RU4jQ+YPGrn+uQeYAp7Xo7Z/+gT+wXJoGxxLTY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "617579a787259b9a6419492eaac670a5f7663917",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1709428628,
|
||||
"narHash": "sha256-//ZCCnpVai/ShtO2vPjh3AWgo8riXCaret6V9s7Hew4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "66d65cb00b82ffa04ee03347595aa20e41fe3555",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "release-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1709479366,
|
||||
"narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b8697e57f10292a6165a20f03d2f42920dfaf973",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1709356872,
|
||||
"narHash": "sha256-mvxCirJbtkP0cZ6ABdwcgTk0u3bgLoIoEFIoYBvD6+4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "458b097d81f90275b3fdf03796f0563844926708",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"arion": "arion",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-23-11": "nixpkgs-23-11",
|
||||
"sops-nix": "sops-nix"
|
||||
}
|
||||
},
|
||||
"sops-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709591996,
|
||||
"narHash": "sha256-0sQcalXSgqlO6mnxBTXkSQChBHy2GQsokB1XY8r+LpQ=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "291aad29b59ceda517a06e59809f35cb0bb17c6b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
nixpkgs-23-11.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, nixpkgs-23-11, home-manager, sops-nix, arion, ... }: {
|
||||
nixosConfigurations = {
|
||||
rackserver = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
sops-nix.nixosModules.sops
|
||||
|
||||
# https://github.com/hercules-ci/arion/issues/230
|
||||
({pkgs, ...}:
|
||||
{
|
||||
nixpkgs.overlays = [ (final: prev: { arion = nixpkgs-23-11.legacyPackages.x86_64-linux.arion; }) ];
|
||||
})
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.ku = import ./users/ku.nix;
|
||||
home-manager.users.nub = import ./users/nub.nix;
|
||||
home-manager.users.jas = import ./users/jas.nix;
|
||||
home-manager.users.sky = import ./users/sky.nix;
|
||||
home-manager.users.podman = import ./users/podman.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -8,19 +8,19 @@
|
|||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "megaraid_sas" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/4318-37A8";
|
||||
fsType = "vfat";
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/88bc4e4c-a29d-4e5a-9ed2-8f991c2148a2";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/0040c110-03d5-4157-89b4-09637d80eb44";
|
||||
fsType = "btrfs";
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/4791-0457";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
@ -30,8 +30,11 @@
|
|||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno2.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno3.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno4.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}:
|
||||
{
|
||||
systemd.timers."duckddns" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "5m";
|
||||
OnUnitActiveSec = "5m";
|
||||
Unit = "duckddns.service";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."duckddns"= {
|
||||
# hiding my token hehe
|
||||
script = ''
|
||||
bash /home/sky/duckddns.sh
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."git.skymath.duckdns.org" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3001/";
|
||||
};
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
ensureDatabases = [ config.services.gitea.user ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = config.services.gitea.database.user;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
appName = "Fallingsky04's Gitea Server <3"; # Give the site a name
|
||||
database = {
|
||||
type = "postgres";
|
||||
passwordFile = "/run/keys/gitea-dbpassword";
|
||||
};
|
||||
settings.server = {
|
||||
HTTP_PORT = 3001;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
1
slstatus
1
slstatus
|
@ -1 +0,0 @@
|
|||
Subproject commit b0f33c6d3d4b2cb2396c76084aa921ebf120a120
|
|
@ -0,0 +1,47 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
project.name = "minecraft";
|
||||
services = {
|
||||
mc = {
|
||||
service.image = "itzg/minecraft-server:java17-jdk";
|
||||
service.volumes = [ "/home/podman/data:/data" ];
|
||||
service.dns = [ "8.8.8.8" ];
|
||||
service.network_mode = "host";
|
||||
service.environment = {
|
||||
EULA = "true";
|
||||
TYPE = "FORGE";
|
||||
VERSION = "1.20.1";
|
||||
FORGE_VERSION = "47.2.20";
|
||||
MEMORY = "16G";
|
||||
};
|
||||
};
|
||||
ftb_infinity = {
|
||||
service.image = "itzg/minecraft-server:java8-multiarch";
|
||||
service.volumes = [ "/home/podman/ftb_infinity/data:/data" ];
|
||||
service.dns = [ "8.8.8.8" ];
|
||||
service.network_mode = "host";
|
||||
service.environment = {
|
||||
EULA = "true";
|
||||
TYPE = "FORGE";
|
||||
VERSION = "1.7.10";
|
||||
FORGE_VERSION = "10.13.4.1614";
|
||||
MEMORY = "16G";
|
||||
};
|
||||
};
|
||||
fabric = {
|
||||
service.image = "itzg/minecraft-server:java17-jdk";
|
||||
service.volumes = [ "/home/podman/fabric/data:/data" ];
|
||||
service.dns = [ "8.8.8.8" ];
|
||||
service.network_mode = "host";
|
||||
service.environment = {
|
||||
EULA = "true";
|
||||
TYPE = "FABRIC";
|
||||
VERSION = "1.20.1";
|
||||
MEMORY = "16G";
|
||||
OPS = "Fallingsky04";
|
||||
SERVER_PORT = "25567";
|
||||
SEED="-2098004362385192995";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
import <nixpkgs> { system = "x86_64-linux"; }
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.username = "jas";
|
||||
home.homeDirectory = pkgs.lib.mkForce "/home/jas"; # use force here since vm trys to set it to /var/empty
|
||||
|
||||
home.packages = [ ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }: {
|
||||
home.username = "ku";
|
||||
home.homeDirectory = pkgs.lib.mkForce "/home/ku"; # use force here since vm trys to set it to /var/empty
|
||||
|
||||
home.packages = [ ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.username = "nub";
|
||||
home.homeDirectory = pkgs.lib.mkForce "/home/nub"; # use force here since vm trys to set it to /var/empty
|
||||
|
||||
home.packages = [ ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, ... }: {
|
||||
home.username = "podman";
|
||||
home.homeDirectory = pkgs.lib.mkForce "/home/podman";
|
||||
|
||||
home.packages = [ ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
home.file = {
|
||||
"arion-pkgs.nix" = {
|
||||
source = ./arion-pkgs.nix;
|
||||
};
|
||||
"arion-compose.nix" = {
|
||||
source = ./arion-compose.nix;
|
||||
};
|
||||
};
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.username = "sky";
|
||||
home.homeDirectory = pkgs.lib.mkForce "/home/sky"; # use force here since vm trys to set it to /var/empty
|
||||
|
||||
home.packages = [ pkgs.neovim ];
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
nv = "nvim";
|
||||
};
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Sky Hearn";
|
||||
userEmail = "sky.hearn@pm.me";
|
||||
};
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, ...}:
|
||||
{
|
||||
|
||||
users.users.sky.isNormalUser = true;
|
||||
users.users.ku.isNormalUser = true;
|
||||
users.users.nub.isNormalUser = true;
|
||||
users.users.jas.isNormalUser = true;
|
||||
|
||||
users.extraUsers.podman.hashedPassword = "";
|
||||
users.users.podman.isNormalUser = true;
|
||||
users.users.gitea.isSystemUser = true;
|
||||
users.groups.keys.members = [ "gitea" ];
|
||||
|
||||
users.extraUsers.sky.hashedPassword = "";
|
||||
users.groups.wheel.members=["sky"];
|
||||
users.users.sky.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHTT5oIuXAkJvNzsHQ/RP2OOWb7R7zMjhU0ZmZCStlOX"
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDP1B+iui9JR8u1yBNJ6Eh+7HL+PKuKkpjtOIDhl9uvZ1XsDqKnUJcFNjh7Jx+H4vpxoNMfEQzQB7qdkWnfhjNGiRp/6RxYcj20f71D3nElm1ELYpgzfufRPYaviwK86/0nj/Bjky4NoB5oBh6aQUi4VjECGNq+V/NzBuJ/vDiOY6+SfvlmJxQZ+0/Na+eWNFq+sDV+bP3PJWdVDO6MQR4IhVWHGZJX5Bjvzu+nFfMkCxp82OESCtyxl6BlW5jFN++SJiAFMASU5FkQU8hfLZb7nDr9ftDNmqWtbBFfnQ4E0jYtaxTN9Gx9A/NTU3AIvfICQcpOVbYXkyNYwsCVEarujc+ZV6EiCosic8xD2ONp5P7YT8TNOcSAQzto+OKTcDc3Z7gkIopZifvlNQissMqL8QxwcRpNr8Jg590CrHvnqanB0AO+pE346cNlo6/qEzw4uCGdo+WZAXI1Evg0/6uvklC48wqAbTsLiXGPXQlXsY5T6D6bvUNAF51lreHWYdE="
|
||||
];
|
||||
|
||||
users.groups.podman = {};
|
||||
users.users.podman.group = "podman";
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
HmG6Xcyo4jfE+uhJkEjK+IGref4peV5easEbxx2l0W4=
|
Loading…
Reference in New Issue