repo: format with alejandra

This commit is contained in:
Anthony Rodriguez 2024-09-24 23:47:52 +02:00
parent 9078b65d49
commit 8473772fe5
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
32 changed files with 79 additions and 135 deletions

View file

@ -1,5 +1,3 @@
{ ... }:
{
{...}: {
services.udiskie.enable = true;
}

View file

@ -1,6 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
home.username = "nezia";
home.homeDirectory = "/home/nezia";
programs.home-manager.enable = true;

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
xdg.mimeApps = {
enable = true;
defaultApplications = {

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
programs.git = {
enable = true;
userName = "Anthony Rodriguez";

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
programs.gpg = {
enable = true;
publicKeys = [

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.fzf.enable = true;
programs.fastfetch.enable = true;
home.packages = with pkgs; [

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.tmux = {
enable = true;
prefix = "C-space";

View file

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

View file

@ -1,14 +1,11 @@
{ pkgs, ... }:
let
{pkgs, ...}: let
catppuccin-fish = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "fish";
rev = "a3b9eb5eaf2171ba1359fe98f20d226c016568cf";
hash = "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=";
};
in
{
in {
programs.fish = {
enable = true;
interactiveShellInit = ''

View file

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

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
programs.zellij = {
enable = true;
settings = {

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
programs.zoxide = {
enable = true;
enableBashIntegration = false;

View file

@ -1,7 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
home.packages = with pkgs; [
protonup-qt
bottles

View file

@ -1,6 +1,8 @@
{ hostname, username, ... }:
{
hostname,
username,
...
}: {
sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/${username}/.config/sops/age/keys.txt";

View file

@ -3,14 +3,11 @@
username,
hostname,
...
}:
let
}: let
homeDir = "/home/${username}";
devices = import ./devices.nix;
otherDevices = builtins.removeAttrs devices [hostname];
in
{
in {
services = {
syncthing = {
enable = true;

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
boot = {
loader = {
timeout = 0;

View file

@ -1,6 +1,4 @@
{ hostname, ... }:
{
{hostname, ...}: {
networking.hostName = hostname;
networking.networkmanager.enable = true;

View file

@ -1,5 +1,4 @@
_: {
imports = [
./core.nix
./boot.nix

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
# Set your time zone.
time.timeZone = "Europe/Paris";
@ -18,5 +16,4 @@
LC_TELEPHONE = "fr_CH.UTF-8";
LC_TIME = "fr_CH.UTF-8";
};
}

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
# fix direnv integration with fish
environment.pathsToLink = ["/share/fish"];

View file

@ -1,6 +1,4 @@
{ username, ... }:
{
{username, ...}: {
programs.nh = {
enable = true;
clean.enable = true;
@ -10,5 +8,4 @@
environment.sessionVariables = {
FLAKE = "/home/${username}/.dotfiles";
};
}

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
vim
git

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
# setup printing service
services.printing.enable = true;

View file

@ -7,9 +7,7 @@
pkgs,
modulesPath,
...
}:
{
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

View file

@ -7,9 +7,7 @@
pkgs,
modulesPath,
...
}:
{
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

View file

@ -3,11 +3,9 @@
lib,
username,
...
}:
let
}: let
cfg = config.modules.docker;
in
{
in {
options.modules.docker.enable = lib.mkEnableOption "docker module";
config = lib.mkIf cfg.enable {
virtualisation.docker = {

View file

@ -4,12 +4,10 @@
pkgs,
username,
...
}:
let
}: let
cfg = config.modules.gnome;
stylixEnabled = config.modules.stylix.enable or false;
in
{
in {
options = {
modules.gnome = {
enable = lib.mkEnableOption "Enable Gnome";
@ -30,8 +28,7 @@ in
};
environment.gnome.excludePackages = (
with pkgs;
[
with pkgs; [
gnome-console
gnome-photos
gnome-tour
@ -119,7 +116,6 @@ in
];
};
};
};
home.packages = with pkgs.gnomeExtensions; [
appindicator

View file

@ -1,8 +1,10 @@
{ config, lib, ... }:
let
cfg = config.modules.nvidia;
in
{
config,
lib,
...
}: let
cfg = config.modules.nvidia;
in {
options = {
modules.nvidia = {
enable = lib.mkEnableOption "Enable the Nvidia module";
@ -11,7 +13,6 @@ in
config = lib.mkIf cfg.enable {
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;

View file

@ -1,9 +1,10 @@
{ config, lib, ... }:
let
cfg = config.modules.pipewire;
in
{
config,
lib,
...
}: let
cfg = config.modules.pipewire;
in {
options.modules.pipewire.enable = lib.mkEnableOption "pipewire module";
options.modules.pipewire.latencyFix.enable = lib.mkEnableOption "enable latency fixes";
config = lib.mkIf cfg.enable {
@ -25,7 +26,6 @@ in
"default.clock.allowed-rates" = [48000];
"default.clock.quantum" = 2048;
"default.clock.min-quantum" = 1024;
};
};
};

View file

@ -3,11 +3,9 @@
lib,
pkgs,
...
}:
let
}: let
cfg = config.modules.stylix;
in
{
in {
options = {
modules.stylix = {
enable = lib.mkEnableOption "Enable the stylix module";

View file

@ -4,11 +4,9 @@
inputs,
username,
...
}:
let
}: let
cfg = config.modules.wezterm;
in
{
in {
options = {
modules.wezterm = {
enable = lib.mkEnableOption "enable wezterm";