From 544da1ba50d9cbf51a18ca0abf1db66b3baa7460 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Fri, 17 Oct 2025 12:22:00 -0400 Subject: Gentoo desktop --- nix_archive/hosts/moyo/container.nix | 97 +++ nix_archive/hosts/palm/configuration.nix | 249 ++++++++ nix_archive/hosts/palm/hardware-configuration.nix | 37 ++ nix_archive/hosts/palm/programs.nix | 17 + nix_archive/hosts/sofue/configuration.nix | 267 +++++++++ nix_archive/hosts/sofue/gccarch_mesa.nix | 10 + nix_archive/hosts/sofue/incus.yaml | 694 ++++++++++++++++++++++ nix_archive/hosts/sofue/programs.nix | 29 + 8 files changed, 1400 insertions(+) create mode 100644 nix_archive/hosts/moyo/container.nix create mode 100644 nix_archive/hosts/palm/configuration.nix create mode 100644 nix_archive/hosts/palm/hardware-configuration.nix create mode 100644 nix_archive/hosts/palm/programs.nix create mode 100644 nix_archive/hosts/sofue/configuration.nix create mode 100644 nix_archive/hosts/sofue/gccarch_mesa.nix create mode 100644 nix_archive/hosts/sofue/incus.yaml create mode 100644 nix_archive/hosts/sofue/programs.nix (limited to 'nix_archive/hosts') 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"; +} diff --git a/nix_archive/hosts/palm/configuration.nix b/nix_archive/hosts/palm/configuration.nix new file mode 100644 index 0000000..42cf14c --- /dev/null +++ b/nix_archive/hosts/palm/configuration.nix @@ -0,0 +1,249 @@ +{ config, lib, pkgs, ... }: +let + loc = config.local; + colo = loc.scheme; + inherit (import ../../nix/settings.nix) disks; +in { + imports = [ + ./hardware-configuration.nix + ../../nix/user.nix + ../../nix/system.nix + ../../nix/audio.nix + ../../nix/bluetooth.nix + ../../nix/email.nix + ../../nix/intel.nix + ../../nix/gaming.nix + ../../nix/virtualisation.nix + ../../nix/scripts.nix + ../../nix/programs/bash.nix + ../../nix/programs/nvim.nix + ../../nix/programs/sway.nix + ../../nix/programs/kitty.nix + ../../nix/programs/firefox.nix + ../../nix/programs/obs.nix + ../../nix/programs/waydroid.nix + ../../nix/programs/kdeconnect.nix + ./programs.nix + ]; + + local = rec { + font = { + name = "Lotion"; + size = 15; + baseline = -2; + cell-height-offset = 0; + }; + ui-font = { + name = "M+ 2p"; + size = 11; + baseline = 0; + cell-height-offset = 0; + }; + emoji-font = { + name = "Blobmoji"; + size = ui-font.size; + baseline = 0; + cell-height-offset = 0; + }; + scheme = import ../../themes/year_of_snake/snake.nix; + starter = { + top_padding = 0; + picture = ../../themes/year_of_snake/splash.png; + width = 64; + padding = { top = -3; left = -4; text = 5; }; + position = "left"; + header = ""; + footer = ""; + footer-offset = 0; + }; + monitors = { + monitor1 = "eDP-1"; + monitor2 = "DP-2"; + }; + }; + + nix.settings.system-features = [ "gccarch-skylake" ]; + nixpkgs.hostPlatform = { + #gcc.arch = "skylake"; + #gcc.tune = "skylake"; + system = "x86_64-linux"; + }; + boot.binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ]; + + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.loader.systemd-boot.enable = true; + boot.kernelParams = [ "mitigations=off" "file_caps=1" ]; + services.fwupd.enable = true; + + virtualisation.kvmgt = { + enable = true; + vgpus = { + "i915-GVTg_V5_4" = { + uuid = [ "2efaf13a-e65a-11ef-84b4-235363f4a8d4" ]; + }; + }; + }; + + security.wrappers = { + "mount.nfs" = { + owner = "root"; + group = "root"; + source = "${pkgs.nfs-utils.out}/bin/mount.nfs"; + setuid = true; + }; + }; + + services.thermald.enable = true; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + + CPU_MIN_PERF_ON_AC = 0; + CPU_MAX_PERF_ON_AC = 100; + CPU_MIN_PERF_ON_BAT = 0; + CPU_MAX_PERF_ON_BAT = 20; + + START_CHARGE_THRESH_BAT0 = 40; + STOP_CHARGE_THRESH_BAT0 = 85; + }; + }; + programs.light.enable = true; + + networking = { + hostName = "palm"; + nameservers = [ + "9.9.9.9" + "149.112.112.112" + "1.1.1.1" + "1.0.0.1" + ]; + useDHCP = false; + dhcpcd.enable = false; + networkmanager = { + enable = true; + dns = "none"; + wifi.powersave = true; + }; + firewall = { + enable = true; + allowedTCPPorts = []; + }; + extraHosts = '' + 192.168.1.192 iroha + 192.168.1.206 moyo + 192.168.1.207 denpa + 66.135.26.42 rod + 173.62.191.72 boomerang + ''; + }; + users.users.andrew.extraGroups = [ "networkmanager" ]; + + fileSystems."/mnt/nfs/c" = { + device = "moyo:/srv/nfs/c"; + fsType = "nfs4"; + options = disks.nfs_options; + }; + + fileSystems."/mnt/nfs/pics" = { + device = "moyo:/srv/nfs/pics"; + fsType = "nfs4"; + options = disks.nfs_options; + }; + + environment.systemPackages = with pkgs; [ + linuxPackages_latest.perf + linuxPackages_latest.cpupower + (pkgs.writeShellScriptBin "run-sway" '' + export WLR_RENDERER=vulkan + export WLR_DRM_DEVICES=/dev/dri/card1 + cd $HOME + exec ${pkgs.sway}/bin/sway + '') + ]; + + home-manager.users.andrew = let + homeDir = "${config.users.users.andrew.home}"; + in { + programs.kitty = { + extraConfig = '' + repaint_delay 9 + input_delay 3 + ''; + }; + wayland.windowManager.sway = let + monitor1 = loc.monitors.monitor1; + monitor2 = loc.monitors.monitor2; + in { + checkConfig = false; + config = { + output = { + "${monitor1}" = { + mode = "3000x2000@59.999Hz"; + position = "1024 540"; + render_bit_depth = "10"; + allow_tearing = "no"; + max_render_time = "10"; + scale = "2"; + bg = "${../../themes/year_of_snake/wallpaper.png} fit"; + }; + "${monitor2}" = { + mode = "1024x768@60.004Hz"; + position = "0 0"; + render_bit_depth = "10"; + allow_tearing = "yes"; + max_render_time = "10"; + scale = "1"; + bg = "#${colo.background-alt} solid_color"; + }; + }; + workspaceOutputAssign = [ + { workspace = "1"; output = "${monitor1}"; } + { workspace = "2"; output = "${monitor1}"; } + { workspace = "3"; output = "${monitor1}"; } + { workspace = "4"; output = "${monitor1}"; } + { workspace = "5"; output = "${monitor1}"; } + { workspace = "6"; output = "${monitor2}"; } + { workspace = "7"; output = "${monitor2}"; } + { workspace = "8"; output = "${monitor2}"; } + { workspace = "9"; output = "${monitor2}"; } + ]; + keybindings = let + mod1 = "Mod1"; + mod4 = "Mod4"; + in { + "${mod1}+1" = "workspace 1"; + "${mod1}+2" = "workspace 2"; + "${mod1}+3" = "workspace 3"; + "${mod1}+4" = "workspace 4"; + "${mod1}+5" = "workspace 5"; + "${mod4}+1" = "workspace 6"; + "${mod4}+2" = "workspace 7"; + "${mod4}+3" = "workspace 8"; + "${mod4}+4" = "workspace 9"; + "${mod1}+Shift+1" = "move container to workspace 1"; + "${mod1}+Shift+2" = "move container to workspace 2"; + "${mod1}+Shift+3" = "move container to workspace 3"; + "${mod1}+Shift+4" = "move container to workspace 4"; + "${mod1}+Shift+5" = "move container to workspace 5"; + "${mod4}+Shift+1" = "move container to workspace 6"; + "${mod4}+Shift+2" = "move container to workspace 7"; + "${mod4}+Shift+3" = "move container to workspace 8"; + "${mod4}+Shift+4" = "move container to workspace 9"; + "${mod4}+r" = "exec swaymsg -- output ${monitor1} transform 270"; + "${mod4}+Shift+r" = "exec swaymsg -- output ${monitor1} transform 0"; + "${mod4}+F1" = "exec swaymsg -- output ${monitor1} bg \\#${colo.background-alt} solid_color"; + "${mod4}+F2" = "exec swaymsg -- output ${monitor1} bg ${../../themes/year_of_snake/wallpaper.png} fill"; + }; + }; + }; + + home.stateVersion = "${config.system.stateVersion}"; + }; + + system.stateVersion = "24.11"; +} diff --git a/nix_archive/hosts/palm/hardware-configuration.nix b/nix_archive/hosts/palm/hardware-configuration.nix new file mode 100644 index 0000000..fe5e08d --- /dev/null +++ b/nix_archive/hosts/palm/hardware-configuration.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/yashinoki-vg0/root"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/05A6-59CE"; + fsType = "vfat"; + }; + + boot.initrd.luks.devices."home" = + { device = "/dev/yashinoki-vg0/home"; + preLVM = false; + }; + + fileSystems."/home/andrew" = + { device = "/dev/mapper/home"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/yashinoki-vg0/swap"; } + ]; + + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/nix_archive/hosts/palm/programs.nix b/nix_archive/hosts/palm/programs.nix new file mode 100644 index 0000000..d82e72a --- /dev/null +++ b/nix_archive/hosts/palm/programs.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, ... }: { + environment.systemPackages = with pkgs; lib.lists.flatten [ + (asNeeded "krita" ["krita"]) + yt-dlp + (asNeeded "[wineWowPackages.staging winetricks cabextract]" ["function_grep.pl" "msidb" "msiexec" "notepad" "regedit" "regsvr32" "widl" "wine" "wine-preloader" "wine64" "wine64-preloader" "wineboot" "winebuild" "winecfg" "wineconsole" "winecpp" "winedbg" "winedump" "winefile" "wineg++" "winegcc" "winemaker" "winemine" "winepath" "wineserver" "wmc" "wrc"]) + (discord.override { withOpenASAR = true; }) + (asNeeded "imv" ["imv"]) + (asNeeded "mpv" ["mpv"]) + #camu + #camu-devshell + #mauri + ]; + local.scripts.imports = [ + "battery" + "discord-wayland" + ]; +} diff --git a/nix_archive/hosts/sofue/configuration.nix b/nix_archive/hosts/sofue/configuration.nix new file mode 100644 index 0000000..f3f908e --- /dev/null +++ b/nix_archive/hosts/sofue/configuration.nix @@ -0,0 +1,267 @@ +{ config, lib, pkgs, modulesPath, ... }: +let + loc = config.local; + colo = loc.scheme; + inherit (import ../../nix/settings.nix) disks; +in rec { + imports = [ + "${modulesPath}/virtualisation/lxc-container.nix" + ../../nix/system.nix + ../../nix/x86.nix + ../../nix/user.nix + ../../nix/bluetooth.nix + ../../nix/email.nix + ../../nix/amdgpu.nix + #../../nix/intel.nix + ../../nix/gaming.nix + ../../nix/steam.nix + ../../nix/virtualisation.nix + ../../nix/scripts.nix + ../../nix/programs/bash.nix + ../../nix/programs/nvim.nix + ../../nix/programs/sway.nix + ../../nix/programs/kitty.nix + ../../nix/programs/firefox.nix + ../../nix/programs/obs.nix + ../../nix/programs/kdeconnect.nix + #../../nix/programs/docker.nix + ./programs.nix + ]; + + local = rec { + font = { + name = "Comic Code"; + size = 13; + baseline = -2; + cell-height-offset = 1; + }; + ui-font = { + name = "Livvic"; + size = 11; + baseline = 0; + cell-height-offset = 0; + }; + emoji-font = { + name = "Blobmoji"; + size = ui-font.size; + baseline = 0; + cell-height-offset = 0; + }; + scheme = import ../../themes/street_fighter_summer/street_fighter_summer.nix; + starter = { + top_padding = 2; + picture = ../../themes/street_fighter_summer/cammy_splash.png; + width = 60; + padding = { + top = -9; + left = -9; + text = 5; + }; + position = "left"; + header = ""; + footer = ""; + footer-offset = 0; + }; + monitors = { + #monitor1 = "DP-2"; + #monitor2 = "HDMI-A-3"; + #monitor3 = "DP-1"; + monitor1 = "DP-1"; + monitor2 = "DP-2"; + monitor3 = "HDMI-A-1"; + }; + }; + + boot.isContainer = true; + + users.groups.audio.gid = lib.mkForce 18; + users.groups.cdrom.gid = lib.mkForce 19; + users.groups.dialout.gid = lib.mkForce 20; + users.groups.floppy.gid = lib.mkForce 11; + users.groups.input.gid = lib.mkForce 97; + users.groups.lp.gid = lib.mkForce 7; + users.groups.render.gid = lib.mkForce 28; + users.groups.uucp.gid = lib.mkForce 14; + users.groups.video.gid = lib.mkForce 27; + + nix.settings.system-features = [ "gccarch-znver2" ]; + nixpkgs.hostPlatform = { + #gcc.arch = "znver2"; + #gcc.tune = "znver2"; + system = "x86_64-linux"; + }; + + boot.binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ]; + # Only needed in containers. + fileSystems."/proc/sys/fs/binfmt_misc" = { + device = "binfmt_misc"; + fsType = "binfmt_misc"; + }; + + networking = { + hostName = "sofue"; + wireless.enable = false; + dhcpcd.enable = false; + useDHCP = false; + useHostResolvConf = false; + firewall.enable = false; + extraHosts = '' + 192.168.1.192 iroha + 192.168.1.206 moyo + 192.168.1.207 denpa + 192.168.1.234 zasshi + 66.135.26.42 rod + 108.52.160.112 boomerang + ''; + }; + systemd.network = { + enable = true; + networks."50-eth0" = { + matchConfig.Name = "eth0"; + networkConfig = { + DHCP = "ipv4"; + IPv6AcceptRA = true; + }; + linkConfig.RequiredForOnline = "routable"; + }; + }; + + fileSystems."/media/cdrom" = { + device = "/dev/sr0"; + fsType = "udf,iso9660"; + options = disks.cdrom_options; + }; + + services.flatpak.enable = true; + + environment.systemPackages = with pkgs; [ + linuxPackages_latest.perf + linuxPackages_latest.cpupower + (writeShellScriptBin "run-sway" '' + export TTY=/dev/tty3 + export XDG_VTNR=3 + export WLR_RENDERER=vulkan + export PULSE_SERVER=unix:/home/andrew/.pulsewire-native-socket + export PIPEWIRE_REMOTE=/tmp/pipewire-0-manager + cd $HOME + exec ${kbd}/bin/openvt --switch --login --console 3 -f -- ${swayfx}/bin/sway + '') + pipewire # Using server from host. + pavucontrol + ]; + + systemd.services.copy-udev = { + description = "Copy host udev data to container"; + after = [ "multi-user.target" "rc-local.service" "systemd-user-sessions.service" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "/bin/sh -c '${pkgs.coreutils}/bin/cp /tmp/udev/data/* /run/udev/data/'"; + RemainAfterExit = true; + }; + }; + + home-manager.users.andrew = let + homeDir = "${config.users.users.andrew.home}"; + in { + programs.kitty = { + # My understanding is that if repaint_delay equates to a refresh rate + # of just under my monitor's that VRR can avoid all tearing. + extraConfig = '' + repaint_delay 7 + input_delay 1 + ''; + }; + wayland.windowManager.sway = let + monitor1 = loc.monitors.monitor1; + monitor2 = loc.monitors.monitor2; + monitor3 = loc.monitors.monitor3; + in { + checkConfig = false; + config = { + output = { + "${monitor1}" = { + mode = "2560x1440@144.000Hz"; + position = "3000 200"; + #position = "1080 200"; + allow_tearing = "yes"; + max_render_time = "off"; + adaptive_sync = "on"; + render_bit_depth = "10"; + bg = "${../../themes/street_fighter_summer/wallpaper1.png} fit"; + }; + "${monitor2}" = { + mode = "1920x1080@60.000Hz"; + transform = "270"; + position = "1920 0"; + #position = "0 0"; + allow_tearing = "no"; + max_render_time = "7"; + render_bit_depth = "10"; + bg = "${../../themes/street_fighter_summer/wallpaper_vert2.png} fit"; + }; + "${monitor3}" = { + mode = "1920x1080@60.000Hz"; + position = "0 1000"; + max_render_time = "7"; + render_bit_depth = "10"; + allow_tearing = "no"; + bg = "#${colo.background-alt} solid_color"; + }; + }; + workspaceOutputAssign = [ + { workspace = "1"; output = "${monitor1}"; } + { workspace = "2"; output = "${monitor1}"; } + { workspace = "3"; output = "${monitor1}"; } + { workspace = "4"; output = "${monitor1}"; } + { workspace = "5"; output = "${monitor2}"; } + { workspace = "6"; output = "${monitor2}"; } + { workspace = "7"; output = "${monitor2}"; } + { workspace = "8"; output = "${monitor2}"; } + { workspace = "9"; output = "${monitor3}"; } + ]; + keybindings = let + mod1 = "Mod1"; + mod4 = "Mod4"; + in { + "${mod1}+1" = "workspace 1"; + "${mod1}+2" = "workspace 2"; + "${mod1}+3" = "workspace 3"; + "${mod1}+4" = "workspace 4"; + "${mod4}+1" = "workspace 5"; + "${mod4}+2" = "workspace 6"; + "${mod4}+3" = "workspace 7"; + "${mod4}+4" = "workspace 8"; + "${mod4}+5" = "workspace 9"; + "${mod4}+z" = "fullscreen toggle"; + "${mod1}+Shift+1" = "move container to workspace 1"; + "${mod1}+Shift+2" = "move container to workspace 2"; + "${mod1}+Shift+3" = "move container to workspace 3"; + "${mod1}+Shift+4" = "move container to workspace 4"; + "${mod4}+Shift+1" = "move container to workspace 5"; + "${mod4}+Shift+2" = "move container to workspace 6"; + "${mod4}+Shift+3" = "move container to workspace 7"; + "${mod4}+Shift+4" = "move container to workspace 8"; + "${mod4}+Shift+5" = "move container to workspace 9"; + "${mod4}+r" = "exec swaymsg -- output ${monitor1} transform 90"; + "${mod4}+Shift+r" = "exec swaymsg -- output ${monitor1} transform 0"; + "${mod4}+F1" = "exec swaymsg -- output ${monitor1} bg \\#${colo.background-alt} solid_color"; + "${mod4}+F2" = "exec swaymsg -- output ${monitor1} bg ${../../themes/street_fighter_summer/wallpaper1.png} fit"; + "${mod4}+F3" = "exec swaymsg -- output ${monitor2} bg \\#${colo.background-alt} solid_color"; + "${mod4}+F4" = "exec swaymsg -- output ${monitor2} bg ${../../themes/street_fighter_summer/wallpaper_vert1.png} fit"; + "${mod4}+F5" = "exec swaymsg -- output ${monitor2} bg ${../../themes/street_fighter_summer/wallpaper_vert2.png} fit"; + #"${mod4}+F1" = "exec printf '||' > $HOME/.config/taro/${monitor1}/selection"; + #"${mod4}+F2" = "exec printf '||' > $HOME/.config/taro/${monitor1}/selection"; + "Pause" = "exec $HOME/c/camu/scripts/cmv_add.sh PAUSE"; + }; + startup = [ + #{ command = "${pkgs.mauri}/bin/tarod"; } + ]; + }; + }; + + home.stateVersion = "${config.system.stateVersion}"; + }; + + system.stateVersion = "25.05"; +} diff --git a/nix_archive/hosts/sofue/gccarch_mesa.nix b/nix_archive/hosts/sofue/gccarch_mesa.nix new file mode 100644 index 0000000..e06bdd5 --- /dev/null +++ b/nix_archive/hosts/sofue/gccarch_mesa.nix @@ -0,0 +1,10 @@ +let + pkgs = import { + localSystem = { + gcc.arch = "znver2"; + gcc.tune = "znver2"; + system = "x86_64-linux"; + }; + }; +in + pkgs.mesa diff --git a/nix_archive/hosts/sofue/incus.yaml b/nix_archive/hosts/sofue/incus.yaml new file mode 100644 index 0000000..407e604 --- /dev/null +++ b/nix_archive/hosts/sofue/incus.yaml @@ -0,0 +1,694 @@ +container: + architecture: x86_64 + config: + image.architecture: amd64 + image.description: Nixos unstable amd64 (20240402_02:18) + image.os: Nixos + image.release: unstable + image.requirements.secureboot: "false" + image.serial: "20240402_02:18" + image.type: squashfs + image.variant: default + limits.kernel.memlock: unlimited + limits.kernel.nice: "-11" + limits.kernel.nofile: "1048576" + limits.kernel.rtprio: "99" + raw.lxc: |- + lxc.mount.auto = proc:rw sys:rw cgroup:rw:force + lxc.cgroup2.devices.allow = c 7:* rwm + lxc.cgroup2.devices.allow = c 10:* rwm + lxc.cgroup2.devices.allow = c 13:* rwm + lxc.cgroup2.devices.allow = c 116:* rwm + lxc.cgroup2.devices.allow = c 189:* rwm + lxc.cgroup2.devices.allow = c 226:0 rwm + lxc.cgroup2.devices.allow = c 226:128 rwm + lxc.cgroup2.devices.allow = c 247:* rwm + security.nesting: "true" + security.privileged: "false" + security.syscalls.intercept.bpf: "true" + security.syscalls.intercept.bpf.devices: "true" + security.syscalls.intercept.mknod: "true" + security.syscalls.intercept.mount: "true" + security.syscalls.intercept.mount.allowed: ext4,fat32,ntfs,udf + security.syscalls.intercept.mount.shift: "true" + security.syscalls.intercept.sched_setscheduler: "true" + security.syscalls.intercept.setxattr: "true" + security.syscalls.intercept.sysinfo: "true" + volatile.base_image: b57963b527b192cbd262777b137333def448e7dc21fbf954e75a51f1b8acef5c + volatile.cloud-init.instance-id: 8d938ed8-c204-48e1-9670-f3aea059fd57 + volatile.eth0.host_name: veth812d6ba0 + volatile.eth0.hwaddr: 00:16:3e:c3:79:59 + volatile.idmap.base: "0" + volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":true,"Isgid":false,"Hostid":1000,"Nsid":1000,"Maprange":1},{"Isuid":true,"Isgid":false,"Hostid":1001001,"Nsid":1001,"Maprange":999998999},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":17},{"Isuid":false,"Isgid":true,"Hostid":18,"Nsid":17,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000018,"Nsid":18,"Maprange":82},{"Isuid":false,"Isgid":true,"Hostid":100,"Nsid":100,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000101,"Nsid":101,"Maprange":73},{"Isuid":false,"Isgid":true,"Hostid":97,"Nsid":174,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000175,"Nsid":175,"Maprange":999999825}]' + volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":true,"Isgid":false,"Hostid":1000,"Nsid":1000,"Maprange":1},{"Isuid":true,"Isgid":false,"Hostid":1001001,"Nsid":1001,"Maprange":999998999},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":17},{"Isuid":false,"Isgid":true,"Hostid":18,"Nsid":17,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000018,"Nsid":18,"Maprange":82},{"Isuid":false,"Isgid":true,"Hostid":100,"Nsid":100,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000101,"Nsid":101,"Maprange":73},{"Isuid":false,"Isgid":true,"Hostid":97,"Nsid":174,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000175,"Nsid":175,"Maprange":999999825}]' + volatile.last_state.idmap: '[]' + volatile.last_state.power: RUNNING + volatile.last_state.ready: "false" + volatile.uuid: 85cd7ef4-2e99-4d9b-ad55-a0b311d3a7d0 + volatile.uuid.generation: 85cd7ef4-2e99-4d9b-ad55-a0b311d3a7d0 + devices: + 8bitdom30: + gid: "97" + mode: "0666" + productid: "0024" + type: unix-hotplug + vendorid: 0ca3 + PipewireSocket1: + bind: container + connect: unix:/run/user/1000/pipewire-0 + gid: "100" + listen: unix:/tmp/pipewire-0 + mode: "0666" + security.gid: "100" + security.uid: "1000" + type: proxy + uid: "1000" + PipewireSocket2: + bind: container + connect: unix:/run/user/1000/pipewire-0-manager + gid: "100" + listen: unix:/tmp/pipewire-0-manager + mode: "0666" + security.gid: "100" + security.uid: "1000" + type: proxy + uid: "1000" + PulseSocket1: + bind: container + connect: unix:/run/user/1000/pulse/native + gid: "100" + listen: unix:/home/andrew/.pulsewire-native-socket + mode: "0666" + security.gid: "100" + security.uid: "1000" + type: proxy + uid: "1000" + binder: + gid: "100" + mode: "0666" + path: /dev/binder + source: /dev/binder + type: unix-char + bluraydrive: + mode: "0666" + path: /dev/sr0 + source: /dev/sr0 + type: unix-block + code: + path: /mnt/nfs/c + source: /mnt/nfs/c + type: disk + data: + path: /mnt/data + source: /mnt/data + type: disk + devshm: + path: /dev/shm2 + source: /dev/shm + type: disk + duckyone: + gid: "97" + mode: "0666" + productid: "0201" + type: unix-hotplug + vendorid: 04d9 + ext_ssd: + path: /mnt/ext_ssd + source: /mnt/ext_ssd + type: disk + googlepixel: + mode: "0666" + productid: 4ee7 + type: unix-hotplug + vendorid: 18d1 + hdd: + path: /mnt/hdd + source: /mnt/hdd + type: disk + hhkb: + gid: "97" + mode: "0666" + productid: "0021" + type: unix-hotplug + vendorid: 04fe + hidraw0: + gid: "97" + mode: "0666" + path: /dev/hidraw0 + required: "false" + source: /dev/hidraw0 + type: unix-char + hidraw1: + gid: "97" + mode: "0666" + path: /dev/hidraw1 + required: "false" + source: /dev/hidraw1 + type: unix-char + hidraw2: + gid: "97" + mode: "0666" + path: /dev/hidraw2 + required: "false" + source: /dev/hidraw2 + type: unix-char + hidraw3: + gid: "97" + mode: "0666" + path: /dev/hidraw3 + required: "false" + source: /dev/hidraw3 + type: unix-char + hidraw4: + gid: "97" + mode: "0666" + path: /dev/hidraw4 + required: "false" + source: /dev/hidraw4 + type: unix-char + hostportcamu: + connect: tcp:127.0.0.1:14356 + listen: tcp:0.0.0.0:14356 + type: proxy + hwbinder: + gid: "100" + mode: "0666" + path: /dev/hwbinder + source: /dev/hwbinder + type: unix-char + lazermouse: + gid: "97" + mode: "0666" + productid: "2510" + type: unix-hotplug + vendorid: 093a + logibolt: + gid: "97" + mode: "0666" + productid: c548 + type: unix-hotplug + vendorid: 046d + loop0: + mode: "0666" + path: /dev/loop0 + source: /dev/loop0 + type: unix-block + loop1: + mode: "0666" + path: /dev/loop1 + source: /dev/loop1 + type: unix-block + loopcontrol: + mode: "0666" + path: /dev/loop-control + source: /dev/loop-control + type: unix-char + mayflashgc: + gid: "97" + mode: "0666" + productid: "0337" + type: unix-hotplug + vendorid: 057e + ntsync: + mode: "0666" + path: /dev/ntsync + source: /dev/ntsync + type: unix-char + pcie4slotgpu: + mode: "0666" + pci: 0000:0f:00.0 + type: gpu + pics: + path: /mnt/nfs/pics + source: /mnt/nfs/pics + type: disk + samba: + path: /mnt/nfs/samba + source: /mnt/nfs/samba + type: disk + ssd: + path: /mnt/ssd + source: /mnt/ssd + type: disk + store: + path: /mnt/store + source: /mnt/store + type: disk + switchpro: + gid: "97" + mode: "0666" + productid: "2009" + type: unix-hotplug + vendorid: 057e + tty: + mode: "0666" + path: /dev/tty + source: /dev/tty + type: unix-char + tty0: + mode: "0666" + path: /dev/tty0 + source: /dev/tty0 + type: unix-char + tty3: + mode: "0666" + path: /dev/tty3 + source: /dev/tty3 + type: unix-char + tty4: + mode: "0666" + path: /dev/tty4 + source: /dev/tty4 + type: unix-char + udevdata: + path: /tmp/udev/data + readonly: "true" + source: /run/udev/data + type: disk + uinput: + gid: "97" + mode: "0666" + path: /dev/uinput + source: /dev/uinput + type: unix-char + video0: + mode: "0666" + path: /dev/video0 + source: /dev/video0 + type: unix-char + video1: + mode: "0666" + path: /dev/video1 + required: "false" + source: /dev/video1 + type: unix-char + vndbinder: + gid: "100" + mode: "0666" + path: /dev/vndbinder + source: /dev/vndbinder + type: unix-char + wacom: + gid: "97" + mode: "0666" + productid: 037a + type: unix-hotplug + vendorid: 056a + xbox360controller: + gid: "97" + mode: "0666" + productid: 028e + type: unix-hotplug + vendorid: 045e + xboxonecontroller: + gid: "97" + mode: "0666" + productid: "02e6" + type: unix-hotplug + vendorid: 045e + zowiemouse: + gid: "97" + mode: "0666" + productid: "8001" + type: unix-hotplug + vendorid: 04a5 + ephemeral: false + profiles: + - default + stateful: false + description: "" + created_at: 2024-04-03T13:10:43.339168029Z + expanded_config: + boot.autostart: "false" + image.architecture: amd64 + image.description: Nixos unstable amd64 (20240402_02:18) + image.os: Nixos + image.release: unstable + image.requirements.secureboot: "false" + image.serial: "20240402_02:18" + image.type: squashfs + image.variant: default + limits.kernel.memlock: unlimited + limits.kernel.nice: "-11" + limits.kernel.nofile: "1048576" + limits.kernel.rtprio: "99" + raw.idmap: |- + uid 1000 1000 + gid 100 100 + gid 18 17 + gid 97 174 + raw.lxc: |- + lxc.mount.auto = proc:rw sys:rw cgroup:rw:force + lxc.cgroup2.devices.allow = c 7:* rwm + lxc.cgroup2.devices.allow = c 10:* rwm + lxc.cgroup2.devices.allow = c 13:* rwm + lxc.cgroup2.devices.allow = c 116:* rwm + lxc.cgroup2.devices.allow = c 189:* rwm + lxc.cgroup2.devices.allow = c 226:0 rwm + lxc.cgroup2.devices.allow = c 226:128 rwm + lxc.cgroup2.devices.allow = c 247:* rwm + security.nesting: "true" + security.privileged: "false" + security.syscalls.intercept.bpf: "true" + security.syscalls.intercept.bpf.devices: "true" + security.syscalls.intercept.mknod: "true" + security.syscalls.intercept.mount: "true" + security.syscalls.intercept.mount.allowed: ext4,fat32,ntfs,udf + security.syscalls.intercept.mount.shift: "true" + security.syscalls.intercept.sched_setscheduler: "true" + security.syscalls.intercept.setxattr: "true" + security.syscalls.intercept.sysinfo: "true" + volatile.base_image: b57963b527b192cbd262777b137333def448e7dc21fbf954e75a51f1b8acef5c + volatile.cloud-init.instance-id: 8d938ed8-c204-48e1-9670-f3aea059fd57 + volatile.eth0.host_name: veth812d6ba0 + volatile.eth0.hwaddr: 00:16:3e:c3:79:59 + volatile.idmap.base: "0" + volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":true,"Isgid":false,"Hostid":1000,"Nsid":1000,"Maprange":1},{"Isuid":true,"Isgid":false,"Hostid":1001001,"Nsid":1001,"Maprange":999998999},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":17},{"Isuid":false,"Isgid":true,"Hostid":18,"Nsid":17,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000018,"Nsid":18,"Maprange":82},{"Isuid":false,"Isgid":true,"Hostid":100,"Nsid":100,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000101,"Nsid":101,"Maprange":73},{"Isuid":false,"Isgid":true,"Hostid":97,"Nsid":174,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000175,"Nsid":175,"Maprange":999999825}]' + volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":true,"Isgid":false,"Hostid":1000,"Nsid":1000,"Maprange":1},{"Isuid":true,"Isgid":false,"Hostid":1001001,"Nsid":1001,"Maprange":999998999},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":17},{"Isuid":false,"Isgid":true,"Hostid":18,"Nsid":17,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000018,"Nsid":18,"Maprange":82},{"Isuid":false,"Isgid":true,"Hostid":100,"Nsid":100,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000101,"Nsid":101,"Maprange":73},{"Isuid":false,"Isgid":true,"Hostid":97,"Nsid":174,"Maprange":1},{"Isuid":false,"Isgid":true,"Hostid":1000175,"Nsid":175,"Maprange":999999825}]' + volatile.last_state.idmap: '[]' + volatile.last_state.power: RUNNING + volatile.last_state.ready: "false" + volatile.uuid: 85cd7ef4-2e99-4d9b-ad55-a0b311d3a7d0 + volatile.uuid.generation: 85cd7ef4-2e99-4d9b-ad55-a0b311d3a7d0 + expanded_devices: + 8bitdom30: + gid: "97" + mode: "0666" + productid: "0024" + type: unix-hotplug + vendorid: 0ca3 + PipewireSocket1: + bind: container + connect: unix:/run/user/1000/pipewire-0 + gid: "100" + listen: unix:/tmp/pipewire-0 + mode: "0666" + security.gid: "100" + security.uid: "1000" + type: proxy + uid: "1000" + PipewireSocket2: + bind: container + connect: unix:/run/user/1000/pipewire-0-manager + gid: "100" + listen: unix:/tmp/pipewire-0-manager + mode: "0666" + security.gid: "100" + security.uid: "1000" + type: proxy + uid: "1000" + PulseSocket1: + bind: container + connect: unix:/run/user/1000/pulse/native + gid: "100" + listen: unix:/home/andrew/.pulsewire-native-socket + mode: "0666" + security.gid: "100" + security.uid: "1000" + type: proxy + uid: "1000" + binder: + gid: "100" + mode: "0666" + path: /dev/binder + source: /dev/binder + type: unix-char + bluraydrive: + mode: "0666" + path: /dev/sr0 + source: /dev/sr0 + type: unix-block + code: + path: /mnt/nfs/c + source: /mnt/nfs/c + type: disk + data: + path: /mnt/data + source: /mnt/data + type: disk + devshm: + path: /dev/shm2 + source: /dev/shm + type: disk + duckyone: + gid: "97" + mode: "0666" + productid: "0201" + type: unix-hotplug + vendorid: 04d9 + eth0: + name: eth0 + network: incusbr0 + type: nic + ext_ssd: + path: /mnt/ext_ssd + source: /mnt/ext_ssd + type: disk + googlepixel: + mode: "0666" + productid: 4ee7 + type: unix-hotplug + vendorid: 18d1 + hdd: + path: /mnt/hdd + source: /mnt/hdd + type: disk + hhkb: + gid: "97" + mode: "0666" + productid: "0021" + type: unix-hotplug + vendorid: 04fe + hidraw0: + gid: "97" + mode: "0666" + path: /dev/hidraw0 + required: "false" + source: /dev/hidraw0 + type: unix-char + hidraw1: + gid: "97" + mode: "0666" + path: /dev/hidraw1 + required: "false" + source: /dev/hidraw1 + type: unix-char + hidraw2: + gid: "97" + mode: "0666" + path: /dev/hidraw2 + required: "false" + source: /dev/hidraw2 + type: unix-char + hidraw3: + gid: "97" + mode: "0666" + path: /dev/hidraw3 + required: "false" + source: /dev/hidraw3 + type: unix-char + hidraw4: + gid: "97" + mode: "0666" + path: /dev/hidraw4 + required: "false" + source: /dev/hidraw4 + type: unix-char + hostportcamu: + connect: tcp:127.0.0.1:14356 + listen: tcp:0.0.0.0:14356 + type: proxy + hwbinder: + gid: "100" + mode: "0666" + path: /dev/hwbinder + source: /dev/hwbinder + type: unix-char + lazermouse: + gid: "97" + mode: "0666" + productid: "2510" + type: unix-hotplug + vendorid: 093a + logibolt: + gid: "97" + mode: "0666" + productid: c548 + type: unix-hotplug + vendorid: 046d + loop0: + mode: "0666" + path: /dev/loop0 + source: /dev/loop0 + type: unix-block + loop1: + mode: "0666" + path: /dev/loop1 + source: /dev/loop1 + type: unix-block + loopcontrol: + mode: "0666" + path: /dev/loop-control + source: /dev/loop-control + type: unix-char + mayflashgc: + gid: "97" + mode: "0666" + productid: "0337" + type: unix-hotplug + vendorid: 057e + ntsync: + mode: "0666" + path: /dev/ntsync + source: /dev/ntsync + type: unix-char + pcie4slotgpu: + mode: "0666" + pci: 0000:0f:00.0 + type: gpu + pics: + path: /mnt/nfs/pics + source: /mnt/nfs/pics + type: disk + root: + path: / + pool: default + type: disk + samba: + path: /mnt/nfs/samba + source: /mnt/nfs/samba + type: disk + ssd: + path: /mnt/ssd + source: /mnt/ssd + type: disk + store: + path: /mnt/store + source: /mnt/store + type: disk + switchpro: + gid: "97" + mode: "0666" + productid: "2009" + type: unix-hotplug + vendorid: 057e + tty: + mode: "0666" + path: /dev/tty + source: /dev/tty + type: unix-char + tty0: + mode: "0666" + path: /dev/tty0 + source: /dev/tty0 + type: unix-char + tty3: + mode: "0666" + path: /dev/tty3 + source: /dev/tty3 + type: unix-char + tty4: + mode: "0666" + path: /dev/tty4 + source: /dev/tty4 + type: unix-char + udevdata: + path: /tmp/udev/data + readonly: "true" + source: /run/udev/data + type: disk + uinput: + gid: "97" + mode: "0666" + path: /dev/uinput + source: /dev/uinput + type: unix-char + video0: + mode: "0666" + path: /dev/video0 + source: /dev/video0 + type: unix-char + video1: + mode: "0666" + path: /dev/video1 + required: "false" + source: /dev/video1 + type: unix-char + vndbinder: + gid: "100" + mode: "0666" + path: /dev/vndbinder + source: /dev/vndbinder + type: unix-char + wacom: + gid: "97" + mode: "0666" + productid: 037a + type: unix-hotplug + vendorid: 056a + xbox360controller: + gid: "97" + mode: "0666" + productid: 028e + type: unix-hotplug + vendorid: 045e + xboxonecontroller: + gid: "97" + mode: "0666" + productid: "02e6" + type: unix-hotplug + vendorid: 045e + zowiemouse: + gid: "97" + mode: "0666" + productid: "8001" + type: unix-hotplug + vendorid: 04a5 + name: sofue + status: Running + status_code: 103 + last_used_at: 2025-05-27T23:32:26.92570937Z + location: none + type: container + project: iroha +pool: + config: + source: /var/lib/incus/storage-pools/default + description: "" + name: default + driver: dir + used_by: [] + status: Created + locations: + - none +profiles: +- config: + boot.autostart: "false" + raw.idmap: |- + uid 1000 1000 + gid 100 100 + gid 18 17 + gid 97 174 + description: Incus profile for iroha + devices: + eth0: + name: eth0 + network: incusbr0 + type: nic + root: + path: / + pool: default + type: disk + name: default + used_by: [] + project: iroha +volume: + config: {} + description: "" + name: sofue + type: container + used_by: [] + location: none + content_type: filesystem + project: iroha + created_at: 2024-04-03T13:10:43.339168029Z diff --git a/nix_archive/hosts/sofue/programs.nix b/nix_archive/hosts/sofue/programs.nix new file mode 100644 index 0000000..d964fbf --- /dev/null +++ b/nix_archive/hosts/sofue/programs.nix @@ -0,0 +1,29 @@ +{ lib, pkgs, ... }: { + environment.systemPackages = with pkgs; lib.lists.flatten [ + (asNeeded "dia" ["dia"]) + (asNeeded "gftp" ["gftp"]) + (asNeeded "audacity" ["audacity"]) + (asNeeded "krita" ["krita"]) + (asNeeded "olive-editor" ["olive-editor"]) + yt-dlp + (asNeeded "[chatterino2 streamlink]" ["chatterino2"]) + (asNeeded "megatools" ["megacopy" "megadf" "megadl" "megaexport" "megaget" "megals" "megamkdir" "megaput" "megareg" "megarm" "megatest" "megatools"]) + (asNeeded "gdown" ["gdown"]) + wineWowPackages.staging + winetricks + cabextract + (asNeeded "qbittorrent" ["qbittorrent"]) + (asNeeded "ungoogled-chromium" ["chromium"]) + (asNeeded "brave" ["brave"]) + (discord.override { withOpenASAR = true; }) + (asNeeded "imv" ["imv"]) + (asNeeded "mpv" ["mpv"]) + (asNeeded "vlc" ["vlc"]) + #camu + #camu-devshell + #mauri + ]; + local.scripts.imports = [ + "discord-wayland" + ]; +} -- cgit v1.2.3-101-g0448