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; services.udiskie.enable = true;
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,8 +1,10 @@
{ config, lib, ... }:
let
cfg = config.modules.nvidia;
in
{ {
config,
lib,
...
}: let
cfg = config.modules.nvidia;
in {
options = { options = {
modules.nvidia = { modules.nvidia = {
enable = lib.mkEnableOption "Enable the Nvidia module"; enable = lib.mkEnableOption "Enable the Nvidia module";
@ -11,7 +13,6 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
# Modesetting is required. # Modesetting is required.
modesetting.enable = true; 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.enable = lib.mkEnableOption "pipewire module";
options.modules.pipewire.latencyFix.enable = lib.mkEnableOption "enable latency fixes"; options.modules.pipewire.latencyFix.enable = lib.mkEnableOption "enable latency fixes";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -25,7 +26,6 @@ in
"default.clock.allowed-rates" = [48000]; "default.clock.allowed-rates" = [48000];
"default.clock.quantum" = 2048; "default.clock.quantum" = 2048;
"default.clock.min-quantum" = 1024; "default.clock.min-quantum" = 1024;
}; };
}; };
}; };

View file

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

View file

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