services.logind.extraConfig -> services.logind.settings.Login. 1c2148c1 parent 8d9a12b0

authored by Talya Connor committed by ~talya

1
{
2
description = "Lima-based, Rosetta 2-enabled, Apple silicon (macOS/Darwin)-hosted Linux builder";
3
4
inputs = {
5
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6
};
7
8
outputs =
9
{ self, nixpkgs }:
10
let
11
darwinSystem = "aarch64-darwin";
12
linuxSystem = builtins.replaceStrings [ "darwin" ] [ "linux" ] darwinSystem;
13
in
14
{
15
packages."${linuxSystem}" =
16
let
17
pkgs = nixpkgs.legacyPackages."${linuxSystem}";
18
in
19
rec {
20
default = image;
21
22
image = pkgs.callPackage ./package.nix {
23
inherit linuxSystem nixpkgs;
24
# Optional: override default argument values passed to the derivation.
25
# Many can also be accessed through the module.
26
};
27
};
28
29
devShells."${darwinSystem}".default =
30
let
31
pkgs = nixpkgs.legacyPackages."${darwinSystem}";
32
in
33
pkgs.mkShell {
34
packages = [ pkgs.lima ];
35
};
36
37
darwinModules.default = import ./module.nix {
38
inherit linuxSystem;
39
image = self.packages."${linuxSystem}".image;
40
};
41
42
formatter."${darwinSystem}" = nixpkgs.legacyPackages."${darwinSystem}".nixfmt-rfc-style;
43
};
44
}
45