🔨 update and add darwin-local script
This commit is contained in:
parent
bc53e58cfa
commit
bd132825d4
18
flake.lock
generated
18
flake.lock
generated
@ -109,11 +109,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1653943687,
|
"lastModified": 1654113406,
|
||||||
"narHash": "sha256-xXW9t24HLf89+n/92kOqRRfOBE3KDna+9rAOefs5WSQ=",
|
"narHash": "sha256-70esZvhal+FsyU89mJRcAb+cDGHKt0sgZ6MlRr9Cplg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8f3e26705178cc8c1d982d37d881fc0d5b5b1837",
|
"rev": "684e85d01d333be91c4875baebb05b93c7d2ffaa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -172,11 +172,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1654007547,
|
"lastModified": 1654126564,
|
||||||
"narHash": "sha256-G812EeXZeGeGjkAvbTleGwcKFCGxdLOQb9aViOWASPc=",
|
"narHash": "sha256-sgDXDKGmUG4h7OPDOHyQggFQ08ZqVzUIPi8351yhugY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5643714dea562f0161529ab23058562afeff46d0",
|
"rev": "f1c9c23aad972787f00f175651e4cb0d7c7fd5ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -186,11 +186,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1653931853,
|
"lastModified": 1654019511,
|
||||||
"narHash": "sha256-O3wncIouj9x7gBPntzHeK/Hkmm9M1SGlYq7JI7saTAE=",
|
"narHash": "sha256-s3fcwUxa2rV2ZmSbdOtisNmXqeqnF9IFrvhPQL5GCBU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f1c167688a6f81f4a51ab542e5f476c8c595e457",
|
"rev": "692517bf851f2d8d999f0ad50f53fa1d2dd5c8f9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
10
flake.nix
10
flake.nix
@ -66,12 +66,18 @@
|
|||||||
in
|
in
|
||||||
flake-utils.lib.eachDefaultSystem
|
flake-utils.lib.eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let pkgs = nixpkgs.legacyPackages.${system};
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
darwin-local = pkgs.writeScriptBin "darwin-local" ''
|
||||||
|
#!${pkgs.stdenv.shell}
|
||||||
|
nix build .#darwinConfigurations.$(hostname -s).system
|
||||||
|
./result/sw/bin/darwin-rebuild switch --flake .
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
name = "athens";
|
name = "athens";
|
||||||
buildInputs = [ deploy-rs.packages.${system}.deploy-rs pkgs.nixpkgs-fmt pkgs.sops ];
|
buildInputs = [ darwin-local deploy-rs.packages.${system}.deploy-rs pkgs.nixpkgs-fmt pkgs.sops ];
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
"google-chrome"
|
"google-chrome"
|
||||||
"gpg-suite"
|
"gpg-suite"
|
||||||
"hazel"
|
"hazel"
|
||||||
|
"home-assistant"
|
||||||
"ipfs"
|
"ipfs"
|
||||||
"iterm2"
|
"iterm2"
|
||||||
"keybase"
|
"keybase"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
containers = {
|
containers = {
|
||||||
home-assistant = {
|
home-assistant = {
|
||||||
image = "ghcr.io/home-assistant/home-assistant:2022.5.4";
|
image = "ghcr.io/home-assistant/home-assistant:2022.5.5";
|
||||||
volumes =
|
volumes =
|
||||||
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
|
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
|
||||||
extraOptions = [ "--privileged" "--network=host" ];
|
extraOptions = [ "--privileged" "--network=host" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user