about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-12-30 11:35:14 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-12-30 11:35:14 +0100
commitdce2c3c26a2ff9770bbba2a00471c03ab321c472 (patch)
tree91ce56182bab4dee87fd663ea70880446a15f7e7 /modules
parentFont: Change font style pt 1000 (diff)
downloadnixos-config-dce2c3c26a2ff9770bbba2a00471c03ab321c472.tar.gz
nixos-config-dce2c3c26a2ff9770bbba2a00471c03ab321c472.tar.bz2
nixos-config-dce2c3c26a2ff9770bbba2a00471c03ab321c472.zip
fmt
Diffstat (limited to 'modules')
-rw-r--r--modules/bluetooth/default.nix6
-rw-r--r--modules/doas/default.nix18
-rw-r--r--modules/email/default.nix16
-rw-r--r--modules/fonts/default.nix8
-rw-r--r--modules/pipewire/default.nix9
-rw-r--r--modules/power-save/default.nix8
-rw-r--r--modules/virtualisation/default.nix11
-rw-r--r--modules/xorg/default.nix15
8 files changed, 57 insertions, 34 deletions
diff --git a/modules/bluetooth/default.nix b/modules/bluetooth/default.nix
index b45d082..d3958ef 100644
--- a/modules/bluetooth/default.nix
+++ b/modules/bluetooth/default.nix
@@ -1,6 +1,8 @@
-{ config, pkgs, ... }:
-
 {
+  config,
+  pkgs,
+  ...
+}: {
   hardware.bluetooth.enable = true;
 
   services.blueman.enable = true;
diff --git a/modules/doas/default.nix b/modules/doas/default.nix
index 39cb03b..9abc038 100644
--- a/modules/doas/default.nix
+++ b/modules/doas/default.nix
@@ -1,15 +1,19 @@
-{ config, pkgs, ... }:
-
 {
+  config,
+  pkgs,
+  ...
+}: {
   security = {
     sudo.enable = false;
     doas = {
       enable = true;
-      extraRules = [{
-        groups = [ "wheel" ];
-        keepEnv = true;
-        persist = true;
-      }];
+      extraRules = [
+        {
+          groups = ["wheel"];
+          keepEnv = true;
+          persist = true;
+        }
+      ];
     };
   };
 }
diff --git a/modules/email/default.nix b/modules/email/default.nix
index 67dbeaa..4305071 100644
--- a/modules/email/default.nix
+++ b/modules/email/default.nix
@@ -1,5 +1,10 @@
-{ config, pkgs, lib, secrets, ... }:
 {
+  config,
+  pkgs,
+  lib,
+  secrets,
+  ...
+}: {
   services = {
     mbsync.enable = true;
     imapnotify.enable = true;
@@ -45,7 +50,7 @@
 
         imapnotify = {
           enable = true;
-          boxes = [ "Inbox" ];
+          boxes = ["Inbox"];
           onNotifyPost = ''
             ${pkgs.libnotify}/bin/notify-send "New mail arrived."
           '';
@@ -71,7 +76,8 @@
             set use_from = yes
             set index_format='%4C %Z %<[y?%<[m?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%m/%y ]> %-15.15L (%?l?%4l&%4c?) %s'
           '';
-          /*extraConfig = ''
+          /*
+            extraConfig = ''
             set imap_user = 'manuelpalenzuelamerino@gmail.com'
             set imap_pass = '${secrets.email."manuelpalenzuelamerino@gmail.com".password}'
             set spoolfile = imaps://imap.gmail.com/INBOX
@@ -84,11 +90,11 @@
             set smtp_url = "smtp://manuelpalenzuelamerino@smtp.gmail.com:587/"
             set smtp_pass = ${secrets.email."manuelpalenzuelamerino@gmail.com".password}
             set ssl_force_tls = yes # Require encrypted connection
-          '';*/
+          '';
+          */
         };
         passwordCommand = "${pkgs.coreutils}/bin/echo ${secrets.email."manuelpalenzuelamerino@gmail.com".password}";
       };
     };
   };
 }
