feat: Split darwin into seperate folders as well

This commit is contained in:
uttarayan21
2025-02-07 13:20:47 +05:30
parent e0d55482f3
commit ec82997408
6 changed files with 22 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ builtins.listToAttrs (builtins.map (device: {
system = device.system; system = device.system;
modules = [ modules = [
{nixpkgs.overlays = overlays;} {nixpkgs.overlays = overlays;}
./configuration.nix ./${device.name}/configuration.nix
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
{ {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@@ -3,7 +3,7 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [./yabai.nix ./skhd.nix]; imports = [./services];
# environment.systemPackages = with pkgs; [nix neovim]; # environment.systemPackages = with pkgs; [nix neovim];
nix = { nix = {
@@ -11,8 +11,14 @@
experimental-features = "nix-command flakes auto-allocate-uids"; experimental-features = "nix-command flakes auto-allocate-uids";
max-jobs = 8; max-jobs = 8;
trusted-users = ["root" "fs0c131y"]; trusted-users = ["root" "fs0c131y"];
substituters = ["https://sh.darksailor.dev"]; substituters = [
trusted-public-keys = ["mirai:bcVPoFGBZ0i7JAKMXIqLj2GY3CulLC4kP7rQyqes1RM="]; "https://nix-community.cachix.org"
"https://sh.darksailor.dev"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"mirai:bcVPoFGBZ0i7JAKMXIqLj2GY3CulLC4kP7rQyqes1RM="
];
}; };
extraOptions = '' extraOptions = ''
build-users-group = nixbld build-users-group = nixbld
@@ -53,7 +59,6 @@
programs.fish.enable = true; programs.fish.enable = true;
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
services.tailscale.enable = true;
system.stateVersion = 4; system.stateVersion = 4;
system.keyboard.enableKeyMapping = true; system.keyboard.enableKeyMapping = true;

View File

@@ -0,0 +1,7 @@
{...}: {
imports = [
./yabai.nix
./skhd.nix
./tailscale.nix
];
}

View File

@@ -0,0 +1,5 @@
{...}: {
services.tailscale = {
enable = true;
};
}