Skip to content

lib/flake-helpers: fix double sudo during activation #2710

lib/flake-helpers: fix double sudo during activation

lib/flake-helpers: fix double sudo during activation #2710

jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: jlumbroso/[email protected]
with:
swap-storage: false
tool-cache: true
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |-
accept-flake-config = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
authToken: ${{ secrets.CACHIX_TOKEN }}
extraPullNames: nix-community
name: thiagokokada-nix-configs
- name: 'Build Home-Manager configs for: home-linux, steamdeck'
run: |-
nix build --print-build-logs '.#homeConfigurations.home-linux.activationPackage'
nix build --print-build-logs '.#homeConfigurations.steamdeck.activationPackage'
- name: 'Build NixOS configs for: hachune-nixos, miku-nixos, mirai-nixos, sankyuu-nixos'
run: |-
nix build --print-build-logs '.#nixosConfigurations.hachune-nixos.config.system.build.toplevel'
nix build --print-build-logs '.#nixosConfigurations.miku-nixos.config.system.build.toplevel'
nix build --print-build-logs '.#nixosConfigurations.mirai-nixos.config.system.build.toplevel'
nix build --print-build-logs '.#nixosConfigurations.sankyuu-nixos.config.system.build.toplevel'
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |-
accept-flake-config = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
authToken: ${{ secrets.CACHIX_TOKEN }}
extraPullNames: nix-community
name: thiagokokada-nix-configs
- name: 'Build Home-Manager configs for: home-macos'
run: nix build --print-build-logs '.#homeConfigurations.home-macos.activationPackage'
name: build-and-cache
"on":
- push
- workflow_dispatch