add vm-aarch64

This commit is contained in:
Motiejus Jakštys 2024-03-06 09:05:22 +02:00
parent aff77cd611
commit cf252e408a
3 changed files with 137 additions and 117 deletions

View File

@ -114,7 +114,7 @@
in in
{ {
nixosConfigurations = { nixosConfigurations = {
vm = nixpkgs.lib.nixosSystem { vm-x86_64 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
{nixpkgs.overlays = overlays;} {nixpkgs.overlays = overlays;}
@ -125,6 +125,17 @@
specialArgs = {inherit myData;} // inputs; specialArgs = {inherit myData;} // inputs;
}; };
vm-aarch64 = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
{nixpkgs.overlays = overlays;}
home-manager.nixosModules.home-manager
./hosts/vm/configuration.nix
./modules
];
specialArgs = {inherit myData;} // inputs;
};
op5p = nixpkgs.lib.nixosSystem { op5p = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ modules = [

View File

@ -4,6 +4,10 @@
... ...
}: let }: let
username = config.mj.username; username = config.mj.username;
firefox =
if (pkgs.stdenv.hostPlatform.system == "x86_64-linux")
then pkgs.firefox-bin
else pkgs.firefox;
in { in {
config = { config = {
hardware.bluetooth = { hardware.bluetooth = {
@ -14,7 +18,7 @@ in {
programs = { programs = {
firefox = { firefox = {
enable = true; enable = true;
package = pkgs.firefox-bin; package = firefox;
}; };
wireshark.enable = true; wireshark.enable = true;
}; };
@ -109,125 +113,130 @@ in {
}; };
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs;
# packages defined here lib.mkMerge [
nicer [
tmuxbash # packages defined here
nicer
tmuxbash
iw iw
vlc vlc
i7z acpi
acpi gimp
gimp qgis
qgis josm
josm qemu
qemu xclip
xclip pdftk
pdftk putty
putty x11vnc
x11vnc yt-dlp
yt-dlp ffmpeg
ffmpeg tinycc
tinycc scrcpy
scrcpy arandr
arandr pandoc
pandoc evince
evince gparted
gparted scribus
scribus gnumake
gnumake libwebp
libwebp calibre
calibre librsvg
librsvg neomutt
neomutt picocom
picocom inkscape
inkscape chromium
chromium hunspell
hunspell tigervnc
tigervnc rtorrent
rtorrent bsdgames
bsdgames xss-lock
xss-lock qpwgraph # for pipewire
qpwgraph # for pipewire audacity
audacity powertop
powertop gpicview
gpicview imapsync
imapsync trayscale
trayscale # TODO why doesn't 'programs.wireshark.enable = true' install the binary?
# TODO why doesn't 'programs.wireshark.enable = true' install the binary? wireshark
wireshark man-pages
man-pages rox-filer
rox-filer distrobox
distrobox miniupnpc
miniupnpc evolution
evolution shellcheck
shellcheck borgbackup
borgbackup efibootmgr
efibootmgr virtualenv
winetricks python3Full
virtualenv libva-utils # intel video tests
python3Full pavucontrol
libva-utils # intel video tests openshot-qt
pavucontrol poppler_utils
openshot-qt rkdeveloptool
poppler_utils squashfsTools
rkdeveloptool aspellDicts.en
squashfsTools aspellDicts.lt
google-chrome libreoffice-qt
aspellDicts.en graphicsmagick
aspellDicts.lt signal-desktop
libreoffice-qt element-desktop
graphicsmagick netsurf-browser
joplin-desktop man-pages-posix
signal-desktop geoipWithDatabase
element-desktop hunspellDicts.en_US
netsurf-browser python3Packages.ipython
man-pages-posix samsung-unified-linux-driver
geoipWithDatabase
wineWowPackages.full
hunspellDicts.en_US
python3Packages.ipython
samsung-unified-linux-driver
lld lld
llvm llvm
llvm-manpages llvm-manpages
clang-manpages clang-manpages
gcc_latest gcc_latest
gnome.cheese gnome.cheese
gnome.nautilus gnome.nautilus
gnome.gnome-calculator gnome.gnome-calculator
gnome.gnome-calendar gnome.gnome-calendar
xorg.xev xorg.xev
xorg.xeyes xorg.xeyes
xorg.lndir xorg.lndir
intel-gpu-tools (texlive.combine {
(nvtop.override { inherit
amd = true; (texlive)
intel = true; scheme-medium
msm = false; dvisvgm
nvidia = false; dvipng
}) wrapfig
amsmath
ulem
hyperref
capt-of
lithuanian
hyphen-lithuanian
;
})
]
(lib.mkIf (pkgs.stdenv.hostPlatform.system == "x86_64-linux") [
i7z
(nvtop.override {
amd = true;
intel = true;
msm = false;
nvidia = false;
})
google-chrome
joplin-desktop
intel-gpu-tools
(texlive.combine { winetricks
inherit wineWowPackages.full
(texlive) ])
scheme-medium ];
dvisvgm
dvipng
wrapfig
amsmath
ulem
hyperref
capt-of
lithuanian
hyphen-lithuanian
;
})
];
# https://discourse.nixos.org/t/nixos-rebuild-switch-upgrade-networkmanager-wait-online-service-failure/30746 # https://discourse.nixos.org/t/nixos-rebuild-switch-upgrade-networkmanager-wait-online-service-failure/30746
systemd.services.NetworkManager-wait-online.enable = false; systemd.services.NetworkManager-wait-online.enable = false;

View File

@ -94,8 +94,8 @@ in {
# firefox doesn't need the wrapper on the personal laptop # firefox doesn't need the wrapper on the personal laptop
package = package =
if hmOnly if hmOnly
then (glintel pkgs.firefox-bin "firefox") then (glintel firefox "firefox")
else pkgs.firefox-bin; else firefox;
policies.DisableAppUpdate = true; policies.DisableAppUpdate = true;
profiles = { profiles = {
xdefault = { xdefault = {