This commit is contained in:
2025-12-06 18:03:39 +00:00
parent c2291f7557
commit 8a356de708
6 changed files with 16 additions and 21 deletions

View File

@@ -58,9 +58,7 @@
hostname: hostname:
inputs.darwin.lib.darwinSystem { inputs.darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
specialArgs = specialArgs = {
inputs
// {
inherit inputs user hostname constants; inherit inputs user hostname constants;
}; };
modules = [ modules = [
@@ -89,9 +87,7 @@
hostname: hostname:
inputs.nixpkgs.lib.nixosSystem { inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = specialArgs = {
inputs
// {
inherit inputs user hostname constants; inherit inputs user hostname constants;
}; };
modules = [ modules = [

View File

@@ -9,7 +9,7 @@
services.syncthing.settings.folders = { services.syncthing.settings.folders = {
"Projects/Personal" = { "Projects/Personal" = {
path = "/Users/${user}/Projects/Personal"; path = "/Users/${user}/Projects/Personal";
devices = ["jason" "jason"]; devices = ["tahani" "jason"];
}; };
}; };

View File

@@ -35,7 +35,7 @@
services.openssh = { services.openssh = {
enable = true; enable = true;
settings = { settings = {
PermitRootLogin = "yes"; PermitRootLogin = "prohibit-password";
PasswordAuthentication = false; PasswordAuthentication = false;
}; };
}; };

View File

@@ -17,7 +17,10 @@
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://cache.nixos.org" "https://cache.nixos.org"
]; ];
trusted-public-keys = ["cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="]; trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
}; };
gc = { gc = {
automatic = true; automatic = true;

View File

@@ -2,10 +2,8 @@
config, config,
constants, constants,
inputs, inputs,
nixvim,
pkgs, pkgs,
user, user,
sops-nix,
... ...
}: { }: {
imports = [ imports = [
@@ -16,7 +14,7 @@
./homebrew.nix ./homebrew.nix
./syncthing.nix ./syncthing.nix
./system.nix ./system.nix
sops-nix.darwinModules.sops inputs.sops-nix.darwinModules.sops
]; ];
system = { system = {
@@ -50,7 +48,7 @@
}: { }: {
_module.args = {inherit user constants inputs;}; _module.args = {inherit user constants inputs;};
imports = [ imports = [
nixvim.homeModules.nixvim inputs.nixvim.homeModules.nixvim
../home/default.nix ../home/default.nix
./home/default.nix ./home/default.nix
]; ];

View File

@@ -1,17 +1,15 @@
{ {
pkgs, pkgs,
inputs, inputs,
nixvim,
user, user,
constants, constants,
sops-nix,
... ...
}: { }: {
imports = [ imports = [
../core.nix ../core.nix
../syncthing.nix ../syncthing.nix
../tailscale.nix ../tailscale.nix
sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
]; ];
security.sudo.enable = true; security.sudo.enable = true;
@@ -74,7 +72,7 @@
}: { }: {
_module.args = {inherit user constants inputs;}; _module.args = {inherit user constants inputs;};
imports = [ imports = [
nixvim.homeModules.nixvim inputs.nixvim.homeModules.nixvim
../home/default.nix ../home/default.nix
./home/default.nix ./home/default.nix
]; ];