[feat] Alejandra formatting

This commit is contained in:
uttarayan21
2024-03-21 21:35:51 +05:30
parent e8434fadf5
commit d5dc5a79d3
33 changed files with 699 additions and 589 deletions

View File

@@ -1,12 +1,12 @@
{ pkgs, ... }: {
imports = [ ./yabai.nix ./skhd.nix ];
{pkgs, ...}: {
imports = [./yabai.nix ./skhd.nix];
environment.systemPackages = with pkgs; [ nix neovim ];
environment.systemPackages = with pkgs; [nix neovim];
nix = {
settings = {
experimental-features = "nix-command flakes repl-flake";
max-jobs = 8;
trusted-users = [ "root" "fs0c131y" ];
trusted-users = ["root" "fs0c131y"];
};
extraOptions = ''
build-users-group = nixbld

View File

@@ -1,27 +1,35 @@
{ devices, inputs, overlays, home-manager, nix-darwin, ... }:
{
devices,
inputs,
overlays,
home-manager,
nix-darwin,
...
}:
builtins.listToAttrs (builtins.map (device: {
name = device.name;
value = nix-darwin.lib.darwinSystem {
system = device.system;
modules = [
{
nixpkgs.overlays = overlays;
# nixpkgs.hostPlatform.config = device.system;
}
./configuration.nix
home-manager.darwinModules.home-manager
{
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
inherit device;
name = device.name;
value = nix-darwin.lib.darwinSystem {
system = device.system;
modules = [
{
nixpkgs.overlays = overlays;
# nixpkgs.hostPlatform.config = device.system;
}
./configuration.nix
home-manager.darwinModules.home-manager
{
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
inherit device;
};
users.${device.user}.imports = [../common/home.nix];
};
users.${device.user}.imports = [ ../common/home.nix ];
};
}
];
};
}) devices)
}
];
};
})
devices)

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
services = {
skhd = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ ... }: {
{...}: {
services = {
yabai = {
enable = true;