{"id":17520618,"url":"https://github.com/oxzi/nixos-thinkpad-dock","last_synced_at":"2025-09-26T15:24:21.346Z","repository":{"id":134034768,"uuid":"266126682","full_name":"oxzi/nixos-thinkpad-dock","owner":"oxzi","description":"NixOS module for ThinkPads and docking stations","archived":false,"fork":false,"pushed_at":"2021-04-01T12:29:32.000Z","size":6,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T13:43:04.073Z","etag":null,"topics":["docking-station","nixos","nixos-module","thinkpad"],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oxzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T14:10:47.000Z","updated_at":"2024-12-16T08:33:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fb10662-ab4b-4aeb-bff6-9bd9073951d1","html_url":"https://github.com/oxzi/nixos-thinkpad-dock","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oxzi/nixos-thinkpad-dock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fnixos-thinkpad-dock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fnixos-thinkpad-dock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fnixos-thinkpad-dock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fnixos-thinkpad-dock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxzi","download_url":"https://codeload.github.com/oxzi/nixos-thinkpad-dock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fnixos-thinkpad-dock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277097953,"owners_count":25760462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-26T02:00:09.010Z","response_time":78,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docking-station","nixos","nixos-module","thinkpad"],"created_at":"2024-10-20T11:24:06.569Z","updated_at":"2025-09-26T15:24:21.313Z","avatar_url":"https://github.com/oxzi.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NixOS Thinkpad Dock\n\nSmall NixOS module for ThinkPads to perform certain tasks during docking and\nundocking on the docking station. Technically this is realized by creating an\n`acpid` handler.\n\n\n## Usage\n\nThis repository needs to be included in the NixOS configuration. An example\nfollows.\n\n```nix\n{ config, pkgs, ... }:\n\n{\n  imports = [\n    /path/to/nixos-thinkpad-dock\n  ];\n\n  hardware = {\n    thinkpad-dock = {\n      enable = true;\n\n      # Those are needed for xrandr.\n      environment = ''\n        export DISPLAY=:0\n        export XAUTHORITY=/home/user/.Xauthority\n      '';\n\n      # Add a second monitor while docking and remove it again.\n      dockEvent = ''\n        ${pkgs.xorg.xrandr}/bin/xrandr --output DP-2-1 --mode 1920x1080 --right-of eDP-1\n      '';\n      undockEvent = ''\n        ${pkgs.xorg.xrandr}/bin/xrandr --output DP-2-1 --off\n      '';\n    };\n  };\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxzi%2Fnixos-thinkpad-dock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxzi%2Fnixos-thinkpad-dock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxzi%2Fnixos-thinkpad-dock/lists"}