{"id":16345700,"url":"https://github.com/defelo/nixos","last_synced_at":"2025-03-23T00:32:47.474Z","repository":{"id":38428075,"uuid":"380176712","full_name":"Defelo/nixos","owner":"Defelo","description":"My NixOS configuration","archived":false,"fork":false,"pushed_at":"2024-10-29T08:43:25.000Z","size":33412,"stargazers_count":13,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T09:56:35.921Z","etag":null,"topics":["build-with-buildbot"],"latest_commit_sha":null,"homepage":"","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/Defelo.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":"2021-06-25T08:38:49.000Z","updated_at":"2024-10-29T08:43:29.000Z","dependencies_parsed_at":"2024-03-16T16:35:44.513Z","dependency_job_id":"0db9489f-f6ec-4484-a05f-52e6937e170e","html_url":"https://github.com/Defelo/nixos","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/Defelo%2Fnixos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defelo%2Fnixos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defelo%2Fnixos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defelo%2Fnixos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Defelo","download_url":"https://codeload.github.com/Defelo/nixos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["build-with-buildbot"],"created_at":"2024-10-11T00:32:59.632Z","updated_at":"2025-03-23T00:32:46.202Z","avatar_url":"https://github.com/Defelo.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nixos\nMy NixOS configuration\n\n## Installation instructions\n1. Boot the [minimal NixOS ISO image](https://nixos.org/download.html#nixos-iso)\n2. Create a GPT partition table with the following partitions:\n    - `/dev/EFI_PARTITION`: EFI system partition (type: EFI System, size: 1G)\n    - `/dev/LUKS_PARTITION`: Encrypted root partition (type: Linux filesystem)\n3. Create and open the LUKS container:\n    ```bash\n    cryptsetup -yv luksFormat /dev/LUKS_PARTITION\n    cryptsetup open /dev/LUKS_PARTITION root\n    ```\n4. Create and mount btrfs subvolumes:\n    ```bash\n    mkfs.btrfs -f /dev/mapper/root\n\n    mount -m -o noatime,compress=zstd /dev/mapper/root /mnt\n    btrfs subvolume create /mnt/@data\n    btrfs subvolume create /mnt/@data/.snapshots\n    btrfs subvolume create /mnt/@cache\n    btrfs subvolume create /mnt/@cache/.snapshots\n    btrfs subvolume create /mnt/@nix\n    btrfs subvolume create /mnt/@swap\n    umount /mnt\n\n    mount -m -o size=100%,mode=755 -t tmpfs tmpfs /mnt\n    mount -m -o noatime,compress=zstd,subvol=@data /dev/mapper/root /mnt/persistent/data\n    mount -m -o noatime,compress=zstd,subvol=@cache /dev/mapper/root /mnt/persistent/cache\n    mount -m -o noatime,compress=zstd,subvol=@nix /dev/mapper/root /mnt/nix\n    mount -m -o noatime,compress=zstd,subvol=@swap /dev/mapper/root /mnt/swap\n    ```\n5. Create and activate swapfile:\n    ```bash\n    btrfs filesystem mkswapfile -s 16G /mnt/swap/swapfile\n    btrfs inspect-internal map-swapfile -r /mnt/swap/swapfile  # resume_offset\n    swapon /mnt/swap/swapfile\n    ```\n6. Format and mount EFI system partition:\n    ```bash\n    mkfs.vfat /dev/EFI_PARTITION\n    mount -m -o umask=0077 /dev/EFI_PARTITION /mnt/boot\n    ```\n7. Install git:\n    ```bash\n    nix-env -iA nixos.git\n    ```\n8. Clone this repository:\n    ```bash\n    mkdir -p /mnt/persistent/data/home/felix/\n    cd /mnt/persistent/data/home/felix/\n    git clone https://github.com/Defelo/nixos.git\n    cd nixos\n    ```\n9. Create a new or modify an existing host (don't forget to add new files to git).\n10. Install the system and reboot:\n    ```bash\n    nixos-install --flake .#HOSTNAME --no-channel-copy --no-root-password\n    reboot\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefelo%2Fnixos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefelo%2Fnixos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefelo%2Fnixos/lists"}