run nixfmt

This commit is contained in:
insects 2024-08-21 15:15:04 +02:00
parent 477bce6897
commit 9415d40508
41 changed files with 384 additions and 262 deletions

View file

@ -1,5 +1,6 @@
# Configures programs that primarily run via the command line
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./fish.nix # fish shell configuration
./neovim.nix # neovim configuration, my "escape" editor

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
programs.direnv = {
enable = true;
nix-direnv.enable = true;

View file

@ -116,13 +116,12 @@
}
{
name = "plugin-foreign-env";
src = pkgs.fetchFromGitHub
{
owner = "oh-my-fish";
repo = "plugin-foreign-env";
rev = "7f0cf099ae1e1e4ab38f46350ed6757d54471de7";
sha256 = "0d16mdgjdwln41zk44qa5vcilmlia4w15r8z2rc3p49i5ankksg3";
};
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-foreign-env";
rev = "7f0cf099ae1e1e4ab38f46350ed6757d54471de7";
sha256 = "0d16mdgjdwln41zk44qa5vcilmlia4w15r8z2rc3p49i5ankksg3";
};
}
];
};

View file

@ -1,3 +1,4 @@
{ ... }: {
{ ... }:
{
programs.lazygit.enable = true;
}

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
_1password-gui
];

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
programs.alacritty = {
enable = true;
settings = {

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./font.nix
./firefox.nix

View file

@ -1,11 +1,12 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
fira
];
programs.firefox = {
enable = true;
profiles ={
profiles = {
"user" = {
userChrome = ''
* {

View file

@ -1,9 +1,10 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
fontProfiles = {
enable = true;
monospace = {
family = "JetBrains Mono Nerd Font";
package = pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; };
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
};
regular = {
family = "Fira Sans";

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
gtk = {
enable = true;
};

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
vscode
];

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./mako.nix
./wofi.nix

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
services.mako = {
enable = true;
font = lib.mkForce "${config.fontProfiles.regular.family} 12";

View file

@ -1,4 +1,5 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
{
# additional deps for cava support
home.packages = with pkgs; [
iniparser
@ -73,61 +74,63 @@
};
};
style = let
inherit (config.lib.stylix.colors) withHashtag;
in ''
* {
font-family: ${config.fontProfiles.bitmap.family}, ${config.fontProfiles.monospace.family};
font-size: 11pt;
padding: 0;
}
style =
let
inherit (config.lib.stylix.colors) withHashtag;
in
''
* {
font-family: ${config.fontProfiles.bitmap.family}, ${config.fontProfiles.monospace.family};
font-size: 11pt;
padding: 0;
}
window#waybar {
padding: 0;
border-radius: 0.5em;
}
window#waybar {
padding: 0;
border-radius: 0.5em;
}
#workspaces {
transition: background-color .5s, color .5s;
}
#workspaces {
transition: background-color .5s, color .5s;
}
#workspaces button {
padding: 0 6px;
}
#workspaces button {
padding: 0 6px;
}
#workspaces button.active,
#workspaces button.focused {
background-color: ${withHashtag.base05};
color: ${withHashtag.base00};
}
#workspaces button.active,
#workspaces button.focused {
background-color: ${withHashtag.base05};
color: ${withHashtag.base00};
}
#cpu,
#memory {
color: ${withHashtag.base04};
}
#cpu,
#memory {
color: ${withHashtag.base04};
}
#mpris {
font-size: 10pt;
margin-right: 6px;
}
#mpris {
font-size: 10pt;
margin-right: 6px;
}
#tray {
padding: 0 5px;
background-color: ${withHashtag.base02};
}
#tray {
padding: 0 5px;
background-color: ${withHashtag.base02};
}
#pulseaudio {
color: ${withHashtag.base0D};
}
#pulseaudio {
color: ${withHashtag.base0D};
}
#network {
color: ${withHashtag.base0C};
}
#network {
color: ${withHashtag.base0C};
}
#language {
color: ${withHashtag.base02};
margin-left: 10px;
}
'';
#language {
color: ${withHashtag.base02};
margin-left: 10px;
}
'';
};
}

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
programs.wofi = {
enable = true;
settings = {

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./mise.nix
./php.nix

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
python3 # needed for installing node.js
];

View file

@ -1,6 +1,7 @@
# install php from nixpkgs because mise wants to compile it from source,
# and that's a whole can of beans i'm not getting into
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
php83
];