diff --git a/flake-modules/colors.json b/flake-modules/colors.json index d4e8eee..5d92653 100644 --- a/flake-modules/colors.json +++ b/flake-modules/colors.json @@ -1,15 +1,15 @@ { "NxXPS": { "base": { - "foreground": "#fecccc", - "background": "#190000" + "foreground": "#e4f4d6", + "background": "#0c1405" }, "to_alter": { - "accent": "#ff3232", - "secondary": "#6632ff", - "tertiary": "#dd32dd", - "special": "#31feff", - "weird": "#baff31" + "accent": "#94d45d", + "secondary": "#ffb732", + "tertiary": "#75bcad", + "special": "#9c5cd4", + "weird": "#5cd4c4" } }, "NxACE": { diff --git a/flake.lock b/flake.lock index e9842b9..2872a62 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ ] }, "locked": { - "lastModified": 1776876344, - "narHash": "sha256-Ubqb/agkuMJK+k19gjQgHux/eOYRc1sRGoOZOho8+VY=", + "lastModified": 1777499565, + "narHash": "sha256-nU55VWk99Pn1QzQDDjFISocC4SgDZ3Xp+zb6ji3JclM=", "owner": "hyprwm", "repo": "aquamarine", - "rev": "648a13d0ee1e03a843b3e145b8ece15393058701", + "rev": "813c1e8981893c11e118b19c125d6bc282f51765", "type": "github" }, "original": { @@ -39,11 +39,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1777744353, - "narHash": "sha256-8UmzMm5wkq+z0kEMEjowoECa4qY813z747o0g+G/bbE=", + "lastModified": 1778198574, + "narHash": "sha256-XzgYoibIH6diZoZ2GzoGeyV2xdXAwBtXdAze+Qu2kR0=", "owner": "9001", "repo": "copyparty", - "rev": "da6e2ddca96dffc4dbe53bda25d2034428fad3d0", + "rev": "139ef1851e5d698521a5c2078c56f951d6e54d00", "type": "github" }, "original": { @@ -220,11 +220,11 @@ ] }, "locked": { - "lastModified": 1777851538, - "narHash": "sha256-Gp8qwTEYNoy2yvmErVGlvLOQvrtEECCAKbonW7VJef8=", + "lastModified": 1778401693, + "narHash": "sha256-OVHdCqXXUF5UdGkH+FF2ZL06OLZjj2kvP2dIUmzVWoo=", "owner": "nix-community", "repo": "home-manager", - "rev": "cc09c0f9b7eaa95c2d9827338a5eb03d32505ca5", + "rev": "389b83002efc26f1145e89a6a8e6edc5a6435948", "type": "github" }, "original": { @@ -330,11 +330,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1777840661, - "narHash": "sha256-+o8yvf8+wJe8MYtsUtY2RJnX4WDHhxYWi+cOmOMOPVk=", + "lastModified": 1778504983, + "narHash": "sha256-A4YUxIZ/w2KZOiIiI0xVPEoXexGei+R0Va6B+92zW6o=", "ref": "refs/heads/main", - "rev": "6d4bcaf075dec8f6de003cb8403df8c788e7079e", - "revCount": 7249, + "rev": "5e441cae538c9396f2ee30338419bec12969608c", + "revCount": 7302, "submodules": true, "type": "git", "url": "https://github.com/hyprwm/Hyprland" @@ -432,11 +432,11 @@ ] }, "locked": { - "lastModified": 1776426736, - "narHash": "sha256-rl7i4aY+9p8LysJp7o8uRWahCkpFznCgGHXszlTw7b0=", + "lastModified": 1777320127, + "narHash": "sha256-Qu+Wf2Bp5qUjyn2YpZNq8a7JyzTGowhT1knrwE38a9U=", "owner": "hyprwm", "repo": "hyprlang", - "rev": "7833ff33b2e82d3406337b5dcf0d1cec595d83e9", + "rev": "090117506ddc3d7f26e650ff344d378c2ec329cc", "type": "github" }, "original": { @@ -509,11 +509,11 @@ ] }, "locked": { - "lastModified": 1777492286, - "narHash": "sha256-PwuoEJQcjSKJNP5T55qhfDwIP0tw5zxEhfu8GDfKfeg=", + "lastModified": 1778234770, + "narHash": "sha256-jAcsogZwWMfXT9MfXxZzkwliAqIuZUV0p71h6Ba9ReE=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "ec5c0c709706bad5b82f667fd8758eae442577ce", + "rev": "a2dbd8a4cc51f7cbe4224732668392bb1aa79df2", "type": "github" }, "original": { @@ -534,11 +534,11 @@ ] }, "locked": { - "lastModified": 1777148232, - "narHash": "sha256-Uv0WZLhu89SafuSOmYDA7akrPt4wBRmsa1ucasO5aXg=", + "lastModified": 1777159683, + "narHash": "sha256-Jxixw6wZphUp+nHYxOKUYSckL17QMBx2d5Zp0rJHr1g=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "fec9cf1abcc1011e46f0a0986f46bf93c6bf8b92", + "rev": "b8632713a6beaf28b56f2a7b0ab2fb7088dbb404", "type": "github" }, "original": { @@ -563,11 +563,11 @@ ] }, "locked": { - "lastModified": 1776728575, - "narHash": "sha256-z9eGphrArEBpl1O/GCH0wlY6z4K9vA6yWh2gAS6qytU=", + "lastModified": 1777388329, + "narHash": "sha256-40YxVGF2rA9iH3D7am5fy4EOSBbMgpJtJ9yhl0Cx+qI=", "owner": "hyprwm", "repo": "hyprwire", - "rev": "f3a80888783702a39691b684d099e16b83ed4702", + "rev": "04be2897e05f9b271d532b5ae56ca088d2eeac02", "type": "github" }, "original": { @@ -720,11 +720,11 @@ }, "nixpkgs-latest": { "locked": { - "lastModified": 1777857362, - "narHash": "sha256-OLgJdZXYdvZoKBz4ouBt72vzmM+2ouufJBIQ5sYZlZI=", + "lastModified": 1778583303, + "narHash": "sha256-jn+drGpaYalIzR0TAsvo2Z2LtBw3b9eIjJtwb0wUPUw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9e128ac8784d30b1a78bafa59d7772ba9ef17809", + "rev": "6093378e528c5fc6b6e44fb559daed68bc313733", "type": "github" }, "original": { @@ -752,11 +752,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1777578337, - "narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=", + "lastModified": 1777954456, + "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "15f4ee454b1dce334612fa6843b3e05cf546efab", + "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", "type": "github" }, "original": { @@ -783,11 +783,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1776877367, - "narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=", + "lastModified": 1777954456, + "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0726a0ecb6d4e08f6adced58726b95db924cef57", + "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", "type": "github" }, "original": { @@ -831,11 +831,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1777673416, - "narHash": "sha256-5c2POKPOjU40Kh0MirOdScBLG0bu9TAuPYAtPRNZMBs=", + "lastModified": 1778430510, + "narHash": "sha256-Ti+ZBvW6yrWWAg2szExVTwCd4qOJ3KlVr1tFHfyfi8Q=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "26ef669cffa904b6f6832ab57b77892a37c1a671", + "rev": "8fd9daa3db09ced9700431c5b7ad0e8ba199b575", "type": "github" }, "original": { @@ -1046,11 +1046,11 @@ ] }, "locked": { - "lastModified": 1777338324, - "narHash": "sha256-bc+ZZCmOTNq86/svGnw0tVpH7vJaLYvGLLKFYP08Q8E=", + "lastModified": 1777944972, + "narHash": "sha256-VfGRo1qTBKOe3s2gOv8LSoA6Fk19PvBlwQ1ECN0Evn8=", "owner": "Mic92", "repo": "sops-nix", - "rev": "8eaee5c45428b28b8c47a83e4c09dccec5f279b5", + "rev": "c591bf665727040c6cc5cb409079acb22dcce33c", "type": "github" }, "original": { @@ -1117,11 +1117,11 @@ ] }, "locked": { - "lastModified": 1777035886, - "narHash": "sha256-m1TNuBoSXUBSKhD9UVMkU90M0wFTPTfvIOOltO8IM8A=", + "lastModified": 1777585783, + "narHash": "sha256-JTeWRy42VElroJ0rVdZuVXSoTLsx+NzQfGPKMbtn3SU=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "ecfcdcc781f48821d83e1e2a0e30d7beca0eeb5e", + "rev": "fa50d6fbaff8f42c61071b87b034a90d82a33558", "type": "github" }, "original": { @@ -1137,11 +1137,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1777731325, - "narHash": "sha256-GwkNEp/tPf2eDBTpTLpimTsKaH5enVuU4OM4AZ9ZKdc=", + "lastModified": 1778523128, + "narHash": "sha256-eQp81Z0jSjD3wA8fFrmgxiS7Ahwf1M/mwaKWoI6iY5c=", "owner": "sxyazi", "repo": "yazi", - "rev": "62dd22b8daee4fa90dfcc94b1d5d39e1ead3ba0e", + "rev": "fde563380b45f19da10221e07d5415836313c743", "type": "github" }, "original": { diff --git a/home-modules/contact.nix b/home-modules/contact.nix new file mode 100644 index 0000000..7c1a841 --- /dev/null +++ b/home-modules/contact.nix @@ -0,0 +1,28 @@ +{ pkgs, ... }@all: with all; lib.mkIf (hyper.isPersonal) { + # sops.secrets."nx2site/nextcloud/lennart_pass".path = "nx2site/nextcloud/lennart_pass"; + # accounts.contact = { + # basePath = "~/.local/share/contacts"; + # accounts = let + # nc = name: { "${name}" = let + # un = "lennart"; + # in { + # inherit name; + # remote = { + # url = "https://n.${hyper.domain}/remote.php/dav/addressbooks/users/${un}/${name}/"; + # type = "carddav"; + # username = un; + # passwordCommand = "cat /run/user/1000/secrets/nx2site/nextcloud/lennart_pass"; + # thunderbird = { + # enable = builtins.trace config.programs.thunderbird.enable config.programs.thunderbird.enable; + # prifiles = [ hyper.user ]; + # }; + # }; + # local = { + # type = "filesystem"; + # path = "${name}"; + # }; + # };}; + # in (pkgs.lib.mergeAttrsList (builtins.map nc [ "TUDa" "CWG" "HSMW" "DICOS" "Accounts" "Familie & Freunde" "Friedrich Schiller Grundschule" "Handball" "Phönix" "Util & Miscellaneous" ])); + # }; + # }; +} diff --git a/home-modules/email.nix b/home-modules/email.nix index cd56500..116a7e7 100644 --- a/home-modules/email.nix +++ b/home-modules/email.nix @@ -1,92 +1,4 @@ { pkgs, ... }@all: with all; lib.mkIf (hyper.isPersonal) { - home.packages = with pkgs; [ - thunderbird - ]; - - programs.thunderbird = let - inherit (lib.generators) toJSON; - extensions = toJSON {} { - "addon@darkreader.org" = "71d6c69d-55f9-4c56-888c-abdcf6efd73d"; - }; - in { - enable = true; - profiles = { - "${hyper.user}" = { - isDefault = true; - settings = with rice.color; { - "calendar.alarms.showmissed" = false; - "calendar.alarms.playsound" = false; - "calendar.alarms.show" = false; - "extensions.webextensions.uuids" = extensions; - "mail.startup.enabledMailCheckOnce" = true; - "mailnews.mark_message_read.delay" = true; - "mailnews.mark_message_read.delay.interval" = 3; - "mailnews.tags.$label1.color" = red.base; - "mailnews.tags.$label1.tag" = "Important"; - "mailnews.tags.$label2.color" = yellow.base; - "mailnews.tags.$label2.tag" = "Work"; - "mailnews.tags.$label3.color" = green.base; - "mailnews.tags.$label3.tag" = "Personal"; - "mailnews.tags.$label4.color" = cyan.base; - "mailnews.tags.$label4.tag" = "To Do"; - "mailnews.tags.$label5.color" = blue.base; - "mailnews.tags.$label5.tag" = "Later"; - "mailnews.headers.showMessageId" = true; - "mailnews.headers.showOrganization" = true; - "mailnews.headers.showReferences" = true; - "mailnews.headers.showSender" = true; - "mailnews.headers.showUserAgent" = true; - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - }; - userChrome = with rice.color; /* css */ '' - body, - #navigation-toolbox, - #calendarContent, - #calSidebar, - #tabpanelcontainer, - #spacesToolbar, - #tabs-toolbar, - #calMinimonth, - #primaryButtonSidePanel *, - .minimonth-week, - .multiday-header-corner, .day-column-heading, calendar-header-container, calendar-event-column, .multiday-hour-box, - #view-box, - #tabs-toolbar, - #status-bar, - .calview-toggle, - #calview-toggle-item, - #folderPaneHeaderBar, - #folderPane, - #threadPaneHeaderBar, - #threadTree, - #tabs-toolbar { - color: ${foreground} !important; - font-family: ${rice.font.base.name} !important; - background-color: transparent !important; - background-image: none !important; - border: none !important; - -moz-appearance: none !important; - } - .minimonth-nav-section { - background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; - border: ${builtins.toString rice.border-width}px solid ${border}; - } - .button, - .button-primary, - .tab-content[selected] { - background-color: ${accent.base}; - color: ${background}; - background-image: none; - } - html { - background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; - } - ''; - }; - }; - }; - - accounts.email.accounts = let OAuth2Settings = id: { "mail.smtpserver.smtp_${id}.authMethod" = 10; diff --git a/home-modules/hyprland.nix b/home-modules/hyprland.nix index 16f0641..993a92c 100644 --- a/home-modules/hyprland.nix +++ b/home-modules/hyprland.nix @@ -5,10 +5,15 @@ terminal-exec = "ghostty --command="; monitors = { xps = { + # def + main = { name = "eDP-1"; resolution = "preferred"; position = "0x0"; scale = "1.0"; }; + second = { name = "eDP-1"; resolution = "preferred"; position = "0x0"; scale = "1.0"; }; + third = { name = "eDP-1"; resolution = "preferred"; position = "0x0"; scale = "1.0"; }; + # Home - main = { name = "eDP-1"; resolution = "1920x1200"; position = "0x1080"; scale = "1.0"; }; - second = { name = "desc:Sony SONY TV 0x01010101"; resolution = "1920x1080"; position = "0x0"; scale = "1.0"; }; - third = { name = ""; resolution = "preferred"; position = "auto"; scale ="1, mirror, eDP-1"; }; + # main = { name = "eDP-1"; resolution = "1920x1200"; position = "0x1080"; scale = "1.0"; }; + # second = { name = "desc:Sony SONY TV 0x01010101"; resolution = "1920x1080"; position = "0x0"; scale = "1.0"; }; + # third = { name = ""; resolution = "preferred"; position = "auto"; scale ="1, mirror, eDP-1"; }; # Presentation # main = { name = "eDP-1"; resolution = "1920x1080"; position = "1920x1080"; scale = "1.0"; }; @@ -46,9 +51,9 @@ in { wayland.windowManager.hyprland = { enable = true; - # package = pkgs-unstable.hyprland; # package = pkgs.hyprland; package = inputs.hyprland.packages.${hyper.system}.hyprland; + # package = config.programs.hyprland.package; xwayland.enable = true; systemd.enable = true; plugins = [ diff --git a/home-modules/pkgs-list/shell.nix b/home-modules/pkgs-list/shell.nix index c25a2f2..f8617b6 100644 --- a/home-modules/pkgs-list/shell.nix +++ b/home-modules/pkgs-list/shell.nix @@ -24,6 +24,7 @@ lynx mediainfo neofetch + nmap pastel pdfgrep pdftk @@ -37,10 +38,10 @@ systemctl-tui tldr unstable.gemini-cli + unstable.gemini-cli + unstable.yt-dlp unstable.yt-dlp w3m which - unstable.gemini-cli - unstable.yt-dlp ]; } diff --git a/home-modules/thunderbird.nix b/home-modules/thunderbird.nix new file mode 100644 index 0000000..8b970a4 --- /dev/null +++ b/home-modules/thunderbird.nix @@ -0,0 +1,84 @@ +{ pkgs, ... }@all: with all; lib.mkIf (hyper.isPersonal) { + programs.thunderbird = let + inherit (lib.generators) toJSON; + extensions = toJSON {} { + "addon@darkreader.org" = "71d6c69d-55f9-4c56-888c-abdcf6efd73d"; + }; + in { + enable = true; + profiles = { + "${hyper.user}" = { + isDefault = true; + settings = with rice.color; { + "calendar.alarms.showmissed" = false; + "calendar.alarms.playsound" = false; + "calendar.alarms.show" = false; + "extensions.webextensions.uuids" = extensions; + "mail.startup.enabledMailCheckOnce" = true; + "mailnews.mark_message_read.delay" = true; + "mailnews.mark_message_read.delay.interval" = 3; + "mailnews.tags.$label1.color" = red.base; + "mailnews.tags.$label1.tag" = "Important"; + "mailnews.tags.$label2.color" = yellow.base; + "mailnews.tags.$label2.tag" = "Work"; + "mailnews.tags.$label3.color" = green.base; + "mailnews.tags.$label3.tag" = "Personal"; + "mailnews.tags.$label4.color" = cyan.base; + "mailnews.tags.$label4.tag" = "To Do"; + "mailnews.tags.$label5.color" = blue.base; + "mailnews.tags.$label5.tag" = "Later"; + "mailnews.headers.showMessageId" = true; + "mailnews.headers.showOrganization" = true; + "mailnews.headers.showReferences" = true; + "mailnews.headers.showSender" = true; + "mailnews.headers.showUserAgent" = true; + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + }; + userChrome = with rice.color; /* css */ '' + body, + #navigation-toolbox, + #calendarContent, + #calSidebar, + #tabpanelcontainer, + #spacesToolbar, + #tabs-toolbar, + #calMinimonth, + #primaryButtonSidePanel *, + .minimonth-week, + .multiday-header-corner, .day-column-heading, calendar-header-container, calendar-event-column, .multiday-hour-box, + #view-box, + #tabs-toolbar, + #status-bar, + .calview-toggle, + #calview-toggle-item, + #folderPaneHeaderBar, + #folderPane, + #threadPaneHeaderBar, + #threadTree, + #tabs-toolbar { + color: ${foreground} !important; + font-family: ${rice.font.base.name} !important; + background-color: transparent !important; + background-image: none !important; + border: none !important; + -moz-appearance: none !important; + } + .minimonth-nav-section { + background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; + border: ${builtins.toString rice.border-width}px solid ${border}; + } + .button, + .button-primary, + .tab-content[selected] { + background-color: ${accent.base}; + color: ${background}; + background-image: none; + } + html { + background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; + } + ''; + }; + }; + }; +} diff --git a/home.nix b/home.nix index a310450..d1c598a 100644 --- a/home.nix +++ b/home.nix @@ -8,6 +8,7 @@ ./home-modules/chatterino.nix ./home-modules/clipboard.nix ./home-modules/color-pallete.nix + ./home-modules/contact.nix ./home-modules/direnv.nix ./home-modules/discord.nix ./home-modules/email.nix @@ -42,7 +43,7 @@ ./home-modules/pkgs-list/desktop.nix ./home-modules/pkgs-list/programs.nix ./home-modules/pkgs-list/shell.nix - ./home-modules/pnx.nix + # ./home-modules/pnx.nix ./home-modules/programming.nix ./home-modules/qt.nix ./home-modules/rclone.nix @@ -53,6 +54,7 @@ ./home-modules/spotify.nix ./home-modules/ssh.nix ./home-modules/starship.nix + ./home-modules/thunderbird.nix ./home-modules/tts.nix ./home-modules/typst.nix ./home-modules/vale.nix diff --git a/sops-secrets.yaml b/sops-secrets.yaml index 91057e3..9a3ab22 100644 --- a/sops-secrets.yaml +++ b/sops-secrets.yaml @@ -50,7 +50,6 @@ nx2site: maddy: nxcaldav_password: ENC[AES256_GCM,data:cpq6OJDPw2moea1LBfisVNIW9qmJeqc=,iv:h2EN4ButO+nIhx8oIATbtRFYrp6bj05vSQ2vJeqDp94=,tag:WEuC3bJ5pGp1VWfZrL7XUg==,type:str] nextcloud_password: ENC[AES256_GCM,data:dIPqnmOYStsHpra2lZ0+9YA02vLphQ==,iv:qasttDr1EfNtATSXyV9jafemx/v1C173Cxf/x+ZW0MA=,tag:mgWEqKMT5VuKa7eT5kDFNA==,type:str] - nextcloud_password_bcrypt: ENC[AES256_GCM,data:peK83T6fHjy4LIM28pKa4cJzJ/+RzjwbT2VX1uRey6G52cjS0voItAtrElP8lIcVB9DO7bKd5psTQd7PKlU=,iv:ZoLa4slUlJaRepimftj/PPQZp4Ns1nLgPiW0eh9fg7s=,tag:scBrK6h453lVzir4UpZ4Hw==,type:str] lennart_password: ENC[AES256_GCM,data:a2lTi3j24EowghFITkKd+6UMB/E=,iv:gja6miTo3bTg86nWNeaGwpMgNccX5+HJINI2tgHJBrg=,tag:ScEKrHAb3yeqg3ynLpHFkA==,type:str] daniel_password: ENC[AES256_GCM,data:AdA+cN++Z1rAm8CbuP60k2/Gu2bJ,iv:yGMbo4s6oUkh5aWJDSiCTeey/tkjKkAbzYRDjMzEnYk=,tag:XjL01czFJ5AHqieVshlMPA==,type:str] diane_password: ENC[AES256_GCM,data:Lu2mWItrAN0YIInhWLsGPjwFNhks0g==,iv:5KInpqxklKyP78qlMjF40Lt582Fv9RauTT7TmeXan/A=,tag:ZrubtryuYMaA4ewfZeq/xQ==,type:str] @@ -141,8 +140,8 @@ sops: MkZGai9DZ3ZzT0I2MmMwRzVkcFhXdlEKLbM/9kCpiXLW8Me4MDq+JFifG7FhwPZS 5t4zNtuLttY3NUwT9KK4g4P+Yl10oNsjcCbGNYTxlIARFEU+X6zwUQ== -----END AGE ENCRYPTED FILE----- - lastmodified: "2026-05-03T21:22:17Z" - mac: ENC[AES256_GCM,data:39aHKmXCvIcuMkxIyCF6gAkls5hyt88asZNrCcPhPGWYaVDxaGRyn0AuobkvCYDk1sUEnM9vPwRQvJrdrppseZewReXXjIRruYJfuHAJpkTKqvgAsuPDa6nZPdO6OCsZgmUXDSke/0XrxY5f1WwQTvFRhtAa/TtrDcEXIAu4UfQ=,iv:sUcyHwGXEENNrJoz8gV9OEgKcwA8hArv9zOh1Wau+w4=,tag:zgC2Hufx4md50KRFGfcu+Q==,type:str] + lastmodified: "2026-05-10T17:36:49Z" + mac: ENC[AES256_GCM,data:j/Isi1F9YawNzwdskMW+DK0F6CgqcqqpYwe/MNLiPed+ySqOHJvk05dS1maH+CvxmyAC6daGFCXcraN1Spq00FxDj+ZzvOcU7J+xmMZB5BDTuSI/+EaDL0bhUh5phen0yrkn3nI4M7FVbPwcyWFMUiSHZOlCoY39A2ZIprxgtqo=,iv:FlGthtns5mQ1mY5MM285rx+bKZLRbW2b4Ea+o9pIxNk=,tag:m95hmRA5iCnHtaFXyY6Rog==,type:str] pgp: - created_at: "2025-10-06T11:16:18Z" enc: |- diff --git a/system-modules/tuda.nix b/system-modules/tuda.nix index 97a88fc..d5ce3c2 100644 --- a/system-modules/tuda.nix +++ b/system-modules/tuda.nix @@ -12,17 +12,16 @@ environment.systemPackages = with pkgs; [ openconnect networkmanager-openconnect + (pkgs.writeShellScriptBin "connect_to_tuda" '' + sudo $(grep ExecStart /etc/systemd/system/openconnect-tuda.service | cut -c 11-) + '') ]; networking.openconnect = { package = pkgs.openconnect; interfaces = { - openconnect0 = { + tuda = { autoStart = false; - certificate = "/home/nx2/tuda-rootcert.crt"; - # extraOptions = { compression = "stateless"; no-dtls = true; no-http-keepalive = true; }; gateway = "vpn.hrz.tu-darmstadt.de"; - # passwordFile = "/var/lib/secrets/openconnect-passwd"; - # privateKey = "/var/lib/secrets/openconnect_private_key.pem"; protocol = "anyconnect"; user = secrets.email.tuda.tuid; };