diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-01-08 14:14:12 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-01-08 14:14:12 +0200 |
commit | 35b2d418540f398875ea338db1e29dbc1c381a69 (patch) | |
tree | 68c040bfc684a4edf6c3cdc2f552fe6f42d0ab8e /common | |
parent | 8953c93b60e31357a60112f8f707a1bb6cff0572 (diff) | |
parent | ecaf5df80adb914875ff926410e9226d72f8fa05 (diff) | |
download | nixos-configuration-feature-email-msmtp.tar.gz nixos-configuration-feature-email-msmtp.tar.bz2 nixos-configuration-feature-email-msmtp.zip |
Merge branch 'main' into feature-email-msmtpfeature-email-msmtp
Diffstat (limited to 'common')
-rw-r--r-- | common/variables.nix | 55 |
1 files changed, 33 insertions, 22 deletions
diff --git a/common/variables.nix b/common/variables.nix index f4af0f1..3e76916 100644 --- a/common/variables.nix +++ b/common/variables.nix @@ -1,27 +1,33 @@ -{ - config, - pkgs, - lib, - ... -}: let +{ config +, pkgs +, lib +, ... +}: +let monitorMaxBrightness = "255"; monitorMinBrightness = "32"; -in { +in +{ # Type definitions for nix variables used in this configuration options = with lib; - with types; { - defaultApplications = {fileManager = mkOption {type = str;};}; - myWallPaperPath = mkOption {type = path;}; - myUserName = mkOption {type = str;}; - myHostName = mkOption {type = str;}; - myWallPaperPathString = mkOption {type = str;}; - myDisplayName = mkOption {type = str;}; - myEmail = mkOption {type = str;}; - displayScale = mkOption {type = int;}; - myAutostartCommands = mkOption {type = listOf str;}; - myConfigLocation = mkOption {type = str;}; - desktopFontFullName = mkOption {type = str;}; - }; + with types; { + usingMusicPlayerDaemon = mkOption { type = bool; }; + defaultApplications = { + fileManager = mkOption { type = str; }; + appLauncher = mkOption { type = str; }; + terminal = mkOption { type = str; }; + }; + myWallPaperPath = mkOption { type = path; }; + myUserName = mkOption { type = str; }; + myHostName = mkOption { type = str; }; + myWallPaperPathString = mkOption { type = str; }; + myDisplayName = mkOption { type = str; }; + myEmail = mkOption { type = str; }; + displayScale = mkOption { type = int; }; + myAutostartCommands = mkOption { type = listOf str; }; + myConfigLocation = mkOption { type = str; }; + desktopFontFullName = mkOption { type = str; }; + }; # Default values for this configuration config = rec { @@ -33,7 +39,7 @@ in { myDisplayName = "Zhongheng Liu"; myEmail = "z.liu@outlook.com.gr"; specialisation."powersave".configuration = { - myAutostartCommands = ["${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMinBrightness}"]; + myAutostartCommands = [ "${pkgs.brightnessctl}/bin/brightnessctl s ${monitorMinBrightness}" ]; }; myConfigLocation = "/home/${myUserName}/nix-conf"; desktopFontFullName = "IntoneMono NFM:style=Regular"; @@ -45,6 +51,11 @@ in { "${pkgs.pa-notify}/bin/pa-notify" "${pkgs.networkmanagerapplet}/bin/nm-applet" ]; - defaultApplications.fileManager = "${pkgs.nemo}/bin/nemo"; + defaultApplications = { + terminal = "${pkgs.foot}/bin/footclient"; + fileManager = "${pkgs.nemo}/bin/nemo"; + appLauncher = "${pkgs.walker}/bin/walker"; + }; + usingMusicPlayerDaemon = true; }; } |