summaryrefslogtreecommitdiff
path: root/galaxious/configuration.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-05-06 19:37:56 +0200
committerandromeda <andromeda@lenovo>2026-05-06 19:37:56 +0200
commite5aaed7169e7a9b1ae537763ee94ea01aa401852 (patch)
treea386a051a9e18e31ae125ec9418410cbe5b64e4d /galaxious/configuration.nix
parent6a6630647c79e80d7995eac21bc188b5a516d142 (diff)
neo layout
Diffstat (limited to 'galaxious/configuration.nix')
-rw-r--r--galaxious/configuration.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/galaxious/configuration.nix b/galaxious/configuration.nix
new file mode 100644
index 0000000..9066c64
--- /dev/null
+++ b/galaxious/configuration.nix
@@ -0,0 +1,56 @@
+{ ... }: let
+ sources = import ../npins;
+ pkgs = import sources.nixpkgs {};
+ modulesPath = "${nixpkgs}/nixos/modules";
+in {
+ boot = {
+ initrd = {
+ availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
+ kernelModules = [ "nvme" ];
+ };
+ kernelPackages = pkgs.linuxPackages_latest;
+ loader = {
+ grub.device = "/dev/sda";
+ timeout = 30;
+ };
+ tmp.cleanOnBoot = true;
+ };
+ fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
+ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+ networking = {
+ domain = "contaboserver.net";
+ hostName = "vmi2998419";
+ useNetworkd = true;
+ usePredictableInterfaceNames = true;
+ };
+ nix = {
+ channel.enable = false;
+ settings = {
+ experimental-features = "flakes nix-command";
+ trusted-users = ["@wheel"];
+ };
+ };
+ nixpkgs = {
+ config.allowUnfree = false;
+ flake.source = sources.nixpkgs;
+ hostPlatform = "x86_64-linux";
+ };
+ services.openssh.enable = true;
+ systemd.network = {
+ enable = true;
+ networks."40-wan" = {
+ address = [ "2a02:c207:2299:8419::1/64" "109.199.104.83/20" ];
+ dns = [ "2020:fe::10" "9.9.9.10" ];
+ matchConfig.Name = "enx0050565f4fff";
+ routes = [ { Gateway = "109.199.96.1"; GatewayOnLink = true; } { Gateway = "fe80::1"; } ];
+ };
+ };
+ system.stateVersion = "25.11";
+ users = {
+ mutableUsers = false;
+ users.root = {
+ openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo" ];
+ };
+ };
+ zramSwap.enable = true;
+}