diff --git a/flake.lock b/flake.lock index e520733..93f4685 100644 --- a/flake.lock +++ b/flake.lock @@ -21,18 +21,39 @@ "type": "github" } }, + "nix-darwin": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1781772065, + "narHash": "sha256-xIbRSwDB1GBAUsWsQZUjudGfAGQt3BOpsWaO/ugVa4w=", + "owner": "nix-darwin", + "repo": "nix-darwin", + "rev": "adda04f0bf4819575b1978c2f8d78401b3c2be12", + "type": "github" + }, + "original": { + "owner": "nix-darwin", + "ref": "nix-darwin-26.05", + "repo": "nix-darwin", + "type": "github" + } + }, "nixpkgs": { "locked": { - "lastModified": 1778737229, - "narHash": "sha256-6xWoytx8jFW4PF1GjRm/i/53trbpKGfz6zjzQGBr4cI=", + "lastModified": 1781808408, + "narHash": "sha256-0sOb6OIaD/K1zHxBhpmlKvkADfe0n8+l4Jj2e1Q0r3w=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d7a713c0b7e47c908258e71cba7a2d77cc8d71d5", + "rev": "e8210c649915deed7080033cdbabcc19e40bb899", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-25.11", + "ref": "nixos-26.05", "repo": "nixpkgs", "type": "github" } @@ -60,6 +81,7 @@ }, "root": { "inputs": { + "nix-darwin": "nix-darwin", "nixpkgs": "nixpkgs", "nur": "nur", "secrets": "secrets", diff --git a/flake.nix b/flake.nix index b3e69a5..530e416 100644 --- a/flake.nix +++ b/flake.nix @@ -2,11 +2,15 @@ description = "Nyx's Nix/Nixos configs"; inputs = { - nixpkgs = { url = "github:nixos/nixpkgs/nixos-25.11"; }; + nixpkgs = { url = "github:nixos/nixpkgs/nixos-26.05"; }; nur = { url = "github:nix-community/NUR"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-darwin = { + url = "github:nix-darwin/nix-darwin/nix-darwin-26.05"; + inputs.nixpkgs.follows = "nixpkgs"; + }; sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; @@ -17,7 +21,7 @@ }; }; - outputs = { self, nixpkgs, ... } @ inputs: + outputs = { self, nixpkgs, nix-darwin, ... } @ inputs: let blades = import ./hosts/servers/blades/systems.nix { inherit inputs; }; in @@ -52,5 +56,12 @@ }; } // blades; + darwinConfigurations."Artemis" = nix-darwin.lib.darwinSystem { + modules = [ + # ./hosts/base.nix + ./hosts/artemis + ]; + specialArgs = { inherit inputs; }; + }; }; } \ No newline at end of file diff --git a/hosts/artemis/default.nix b/hosts/artemis/default.nix new file mode 100644 index 0000000..f01f290 --- /dev/null +++ b/hosts/artemis/default.nix @@ -0,0 +1,8 @@ +{ pkgs, lib, inputs, ... }: + +{ + environment.systemPackages = with pkgs; [ + vscodium + ]; + security.pam.enableSudoTouchIdAuth = true; +} \ No newline at end of file