NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix CI build failures and update README

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+47 -11
+14 -9
.github/workflows/update-flakes.yml
··· 1 1 name: Nix Flake Builds 2 + 2 3 on: 3 4 schedule: 4 - - cron: "30 */6 * * *" 5 + - cron: "30 6 * * 5" 5 6 push: 6 7 branches: [main] 7 8 9 + permissions: 10 + contents: write 11 + actions: write 12 + 8 13 jobs: 9 14 update-lockfile: 10 - permissions: 11 - contents: write 12 - actions: write 13 15 runs-on: ubuntu-latest 14 16 steps: 15 17 - uses: actions/checkout@v2 ··· 21 23 22 24 - name: Update flake 23 25 run: | 24 - echo ::addgroup::Updating lockfile 26 + echo ::group::Updating lockfile 25 27 nix flake update 26 28 echo ::endgroup:: 27 29 28 - echo ::addgroup::Metadata 30 + echo ::group::Metadata 29 31 nix flake metadata 30 32 echo ::endgroup:: 31 33 ··· 34 36 git config --global user.name "RecapTimeBot" 35 37 git config --global user.email "recaptimebot@gmail.com" 36 38 git add flake.lock 37 - git commit -m "Update flake.lock" || echo "No changes to commit" 39 + git commit -m "Update flake.lock [skip-ci]" || echo "No changes to commit" 38 40 git push 39 41 build-iso: 42 + concurrency: 43 + cancel-in-progress: false 44 + group: recoverykit-iso-builds 40 45 needs: [update-lockfile] 41 46 name: Build recovery ISO 42 47 runs-on: ubuntu-latest ··· 54 59 55 60 - run: | 56 61 mkdir dist 57 - echo ::addgroup::Building amd64 minimal ISO file 62 + echo ::group::Building amd64 minimal ISO file 58 63 nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage --verbose --show-trace 59 - cp result/iso/*.iso ./out/ -rv 64 + cp result/iso/*.iso ./dist/ -rv 60 65 echo ::endgroup 61 66 62 67 - name: Upload as artifact
+33 -2
README.md
··· 3 3 This is @ajhalili2006's NixOS + Home Manager configuration for his laptop 4 4 and homelabs, in sync with the [nixpkgs-specific dotfiles repository]. 5 5 6 - [dotfiles repository]: https://github.com/andreijiroh-dev/dotfiles/tree/nixpkgs 6 + [nixpkgs-specific dotfiles repository]: https://github.com/andreijiroh-dev/dotfiles/tree/nixpkgs 7 + 8 + ## CI Status 9 + 10 + | Workflow Name and Type | CI Platform | Badge/Link | 11 + | --- | --- | --- | 12 + | Nix Flake Builds (push) | GitHub Actions | [![Nix Flake Builds](https://github.com/andreijiroh-dev/nixops-config/actions/workflows/update-flakes.yml/badge.svg)](https://github.com/andreijiroh-dev/nixops-config/actions/workflows/update-flakes.yml) | 13 + | Nix Flake Builds (schedule, every 06:30 UTC Saturday) | GitHub Actions | [![Nix Flake Builds](https://github.com/andreijiroh-dev/nixops-config/actions/workflows/update-flakes.yml/badge.svg?event=schedule)](https://github.com/andreijiroh-dev/nixops-config/actions/workflows/update-flakes.yml) | 7 14 8 15 ## Usage 9 16 10 - ### Updating or installing NixOS 17 + ### Installing NixOS 18 + 19 + It is recommended to install NixOS using either the Calamares-based graphical 20 + installer or manually through the `nixos-install` utility, especially 21 + when you have consider partitioning on your drive to ensure that you can roll back 22 + safely in case things go wrong. 23 + 24 + After installation, proceed with the steps in updating configuration below. 25 + 26 + ### Updating configuration or upgrading NixOS system 11 27 12 28 ```bash 29 + EDITOR="nano" # or code if you do 30 + $EDITOR <path/to/nixfile.nix> 31 + 13 32 # update the flake.lock file manually 14 33 nix flake update 15 34 ··· 25 44 26 45 # change {hostname} to something like stellapent-cier 27 46 sudo nixos-rebuild --flake .#{hostname} <switch|boot|build> 47 + ``` 48 + 49 + ### Building a minimial ISO for recovery 50 + 51 + Currently available as `amd64` (`x86-64`) Linux ISO only for now. 52 + 53 + ```bash 54 + # Build using the sources as remote 55 + nix build github:andreijiroh-dev/nixops-config/main#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage 56 + 57 + # ...or via a local clone 58 + nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage 28 59 ``` 29 60 30 61 ## License