From 1c56733f9ef1e382ed3dbfacdc5a312a817cfb08 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 2 May 2023 01:20:15 +0300 Subject: [PATCH 1/3] Fixing Cross for rust --- nixos/desktop/configuration.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index b8668e8..2b125c8 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -172,12 +172,20 @@ #noto-fonts-emoji ]; - programs.steam = { - enable = true; - remotePlay.openFirewall = - true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = - true; # Open ports in the firewall for Source Dedicated Server + programs = { + steam = { + enable = true; + remotePlay.openFirewall = + true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = + true; # Open ports in the firewall for Source Dedicated Server + }; + + bash ={ + shellAliases = { + cross="NIX_STORE=/nix/store cross"; + }; + }; }; programs.dconf.enable = true; From 5124620018517702ee39d89bf1b67830db2213e9 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 2 May 2023 01:20:32 +0300 Subject: [PATCH 2/3] Avahi name resolution --- nixos/desktop/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index 2b125c8..0a7a4f9 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -131,6 +131,10 @@ # Enable CUPS to print documents. services.printing.enable = true; + services.avahi = { + enable = true; + nssmdns = true; + }; # Enable sound with pipewire. sound.enable = true; From 7f15c6dff9423bfb5caac3ee6d3c143724faa112 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 2 May 2023 01:20:46 +0300 Subject: [PATCH 3/3] Switching Docker -> Podman --- nixos/desktop/configuration.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index 0a7a4f9..febf5d5 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -157,8 +157,12 @@ services.udev.packages = with pkgs; [ logitech-udev-rules ]; networking.firewall.enable = false; - virtualisation.docker = { - enable = true; + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + defaultNetwork.dnsname.enable = true; + }; }; #fonts.fontDir.enable = true;