User Tools

Site Tools


configuration.nix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
configuration.nix [2026/06/24 22:14] – ... samconfiguration.nix [2026/06/29 14:27] (current) – tweaks sam
Line 45: Line 45:
   # Enable networking   # Enable networking
   networking.networkmanager.enable = true;   networking.networkmanager.enable = true;
 +
 +  # Enable bluetooth
 +  hardware.bluetooth = {
 +    enable = true;
 +    powerOnBoot = false;
 +  };
  
   # Set your time zone.   # Set your time zone.
Line 123: Line 129:
   # when necessary.   # when necessary.
   services.thermald.enable = true;   services.thermald.enable = true;
 +
 +  # A service which automatically mounts external storage devices.
 +  services.udisks2.enable = true;
  
   ## Printing ##########   ## Printing ##########
Line 216: Line 225:
         # text rendering:         # text rendering:
         extraConfig = "text_composition_strategy 1.5 15";         extraConfig = "text_composition_strategy 1.5 15";
 +      };
 +
 +      programs.rofi = {
 +        enable = true;
 +        modes = [ "drun" ];
 +        theme = "dmenu";
 +      };
 +
 +      # Client for udisks2
 +      services.udiskie = {
 +        enable = true;
       };       };
  
Line 226: Line 246:
         # it later.         # it later.
         MU4E = "${pkgs.mu.mu4e}";         MU4E = "${pkgs.mu.mu4e}";
 +        EDITOR = "emacsclient";
       };       };
  
Line 283: Line 304:
  
                 # Launching                 # Launching
 +                "${modifier}+d" = "exec rofi -show";
                 "${modifier}+Return" = "exec kitty";                 "${modifier}+Return" = "exec kitty";
                 "${modifier}+e" = "exec emacsclient -c";                 "${modifier}+e" = "exec emacsclient -c";
Line 331: Line 353:
         ];         ];
         events = {         events = {
-          # Lock the screen, and restore the previously saved brightness. +          # Restore the previously saved brightness. 
-          "after-resume" = "${swaylock}; ${brightnessctl-r";+          "after-resume" = "${brightnessctl-r"; 
 +          "before-sleep" = "${swaylock}";
         };         };
       };       };
Line 382: Line 405:
     direnv     direnv
     kdePackages.okular # A PDF viewer     kdePackages.okular # A PDF viewer
 +    darktable          # Raw image editor
 +    gphoto2            # A command-line program to communicate with cameras
  
     ## In Service of Emacs ##########     ## In Service of Emacs ##########
configuration.nix.txt · Last modified: by sam