summaryrefslogtreecommitdiff
path: root/nix_archive/hosts/moyo
diff options
context:
space:
mode:
Diffstat (limited to 'nix_archive/hosts/moyo')
-rw-r--r--nix_archive/hosts/moyo/container.nix97
1 files changed, 97 insertions, 0 deletions
diff --git a/nix_archive/hosts/moyo/container.nix b/nix_archive/hosts/moyo/container.nix
new file mode 100644
index 0000000..23e7b02
--- /dev/null
+++ b/nix_archive/hosts/moyo/container.nix
@@ -0,0 +1,97 @@
+{ config, lib, pkgs, modulesPath, ... }: {
+ imports = [
+ "${modulesPath}/virtualisation/lxc-container.nix"
+ ];
+
+ boot.isContainer = true;
+
+ nix = {
+ settings = {
+ experimental-features = [ "nix-command" "flakes" ];
+ auto-optimise-store = true;
+ download-buffer-size = 134217728;
+ };
+ gc.automatic = false;
+ optimise.automatic = true;
+ };
+
+ nixpkgs.config.allowUnfree = true;
+ hardware.enableRedistributableFirmware = true;
+
+ users.users.andrew = {
+ isNormalUser = true;
+ uid = 1000;
+ extraGroups = [ "wheel" ];
+ };
+ nix.settings.trusted-users = [ "andrew" ];
+
+ nix.settings.system-features = [ "gccarch-znver1" ];
+ nixpkgs.hostPlatform = {
+ #gcc.arch = "znver1";
+ #gcc.tune = "znver1";
+ system = "x86_64-linux";
+ };
+
+ time.timeZone = "America/New_York";
+ i18n.defaultLocale = "en_US.UTF-8";
+
+ networking = {
+ hostName = "the-p";
+ useDHCP = false;
+ dhcpcd.enable = false;
+ useHostResolvConf = false;
+ wireless.enable = false;
+ firewall = {
+ enable = false;
+ allowedTCPPorts = [ 22 25565 ];
+ allowedUDPPorts = [ ];
+ };
+ };
+
+ systemd.network = {
+ enable = true;
+ networks."50-eth0" = {
+ matchConfig.Name = "eth0";
+ networkConfig = {
+ DHCP = "ipv4";
+ IPv6AcceptRA = true;
+ };
+ linkConfig.RequiredForOnline = "routable";
+ };
+ };
+
+ users.defaultUserShell = pkgs.bashInteractive;
+
+ programs.screen = {
+ enable = true;
+ screenrc = ''
+ termcapinfo xterm* ti@:te@
+ '';
+ };
+
+ environment.systemPackages = with pkgs; [
+ git # flakes
+ kitty.terminfo
+ htop
+ jq
+ ((vim-full.override {
+ features = "small";
+ guiSupport = "off";
+ luaSupport = false;
+ pythonSupport = false;
+ rubySupport = false;
+ cscopeSupport = false;
+ netbeansSupport = false;
+ ximSupport = false;
+ ftNixSupport = false;
+ sodiumSupport = false;
+ }).customize {
+ name = "vi";
+ vimrcConfig = { customRC = ""; };
+ })
+ #jdk23
+ graalvm-ce
+ ];
+
+ system.stateVersion = "25.05";
+}