This commit is contained in:
parent
85246af424
commit
3aeeb69c2b
24
darwin/jakehillion-mba-m2-15/configuration.nix
Normal file
24
darwin/jakehillion-mba-m2-15/configuration.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
system.stateVersion = 4;
|
||||||
|
|
||||||
|
networking.hostName = "jakehillion-mba-m2-15";
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
useDaemon = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
security.pam.enableSudoTouchIdAuth = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
htop
|
||||||
|
mosh
|
||||||
|
neovim
|
||||||
|
nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
13
flake.lock
13
flake.lock
@ -2,7 +2,9 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"agenix": {
|
"agenix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": "darwin",
|
"darwin": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
"home-manager": [
|
"home-manager": [
|
||||||
"home-manager"
|
"home-manager"
|
||||||
],
|
],
|
||||||
@ -28,21 +30,19 @@
|
|||||||
"darwin": {
|
"darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"agenix",
|
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700795494,
|
"lastModified": 1725189302,
|
||||||
"narHash": "sha256-gzGLZSiOhf155FW7262kdHo2YDeugp3VuIFb4/GGng0=",
|
"narHash": "sha256-IhXok/kwQqtusPsoguQLCHA+h6gKvgdCrkhIaN+kByA=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d",
|
"rev": "7c4b53a7d9f3a3df902b3fddf2ae245ef20ebcda",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"ref": "master",
|
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -172,6 +172,7 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"darwin": "darwin",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
|
29
flake.nix
29
flake.nix
@ -7,8 +7,12 @@
|
|||||||
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
darwin.url = "github:lnl7/nix-darwin";
|
||||||
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
agenix.inputs.darwin.follows = "darwin";
|
||||||
agenix.inputs.home-manager.follows = "home-manager";
|
agenix.inputs.home-manager.follows = "home-manager";
|
||||||
|
|
||||||
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
||||||
@ -21,16 +25,19 @@
|
|||||||
|
|
||||||
description = "Hillion Nix flake";
|
description = "Hillion Nix flake";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-hardware, flake-utils, agenix, home-manager, home-manager-unstable, impermanence, ... }@inputs: {
|
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-hardware, flake-utils, agenix, home-manager, home-manager-unstable, darwin, impermanence, ... }@inputs:
|
||||||
nixosConfigurations =
|
|
||||||
let
|
let
|
||||||
fqdns = builtins.attrNames (builtins.readDir ./hosts);
|
|
||||||
getSystemOverlays = system: nixpkgsConfig: [
|
getSystemOverlays = system: nixpkgsConfig: [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
|
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
|
||||||
"storj" = final.callPackage ./pkgs/storj.nix { };
|
"storj" = final.callPackage ./pkgs/storj.nix { };
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations =
|
||||||
|
let
|
||||||
|
fqdns = builtins.attrNames (builtins.readDir ./hosts);
|
||||||
mkHost = fqdn:
|
mkHost = fqdn:
|
||||||
let
|
let
|
||||||
system = builtins.readFile ./hosts/${fqdn}/system;
|
system = builtins.readFile ./hosts/${fqdn}/system;
|
||||||
@ -62,6 +69,22 @@
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
nixpkgs.lib.genAttrs fqdns mkHost;
|
nixpkgs.lib.genAttrs fqdns mkHost;
|
||||||
|
|
||||||
|
darwinConfigurations = {
|
||||||
|
jakehillion-mba-m2-15 = darwin.lib.darwinSystem {
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
specialArgs = inputs;
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./darwin/jakehillion-mba-m2-15/configuration.nix
|
||||||
|
|
||||||
|
({ config, ... }: {
|
||||||
|
nixpkgs.overlays = getSystemOverlays "aarch64-darwin" config.nixpkgs.config;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
} // flake-utils.lib.eachDefaultSystem (system: {
|
} // flake-utils.lib.eachDefaultSystem (system: {
|
||||||
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user