nixos-config/common/variables.nix
Zhongheng Liu ab9b248551
feat: pa-notify and libvirtd configuration
added virt-manager and libvirtd for VMs
added pa-notify autostart command for volume notification
2024-08-26 23:08:08 +08:00

35 lines
978 B
Nix

{
config,
pkgs,
lib,
...
}: {
# Type definitions for nix variables used in this configuration
options = with lib;
with types; {
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;};
};
# Default values for this configuration
config = rec {
myUserName = "stvnliu";
myHostName = "nixos-msi";
displayScale = 1;
myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg";
myDisplayName = "Zhongheng Liu";
myEmail = "z.liu@outlook.com.gr";
myAutostartCommands = [
"fcitx5"
"${pkgs.udiskie}/bin/udiskie"
"${pkgs.pa-notify}/bin/pa-notify"
];
myConfigLocation = "/home/${myUserName}/nix-conf";
};
}