From 00db7aca343a925220b17223b02dfb79b05f597c Mon Sep 17 00:00:00 2001 From: tzlil Date: Fri, 20 Oct 2023 11:34:30 +0300 Subject: stuff --- hosts/navi/default.nix | 134 ++++++++++++++++++++++++++-------- hosts/navi/hardware-configuration.nix | 2 +- 2 files changed, 105 insertions(+), 31 deletions(-) (limited to 'hosts/navi') diff --git a/hosts/navi/default.nix b/hosts/navi/default.nix index 6d01de2..22f253b 100644 --- a/hosts/navi/default.nix +++ b/hosts/navi/default.nix @@ -15,8 +15,9 @@ ../../mixins/pipewire.nix ../../mixins/multimedia.nix ../../mixins/syncthing.nix - ../../mixins/firefox - # ../../mixins/firefox/absolute-minimum.nix + # ../../mixins/firefox + ../../mixins/firefox/minimum + # ../../mixins/firefox/abs ]; config = { @@ -105,6 +106,21 @@ }; }; + # mullvad + age.secrets.mullvad.file = ../../secrets/mullvad.age; + services.mullvad-vpn = { + enable = true; + }; + systemd.services."mullvad-daemon".postStart = let + mullvad = config.services.mullvad-vpn.package; + in '' + while ! ${lib.getExe mullvad} status >/dev/null; do sleep 1; done + ${lib.getExe mullvad} account login < ${config.age.secrets.mullvad.path} + ${lib.getExe mullvad} auto-connect set on + ${lib.getExe mullvad} lockdown-mode set on + ${lib.getExe mullvad} tunnel ipv6 set on + ''; + home-manager.users.tzlil = { home.packages = [ pkgs.schildichat-desktop-wayland @@ -112,22 +128,88 @@ pkgs.gtkcord4 pkgs.cmst - (pkgs.stdenv.mkDerivation rec { - name = "pragmata"; - version = "1.0"; - src = ./pragmata; + # (pkgs.stdenv.mkDerivation rec { + # name = "pragmata"; + # version = "1.0"; + # src = ./pragmata; - installPhase = '' - install -D ${src}/Pragmata_Pro_Bold_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Bold_Italic.otf - install -D ${src}/Pragmata_Pro_Bold.otf $out/share/fonts/opentype/Pragmata_Pro_Bold.otf - install -D ${src}/Pragmata_Pro_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Italic.otf - install -D ${src}/Pragmata_Pro_Mono_Bold_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Bold_Italic.otf - install -D ${src}/Pragmata_Pro_Mono_Bold.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Bold.otf - install -D ${src}/Pragmata_Pro_Mono_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Italic.otf - install -D ${src}/Pragmata_Pro_Mono_Regular.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Regular.otf - install -D ${src}/Pragmata_Pro_Regular.otf $out/share/fonts/opentype/Pragmata_Pro_Regular.otf - ''; + # installPhase = '' + # install -D ${src}/Pragmata_Pro_Bold_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Bold_Italic.otf + # install -D ${src}/Pragmata_Pro_Bold.otf $out/share/fonts/opentype/Pragmata_Pro_Bold.otf + # install -D ${src}/Pragmata_Pro_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Italic.otf + # install -D ${src}/Pragmata_Pro_Mono_Bold_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Bold_Italic.otf + # install -D ${src}/Pragmata_Pro_Mono_Bold.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Bold.otf + # install -D ${src}/Pragmata_Pro_Mono_Italic.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Italic.otf + # install -D ${src}/Pragmata_Pro_Mono_Regular.otf $out/share/fonts/opentype/Pragmata_Pro_Mono_Regular.otf + # install -D ${src}/Pragmata_Pro_Regular.otf $out/share/fonts/opentype/Pragmata_Pro_Regular.otf + # ''; + # }) + # (pkgs.stdenv.mkDerivation rec { + # name = "APL"; + # version = "1.0"; + # src = pkgs.linkFarm "APL" [ + # { + # name = "APL333.ttf"; + # path = + # pkgs.fetchurl + # { + # url = "https://www.dyalog.com/uploads/files/download.php?file=fonts_and_keyboards/APL333.ttf"; + # hash = "sha256-rvwaHOvoU+p9huY7ZGiX5TrWr5XYSBelFm9IU4S6NQ4="; + # }; + # } + # { + # name = "APL385.ttf"; + # path = + # pkgs.fetchurl + # { + # url = "https://www.dyalog.com/uploads/files/download.php?file=fonts_and_keyboards/Apl385.ttf"; + # hash = "sha256-Hs4dom9BCM3tDLSkQd2RbEs6UFy0KqlLgOFxtIBOFwU="; + # }; + # } + # ]; + # installPhase = '' + # install -D ${src}/APL333.ttf $out/share/fonts/truetype/APL333.ttf + # install -D ${src}/APL385.ttf $out/share/fonts/truetype/APL385.ttf + + # ''; + # }) + # pkgs.apl386 + + (pkgs.cutter.withPlugins (ps: with ps; [rz-ghidra sigdb])) + + (pkgs.discord.override { + withOpenASAR = true; + withVencord = true; }) + ]; + programs.foot.settings.main.font = "APL385 Unicode:size=20"; + # programs.qutebrowser = { + # enable = true; + # settings.colors.webpage.darkmode.enabled = true; + # }; + + xdg.configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} { + General = {ConfigVersion = 2;}; + Browser = { + AlwaysAllowAccess = true; + Enabled = true; + }; + GUI = {ApplicationTheme = "dark";}; + }; + home.file.".cache/keepassxc/keepassxc.ini".text = lib.generators.toINI {} { + General = {LastActiveDatabase = "${config.services.syncthing.dataDir}/passwords/passwords.kdbx";}; + }; + home.file.".mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json".text = builtins.toJSON { + allowed_extensions = ["keepassxc-browser@keepassxc.org"]; + description = "KeePassXC integration with native messaging support"; + name = "org.keepassxc.keepassxc_browser"; + path = "${pkgs.keepassxc}/bin/keepassxc-proxy"; + type = "stdio"; + }; + }; + + fonts = { + packages = [ (pkgs.stdenv.mkDerivation rec { name = "APL"; version = "1.0"; @@ -157,21 +239,13 @@ ''; }) - pkgs.apl386 - - (pkgs.cutter.withPlugins (ps: with ps; [rz-ghidra sigdb])) - - (pkgs.discord.override { - withOpenASAR = true; - withVencord = true; - }) ]; - programs.foot.settings.main.font = "APL385 Unicode:size=20"; - # programs.qutebrowser = { - # enable = true; - # settings.colors.webpage.darkmode.enabled = true; - # }; + fontconfig.defaultFonts = { + serif = ["APL385 Unicode"]; + sansSerif = ["APL385 Unicode"]; + monospace = ["APL385 Unicode"]; + }; }; programs.steam.enable = true; @@ -196,7 +270,7 @@ driSupport32Bit = true; }; - networking.firewall.allowedTCPPorts = [25565]; + networking.firewall.allowedTCPPorts = [25565 22753]; services = { power-profiles-daemon.enable = true; diff --git a/hosts/navi/hardware-configuration.nix b/hosts/navi/hardware-configuration.nix index aa88984..28094f1 100644 --- a/hosts/navi/hardware-configuration.nix +++ b/hosts/navi/hardware-configuration.nix @@ -70,7 +70,7 @@ in { nodev."/" = { fsType = "tmpfs"; mountOptions = [ - "size=2G" + "size=4G" "defaults" "mode=755" ]; -- cgit 1.4.1