run nixfmt on repo

This commit is contained in:
Salar Rahmanian 2024-05-18 11:31:35 -07:00
parent 29c4ce7acd
commit 276ceac3d5
6 changed files with 93 additions and 85 deletions

View file

@ -1,4 +1 @@
{
allowUnfree = true;
}
{ allowUnfree = true; }

View file

@ -7,45 +7,57 @@
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = github:nix-community/nur;
nur.url = "github:nix-community/nur";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nix-darwin, home-manager, nur, nixpkgs, ... }:
outputs =
{
self,
nix-darwin,
home-manager,
nur,
nixpkgs,
...
}:
let
homeManagerConfFor = config: { ... }: {
homeManagerConfFor =
config:
{ ... }:
{
nixpkgs.overlays = [ nur.overlay ];
imports = [ config ];
};
m3maxConfiguration = { pkgs, ... }: {
environment.systemPackages = with pkgs;
[
home-manager
];
m3maxConfiguration =
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ home-manager ];
fonts = {
fontDir.enable = true;
fonts = with pkgs; [
fira-code
];
fonts = with pkgs; [ fira-code ];
};
services.nix-daemon.enable = true;
nix = {
nixPath = nixpkgs.lib.mkForce [
"nixpkgs=${nixpkgs}"
];
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=${nixpkgs}" ];
package = pkgs.nixFlakes;
settings = {
experimental-features = "nix-command flakes";
extra-platforms = [ "x86_64-darwin" "aarch64-darwin" ];
trusted-users = [ "root" "salar" ];
extra-platforms = [
"x86_64-darwin"
"aarch64-darwin"
];
trusted-users = [
"root"
"salar"
];
};
distributedBuilds = false;
};
@ -76,7 +88,9 @@
home-manager.users.salar = homeManagerConfFor ./home.nix;
}
];
specialArgs = { inherit nixpkgs; };
specialArgs = {
inherit nixpkgs;
};
};
darwinPackages = self.darwinConfigurations.salarm3max.pkgs;

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
# Let Home Manager install and manage itself.
@ -6,7 +11,9 @@
imports = (import ./programs);
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"discord"
"slack"
"vscode"
@ -54,7 +61,7 @@
neovim
niv
nix-index
nixfmt
nixfmt-rfc-style
nix-prefetch-git
nodejs
nodePackages.pyright
@ -110,9 +117,7 @@
programs.darcs = {
enable = true;
author = [
"Salar Rahmanian <code@softinio.com>"
];
author = [ "Salar Rahmanian <code@softinio.com>" ];
boring = [
"^.idea$"
"^.direnv$"
@ -353,4 +358,3 @@
rev = "12c5e919e829c067ba795fe7f1e02037cbc0b4e9";
};
}

View file

@ -22,16 +22,9 @@ in
plugin = tmuxPlugins.continuum;
extraConfig = "set -g @continuum-restore 'on'";
}
{
plugin = tmuxPlugins.sensible;
}
{
plugin = tmuxPlugins.vim-tmux-navigator;
}
{
plugin = tmuxPlugins.onedark-theme;
}
{ plugin = tmuxPlugins.sensible; }
{ plugin = tmuxPlugins.vim-tmux-navigator; }
{ plugin = tmuxPlugins.onedark-theme; }
];
};
}