Formats files
This commit is contained in:
parent
cac568aa82
commit
8904d08571
@ -1,4 +1 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [./nix.nix ./system.nix];
|
||||
}
|
||||
{ pkgs, inputs, ... }: { imports = [ ./nix.nix ./system.nix ]; }
|
||||
|
@ -40,8 +40,7 @@
|
||||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
darwinConfigurations."Abhinavs-MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs; };
|
||||
|
5
nix.nix
5
nix.nix
@ -1,5 +1,4 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
services.nix-daemon.enable = true;
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
@ -26,7 +25,7 @@
|
||||
max-jobs = 6;
|
||||
min-free = 128000000;
|
||||
warn-dirty = false;
|
||||
trusted-users = ["@admin"];
|
||||
trusted-users = [ "@admin" ];
|
||||
};
|
||||
};
|
||||
nixpkgs = {
|
||||
|
@ -12,23 +12,8 @@ let
|
||||
statix
|
||||
cachix
|
||||
];
|
||||
networkingPackages = with pkgs; [
|
||||
curl
|
||||
dig
|
||||
httpie
|
||||
openssh
|
||||
mosh
|
||||
];
|
||||
cmdLineUtilPackages = with pkgs; [
|
||||
bash
|
||||
broot
|
||||
coreutils-full
|
||||
fd
|
||||
gnugrep
|
||||
less
|
||||
ranger
|
||||
tree
|
||||
];
|
||||
networkingPackages = with pkgs; [ curl dig httpie openssh mosh ];
|
||||
cmdLineUtilPackages = with pkgs; [ bash broot coreutils-full fd gnugrep less ranger tree ];
|
||||
miscPackages = with pkgs; [
|
||||
binutils
|
||||
cabal2nix
|
||||
|
@ -156,7 +156,7 @@ in {
|
||||
"[json]" = { editor.defaultFormatter = "esbenp.prettier-vscode"; };
|
||||
"[python]" = { editor.defaultFormatter = "ms-python.black-formatter"; };
|
||||
|
||||
black-formatter.args = ["--line-length" "100"];
|
||||
black-formatter.args = [ "--line-length" "100" ];
|
||||
};
|
||||
|
||||
keybindings = [
|
||||
|
@ -1,7 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
rc = pkgs.callPackage ./report-hm-changes.nix { inherit config pkgs; };
|
||||
in {
|
||||
home.packages = [ rc ];
|
||||
}
|
||||
let rc = pkgs.callPackage ./report-hm-changes.nix { inherit config pkgs; };
|
||||
in { home.packages = [ rc ]; }
|
||||
|
@ -1,9 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
profiles = "/nix/var/nix/profiles/per-user/${config.home.username}/profile-*-link";
|
||||
in
|
||||
pkgs.writeShellScriptBin "report-hm-changes" ''
|
||||
let profiles = "/nix/var/nix/profiles/per-user/${config.home.username}/profile-*-link";
|
||||
in pkgs.writeShellScriptBin "report-hm-changes" ''
|
||||
# Disable nvd if there are less than 2 hm profiles.
|
||||
if [ $(/bin/ls -d1v ${profiles} 2>/dev/null | wc -l) -lt 2 ]; then
|
||||
echo "Skipping changes report..."
|
||||
|
@ -1,5 +1,4 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
{ pkgs, inputs, ... }: {
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
system = {
|
||||
defaults = {
|
||||
|
Loading…
Reference in New Issue
Block a user