{"id":13491769,"url":"https://github.com/ecklf/dotfiles","last_synced_at":"2025-10-25T15:37:40.800Z","repository":{"id":46584509,"uuid":"65241935","full_name":"ecklf/dotfiles","owner":"ecklf","description":"Darwin / NixOS Configurations","archived":false,"fork":false,"pushed_at":"2025-04-29T08:02:57.000Z","size":528,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-29T09:22:41.417Z","etag":null,"topics":["dotfiles","macos","neovim","nixos"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecklf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2016-08-08T21:49:31.000Z","updated_at":"2025-04-29T08:03:00.000Z","dependencies_parsed_at":"2023-02-09T23:00:17.460Z","dependency_job_id":"d5ba28fb-756f-4a11-b054-f93d714f952a","html_url":"https://github.com/ecklf/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecklf%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecklf","download_url":"https://codeload.github.com/ecklf/dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252850787,"owners_count":21814018,"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","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":["dotfiles","macos","neovim","nixos"],"created_at":"2024-07-31T19:01:00.023Z","updated_at":"2025-10-25T15:37:40.740Z","avatar_url":"https://github.com/ecklf.png","language":"Nix","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"# Darwin / NixOS Configurations\n\n## Darwin\n\n### Setup \n\n**1: Checklist**\n\nRun the following checklist script to prepare your system for using this repository:\n\n```sh\n./scripts/init-macos.sh\n```\n\n**2: Configure SSH**\n\nGenerate a new one if needed:\n```sh\ncd ~/.ssh\nssh-keygen -C \"your_email@example.com\"\nssh-add ~/.ssh/id_ed25519\n```\n\nAdd your key to `~/.ssh/config` and to your GitHub account:\n```\nHost github.com\n  IdentityFile ~/.ssh/id_ed25519\n```\n\n### Using this repository\n\n\n\u003e [!IMPORTANT]  \n\u003e For the very first run, `darwin-rebuild` won't be installed in your path\n\u003e \n\u003e Values for `{SYSTEM}` can be found in `darwinConfigurations` in `flake.nix`\n\u003e ```sh\n\u003e nix run nix-darwin --extra-experimental-features flakes --extra-experimental-features nix-command -- switch --flake ~/dotfiles#{SYSTEM}\n\u003e ```\n\n```sh\n# Build configuration\ndarwin-rebuild build --flake ~/dotfiles#{SYSTEM}\n# Build and switch configuration\ndarwin-rebuild switch --flake ~/dotfiles#{SYSTEM}\n```\n\n## NixOS\n\n\u003e [!NOTE]  \n\u003e Also see the official guide:\n\u003e https://nixos.wiki/wiki/NixOS_Installation_Guide\n\n### Setup\n\n**1: Download [ISO image](https://nixos.org/download/#nixos-iso), flash it to USB, and boot**\n\n**2: Setup Wireless (optional)**\n```sh\nsudo systemctl start wpa_supplicant\nwpa_cli\n\u003e scan\n\u003e scan_results\n\u003e add_network\n\u003e 0\n\u003e set_network 0 ssid \"NETWORK_SSID\"\n\u003e set_network 0 psk \"NETWORK_SECRET\"\n\u003e enable_network 0\n\u003e quit\nip a\nping google.com\n```\n\n**3: Partition Disks**\n\nThese steps are for a UEFI system with GPT partitioning. Adjust as needed.\n\n\u003e [!IMPORTANT]  \n\u003e Ensure the label steps for `NIXROOT` and `NIXBOOT` are not skipped as they are used in the configuration.\n\n```sh\n# Identify disk\nlsblk\n# Partition disk\nsudo fdisk /dev/sdX\n\u003e g (gpt disk label)\n\u003e n\n\u003e 1 (partition number [1/128])\n\u003e 2048 first sector\n\u003e +500M last sector (boot sector size)\n\u003e t\n\u003e 1 (EFI System)\n\u003e n\n\u003e 2\n\u003e default (fill up partition)\n\u003e default (fill up partition)\n\u003e w (write)\n# Create file systems\nsudo mkfs.fat -F 32 /dev/sdX1\nsudo fatlabel /dev/sdX1 NIXBOOT\nsudo mkfs.ext4 /dev/sdX2 -L NIXROOT\nsudo mount /dev/disk/by-label/NIXROOT /mnt\nsudo mkdir -p /mnt/boot\nsudo mount /dev/disk/by-label/NIXBOOT /mnt/boot\n# Create swap file\nsudo dd if=/dev/zero of=/mnt/.swapfile bs=1024 count=2097152 (2GB size)\nsudo chmod 600 /mnt/.swapfile\nsudo mkswap /mnt/.swapfile\nsudo swapon /mnt/.swapfile\n```\n\n**4: Installation**\n```sh\nsudo nixos-generate-config --root /mnt\ncd /mnt\nsudo nixos-install\n```\n\n**5: Add nix channels**\n```sh\n# Add home-manager channel (update version if needed)\nsudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager\nsudo nix-channel --update\n```\n\n### Using this repository\n```sh\n# Build configuration (for {SYSTEM} see `nixosConfigurations` in flake.nix)\nsudo nixos-rebuild build --flake ~/dotfiles#{SYSTEM}\n# Build and switch configuration (for {SYSTEM} see `nixosConfigurations` in flake.nix)\nsudo nixos-rebuild switch --flake ~/dotfiles#{SYSTEM}\n```\n\n### Post Install\n\n\u003e [!IMPORTANT]  \n\u003e Update your user password\n\u003e ```sh\n\u003e sudo passwd\n\u003e ```\n\nSet up Samba if used by configuration:\n\n```sh\n# See user info\nsudo pdbedit -L -v\n# Add samba password\nsudo smbpasswd -a $(whoami) \n# Debug samba issues\nsudo systemctl status mnt-share.mount\n```\n\n## Updating inputs\n\n```sh\n# Upgrading nix — https://nix.dev/manual/nix/2.22/installation/upgrading\n# Updating flake inputs\nnix flake update \nnix flake update \u003cinput\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecklf%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecklf%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecklf%2Fdotfiles/lists"}