new formatting, nixvim is working

This commit is contained in:
Charlie Root 2024-05-22 14:29:45 +02:00
commit 0e22544a8a
88 changed files with 1994 additions and 1845 deletions

View file

@ -1 +1 @@
_: { imports = [ ./pipewire.nix ./ssh.nix ./greetd.nix ./dunst.nix ]; }
_: {imports = [./pipewire.nix ./ssh.nix ./greetd.nix ./dunst.nix];}

View file

@ -1,5 +1,10 @@
{ config, inputs, lib, pkgs, ... }:
let
{
config,
inputs,
lib,
pkgs,
...
}: let
cfg = config.modules.services.dunst;
inherit (config.modules.other.system) username;
@ -67,7 +72,7 @@ in {
mouse_middle_click = "context";
mouse_right_click = "close_all";
};
experimental = { per_monitor_dpi = false; };
experimental = {per_monitor_dpi = false;};
urgency_low = {
background = "#1E1E2E";
foreground = "#CDD6F4";

View file

@ -1,6 +1,11 @@
{ config, inputs, lib, pkgs, ... }:
with lib;
let
{
config,
inputs,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.services.greetd;
inherit (config.modules.other.system) username;
@ -44,8 +49,8 @@ in {
enable = true;
settings.default_session = {
command = "${
inputs.hyprland.packages.${pkgs.system}.hyprland
}/bin/Hyprland --config ${hyprlandConfig}";
inputs.hyprland.packages.${pkgs.system}.hyprland
}/bin/Hyprland --config ${hyprlandConfig}";
user = username;
};
};

View file

@ -1,6 +1,10 @@
{ config, lib, ... }:
with lib;
let cfg = config.modules.services.pipewire;
{
config,
lib,
...
}:
with lib; let
cfg = config.modules.services.pipewire;
in {
options.modules.services.pipewire.enable = mkEnableOption "pipewire";

View file

@ -1,11 +1,14 @@
{ config, lib, pkgs, ... }:
with lib;
let
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.programs.ssh;
username = config.modules.other.system.username;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable { programs.ssh = { startAgent = true; }; };
config = mkIf cfg.enable {programs.ssh = {startAgent = true;};};
}