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,14 +113,15 @@ in {
}; };
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs;
lib.mkMerge [
[
# packages defined here # packages defined here
nicer nicer
tmuxbash tmuxbash
iw iw
vlc vlc
i7z
acpi acpi
gimp gimp
qgis qgis
@ -164,7 +169,6 @@ in {
shellcheck shellcheck
borgbackup borgbackup
efibootmgr efibootmgr
winetricks
virtualenv virtualenv
python3Full python3Full
libva-utils # intel video tests libva-utils # intel video tests
@ -173,18 +177,15 @@ in {
poppler_utils poppler_utils
rkdeveloptool rkdeveloptool
squashfsTools squashfsTools
google-chrome
aspellDicts.en aspellDicts.en
aspellDicts.lt aspellDicts.lt
libreoffice-qt libreoffice-qt
graphicsmagick graphicsmagick
joplin-desktop
signal-desktop signal-desktop
element-desktop element-desktop
netsurf-browser netsurf-browser
man-pages-posix man-pages-posix
geoipWithDatabase geoipWithDatabase
wineWowPackages.full
hunspellDicts.en_US hunspellDicts.en_US
python3Packages.ipython python3Packages.ipython
samsung-unified-linux-driver samsung-unified-linux-driver
@ -204,14 +205,6 @@ in {
xorg.xeyes xorg.xeyes
xorg.lndir xorg.lndir
intel-gpu-tools
(nvtop.override {
amd = true;
intel = true;
msm = false;
nvidia = false;
})
(texlive.combine { (texlive.combine {
inherit inherit
(texlive) (texlive)
@ -227,6 +220,22 @@ in {
hyphen-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
winetricks
wineWowPackages.full
])
]; ];
# 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

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 = {