mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
add(nix): nix-darwin !
This commit is contained in:
parent
3b8c2068e9
commit
892ab68fbd
6 changed files with 110 additions and 25 deletions
|
|
@ -1,6 +1,13 @@
|
|||
{
|
||||
outputs = {...} @ inputs: let
|
||||
inherit (import ./lib.nix inputs) mkNixOSes mkHomeManagers myPackages formatter;
|
||||
inherit
|
||||
(import ./lib.nix inputs)
|
||||
mkNixOSes
|
||||
mkDarwins
|
||||
mkHomeManagers
|
||||
myPackages
|
||||
formatter
|
||||
;
|
||||
|
||||
nixosConfigurations = mkNixOSes {
|
||||
# Thinkpad
|
||||
|
|
@ -16,16 +23,6 @@
|
|||
};
|
||||
|
||||
homeConfigurations = mkHomeManagers {
|
||||
# MacBook Pro 2021
|
||||
bismuth = {
|
||||
system = "aarch64-darwin";
|
||||
settings = {
|
||||
extraLanguageServers.enable = true;
|
||||
extraUtils.enable = true;
|
||||
cmus.enable = true;
|
||||
universityTools.enable = true;
|
||||
};
|
||||
};
|
||||
# MacBook Air 2014
|
||||
tungsten = {
|
||||
system = "x86_64-darwin";
|
||||
|
|
@ -36,8 +33,21 @@
|
|||
# Oracle cloud
|
||||
oracle.system = "aarch64-linux";
|
||||
};
|
||||
|
||||
darwinConfigurations = mkDarwins {
|
||||
# MacBook Pro 2021
|
||||
bismuth = {
|
||||
system = "aarch64-darwin";
|
||||
settings = {
|
||||
extraLanguageServers.enable = true;
|
||||
extraUtils.enable = true;
|
||||
cmus.enable = true;
|
||||
universityTools.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
myPackages // formatter // {inherit nixosConfigurations homeConfigurations;};
|
||||
myPackages // formatter // {inherit nixosConfigurations homeConfigurations darwinConfigurations;};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
|
|
@ -46,6 +56,10 @@
|
|||
url = "github:nix-community/home-manager/release-23.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-darwin = {
|
||||
url = "github:LnL7/nix-darwin";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
wired.url = "github:Toqozz/wired-notify";
|
||||
agenix.url = "github:ryantm/agenix/0.15.0";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue