mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-10 00:25:57 +08:00
macbook factory reset
This commit is contained in:
parent
836e23cbee
commit
7ccbee26cc
4 changed files with 25 additions and 35 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ${{ matrix.system }}
|
||||
strategy:
|
||||
matrix:
|
||||
system: [x86_64-linux, aarch64-darwin]
|
||||
system: [x86_64-linux]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: om ci run --systems "${{ matrix.system }}"
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
# Configuration for my M1 Macbook Max as headless server
|
||||
{ flake, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (flake) inputs;
|
||||
inherit (inputs) self;
|
||||
in
|
||||
{
|
||||
nixos-unified.sshTarget = "srid@infinitude";
|
||||
|
||||
imports = [
|
||||
self.darwinModules.default
|
||||
(self + /modules/nixos/shared/github-runner.nix)
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
networking.hostName = "infinitude";
|
||||
|
||||
# Using GUI app; so disable this.
|
||||
# services.tailscale.enable = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.tart ];
|
||||
|
||||
system.keyboard = {
|
||||
enableKeyMapping = true;
|
||||
remapCapsLockToControl = true;
|
||||
};
|
||||
|
||||
ids.gids.nixbld = 350;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 4;
|
||||
}
|
||||
24
configurations/darwin/macci.nix
Normal file
24
configurations/darwin/macci.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Configuration for my Mac CI VM
|
||||
{ flake, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (flake) inputs;
|
||||
inherit (inputs) self;
|
||||
in
|
||||
{
|
||||
nixos-unified.sshTarget = "srid@macci";
|
||||
|
||||
imports = [
|
||||
self.darwinModules.default
|
||||
(self + /modules/nixos/shared/github-runner.nix)
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
networking.hostName = "macci";
|
||||
|
||||
# ids.gids.nixbld = 350;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 4;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue