diff --git a/home-manager/common/desktops/xfce/default.nix b/home-manager/common/desktops/xfce/default.nix index 816e02b5..c0f35df8 100644 --- a/home-manager/common/desktops/xfce/default.nix +++ b/home-manager/common/desktops/xfce/default.nix @@ -1,9 +1,67 @@ -{ pkgs, ... }: { - xdg.configFile."ranger-rc-conf" = { +{ lib, ... }: { + xdg.configFile."displays" = { enable = true; - target = "./xfce4/test.conf"; - text = '' - - ''; - }; + target = "xfce4/xfconf/xfce-perchannel-xml/displays.xml"; + text = lib.readFile "xfce/xfconf/displays.xml"; + }; + xdg.configFile."thunar" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/thunar.xml"; + text = lib.readFile "xfce/xfconf/thunar.xml"; + }; + xdg.configFile."xfce4-appfinder" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-appfinder.xml"; + text = lib.readFile "xfce/xfconf/xfce4-appfinder.xml"; + }; + xdg.configFile."xfce4-desktop" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml"; + text = lib.readFile "xfce/xfconf/xfce4-desktop.xml"; + }; + xdg.configFile."xfce4-keyboard-shortcuts" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml"; + text = lib.readFile "xfce/xfconf/xfce4-keyboard-shortcuts.xml"; + }; + xdg.configFile."xfce4-notifyd" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml"; + text = lib.readFile "xfce/xfconf/xfce4-notifyd.xml"; + }; + xdg.configFile."xfce4-panel" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml"; + text = lib.readFile "xfce/xfconf/xfce4-panel.xml"; + }; + xdg.configFile."xfce4-power-manager" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml"; + text = lib.readFile "xfce/xfconf/xfce4-power-manager.xml"; + }; + xdg.configFile."xfce4-screenshotter" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-screenshotter.xml"; + text = lib.readFile "xfce/xfconf/xfce4-screenshotter.xml"; + }; + xdg.configFile."xfce4-settings-editor" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-editor.xml"; + text = lib.readFile "xfce/xfconf/xfce4-settings-editor.xml"; + }; + xdg.configFile."xfce4-terminal" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfce4-terminal.xml"; + text = lib.readFile "xfce/xfconf/xfce4-terminal.xml"; + }; + xdg.configFile."xfwm4" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml"; + text = lib.readFile "xfce/xfconf/xfwm4.xml"; + }; + xdg.configFile."xsettings.xml" = { + enable = true; + target = "xfce4/xfconf/xfce-perchannel-xml/xsettings.xml.xml"; + text = lib.readFile "xfce/xfconf/xsettings.xml.xml"; + }; } diff --git a/home-manager/common/desktops/xfce/xfconf/displays.xml b/home-manager/common/desktops/xfce/xfconf/displays.xml new file mode 100644 index 00000000..0dc41fc8 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/displays.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/thunar.xml b/home-manager/common/desktops/xfce/xfconf/thunar.xml new file mode 100644 index 00000000..a46e5cd9 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/thunar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-appfinder.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-appfinder.xml new file mode 100644 index 00000000..7129a7a1 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-appfinder.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-desktop.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-desktop.xml new file mode 100644 index 00000000..94217366 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-desktop.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-keyboard-shortcuts.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-keyboard-shortcuts.xml new file mode 100644 index 00000000..2e09df45 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-keyboard-shortcuts.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-notifyd.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-notifyd.xml new file mode 100644 index 00000000..70c80b62 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-notifyd.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-panel.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-panel.xml new file mode 100644 index 00000000..71656f1c --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-panel.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-power-manager.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-power-manager.xml new file mode 100644 index 00000000..a4119d00 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-power-manager.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-screenshooter.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-screenshooter.xml new file mode 100644 index 00000000..d8143665 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-screenshooter.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-settings-editor.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-settings-editor.xml new file mode 100644 index 00000000..a7c84531 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-settings-editor.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfce4-terminal.xml b/home-manager/common/desktops/xfce/xfconf/xfce4-terminal.xml new file mode 100644 index 00000000..e588d383 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfce4-terminal.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xfwm4.xml b/home-manager/common/desktops/xfce/xfconf/xfwm4.xml new file mode 100644 index 00000000..5850fcee --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xfwm4.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/common/desktops/xfce/xfconf/xsettings.xml b/home-manager/common/desktops/xfce/xfconf/xsettings.xml new file mode 100644 index 00000000..26f49872 --- /dev/null +++ b/home-manager/common/desktops/xfce/xfconf/xsettings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home-manager/hosts/rdesktop/desktops/xfce/default.nix b/home-manager/hosts/rdesktop/desktops/xfce/default.nix index e69de29b..0db3279e 100644 --- a/home-manager/hosts/rdesktop/desktops/xfce/default.nix +++ b/home-manager/hosts/rdesktop/desktops/xfce/default.nix @@ -0,0 +1,3 @@ +{ + +} diff --git a/nixos/common/services/docker.nix b/nixos/common/services/docker.nix index e9bf0439..1ccea644 100644 --- a/nixos/common/services/docker.nix +++ b/nixos/common/services/docker.nix @@ -15,7 +15,6 @@ environment.systemPackages = with pkgs; [ docker-compose ctop - lazydocker inputs.compose2nix.packages.${system}.default ]; diff --git a/nixos/hosts/framework-server/firewall.nix b/nixos/hosts/framework-server/firewall.nix index 6085d996..66242e68 100644 --- a/nixos/hosts/framework-server/firewall.nix +++ b/nixos/hosts/framework-server/firewall.nix @@ -15,9 +15,9 @@ 587 # Mailserver 993 # Mailserver 4190 # Mailserver - 4443 # Jitsi 5696 # dsm-kmip server 3389 # RDP + 4443 # Jitsi ]; allowedUDPPorts = [ 53 # DNS (udp) diff --git a/nixos/hosts/milan-linode-01/containers/derp.nix b/nixos/hosts/milan-linode-01/containers/derp.nix index 8c1ec3e6..4d131726 100644 --- a/nixos/hosts/milan-linode-01/containers/derp.nix +++ b/nixos/hosts/milan-linode-01/containers/derp.nix @@ -8,7 +8,7 @@ }; # Containers - virtualisation.oci-containers.containers."headscale-derp" = { + virtualisation.oci-containers.containers."derp" = { image = "docker.io/fredliang/derper"; environment = { DERP_ADDR = ":1443"; diff --git a/nixos/hosts/osaka-linode-01/containers/derp.nix b/nixos/hosts/osaka-linode-01/containers/derp.nix index 0854c8a9..d98bdcd3 100644 --- a/nixos/hosts/osaka-linode-01/containers/derp.nix +++ b/nixos/hosts/osaka-linode-01/containers/derp.nix @@ -8,7 +8,7 @@ }; # Containers - virtualisation.oci-containers.containers."headscale-derp" = { + virtualisation.oci-containers.containers."derp" = { image = "docker.io/fredliang/derper"; environment = { DERP_ADDR = ":1443"; diff --git a/nixos/hosts/osaka-linode-01/wireguard.nix b/nixos/hosts/osaka-linode-01/wireguard.nix index 63592528..8dc7e3a8 100644 --- a/nixos/hosts/osaka-linode-01/wireguard.nix +++ b/nixos/hosts/osaka-linode-01/wireguard.nix @@ -59,4 +59,4 @@ }; }; }; -} \ No newline at end of file +} diff --git a/nixos/hosts/piaware-rpi4/default.nix b/nixos/hosts/piaware-rpi4/default.nix index 5c2cdc97..1a0afd2a 100644 --- a/nixos/hosts/piaware-rpi4/default.nix +++ b/nixos/hosts/piaware-rpi4/default.nix @@ -4,7 +4,7 @@ (modulesPath + "/installer/scan/not-detected.nix") ../../common/services/tailscale-autoconnect.nix ../../common/services/podman.nix - ./podman/piaware.nix + ./containers/piaware.nix ]; # Enable distributed Builds nix.distributedBuilds = true; diff --git a/nixos/hosts/piaware-rpi4/podman/piaware.nix b/nixos/hosts/piaware-rpi4/podman/piaware.nix deleted file mode 100644 index 457fc2c9..00000000 --- a/nixos/hosts/piaware-rpi4/podman/piaware.nix +++ /dev/null @@ -1,55 +0,0 @@ -# Auto-generated using compose2nix v0.1.6. -{ pkgs, lib, ... }: { - # Containers - virtualisation.oci-containers.containers."piaware" = { - image = "ghcr.io/sdr-enthusiasts/docker-piaware:latest"; - environment = { - FEEDER_ID = "cdca89ee-6612-4707-b0bb-ffb78d156c47"; - LAT = "35.6837777585358"; - LONG = "135.02715404216545"; - RECEIVER_TYPE = "rtlsdr"; - TZ = "Asia/Tokyo"; - }; - ports = [ "8080:80/tcp" ]; - log-driver = "journald"; - extraOptions = [ - "--device=/dev/bus/usb:/dev/bus/usb" - "--network-alias=piaware" - "--network=piaware-default" - ]; - }; - systemd.services."podman-piaware" = { - serviceConfig = { - Restart = lib.mkOverride 500 "always"; - }; - after = [ "podman-network-piaware-default.service" ]; - requires = [ "podman-network-piaware-default.service" ]; - partOf = [ "podman-compose-piaware-root.target" ]; - wantedBy = [ "podman-compose-piaware-root.target" ]; - }; - - # Networks - systemd.services."podman-network-piaware-default" = { - path = [ pkgs.podman ]; - serviceConfig = { - Type = "oneshot"; - RemainAfterExit = true; - ExecStop = "${pkgs.podman}/bin/podman network rm -f piaware-default"; - }; - script = '' - podman network inspect piaware-default || podman network create piaware-default --opt isolate=true - ''; - partOf = [ "podman-compose-piaware-root.target" ]; - wantedBy = [ "podman-compose-piaware-root.target" ]; - }; - - # Root service - # When started, this will automatically create all resources and start - # the containers. When stopped, this will teardown all resources. - systemd.targets."podman-compose-piaware-root" = { - unitConfig = { - Description = "Root target generated by compose2nix."; - }; - wantedBy = [ "multi-user.target" ]; - }; -}