-
diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix
index 7203f30..75182e4 100644
--- a/modules/fonts/default.nix
+++ b/modules/fonts/default.nix
@@ -1,4 +1,8 @@
-{ config, pkgs, ... }: {
+{
+  config,
+  pkgs,
+  ...
+}: {
   fonts = {
     packages = with pkgs; [
       noto-fonts
@@ -12,7 +16,7 @@
     ];
     fontconfig = {
       defaultFonts = {
-        monospace = [ "TX-02" "Inconsolata LGC" ];
+        monospace = ["TX-02" "Inconsolata LGC"];
       };
     };
   };
diff --git a/modules/pipewire/default.nix b/modules/pipewire/default.nix
index 3eeaa79..2ce9099 100644
--- a/modules/pipewire/default.nix
+++ b/modules/pipewire/default.nix
@@ -1,6 +1,8 @@
-{ config, pkgs, ... }:
-
 {
+  config,
+  pkgs,
+  ...
+}: {
   security.rtkit.enable = true;
   services.pipewire = {
     enable = true;
@@ -13,6 +15,5 @@
   };
 
   # Recent fix for pipewire-pulse breakage
-  systemd.user.services.pipewire-pulse.path = [ pkgs.pulseaudio ];
+  systemd.user.services.pipewire-pulse.path = [pkgs.pulseaudio];
 }
-
diff --git a/modules/power-save/default.nix b/modules/power-save/default.nix
index e132655..21cb0fd 100644
--- a/modules/power-save/default.nix
+++ b/modules/power-save/default.nix
@@ -1,12 +1,14 @@
-{ config, pkgs, ... }:
 {
-
+  config,
+  pkgs,
+  ...
+}: {
   environment.systemPackages = with pkgs; [
     powertop
   ];
 
   boot = {
-    kernelParams = [ "pcie_aspm.policy=powersave" ];
+    kernelParams = ["pcie_aspm.policy=powersave"];
     extraModprobeConfig = ''
       options snd_hda_intel power_save=1
       options iwlwifi power_save=1 d0i3_disable=0 uapsd_disable=0
diff --git a/modules/virtualisation/default.nix b/modules/virtualisation/default.nix
index 1aa4cb2..8d9f14d 100644
--- a/modules/virtualisation/default.nix
+++ b/modules/virtualisation/default.nix
@@ -1,6 +1,9 @@
-{ config, pkgs, user, ... }:
-
 {
+  config,
+  pkgs,
+  user,
+  ...
+}: {
   virtualisation = {
     docker = {
       enable = true;
@@ -18,6 +21,6 @@
     docker-compose
   ];
 
-  users.users.${user}.extraGroups = [ "libvirtd" "docker" ];
-  users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
+  users.users.${user}.extraGroups = ["libvirtd" "docker"];
+  users.extraGroups.vboxusers.members = ["user-with-access-to-virtualbox"];
 }
diff --git a/modules/xorg/default.nix b/modules/xorg/default.nix
index 55c704f..2ed01ca 100644
--- a/modules/xorg/default.nix
+++ b/modules/xorg/default.nix
@@ -1,5 +1,8 @@
-{ config, pkgs, ... }:
 {
+  config,
+  pkgs,
+  ...
+}: {
   # Starting graphical-session.target doesn't work coz systemd. NixOS has a bug
   # where the graphical-session.target isn't started on wayland (https://github.com/NixOS/nixpkgs/issues/169143).
   # We are kind of screwed :)
@@ -25,18 +28,16 @@
 
   systemd.user.services.polkit-gnome-authentication-agent-1 = {
     description = "polkit-gnome-authentication-agent-1";
-    wants = [ "graphical-session.target" ];
-    wantedBy = [ "graphical-session.target" ];
-    after = [ "graphical-session.target" ];
+    wants = ["graphical-session.target"];
+    wantedBy = ["graphical-session.target"];
+    after = ["graphical-session.target"];
     serviceConfig = {
       Type = "simple";
-      ExecStart =
-        "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
+      ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
       Restart = "on-failure";
       RestartSec = 1;
       TimeoutStopSec = 10;
     };
   };
   systemd.user.services.polkit-gnome-authentication-agent-1.enable = true;
-
 }