104 lines
3.5 KiB
Nix
104 lines
3.5 KiB
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./packages.nix
|
|
./programs.nix
|
|
./hooks.nix
|
|
./impermanence.nix
|
|
./services.nix
|
|
];
|
|
home = {
|
|
username = "chris";
|
|
homeDirectory = "/home/chris";
|
|
enableNixpkgsReleaseCheck = false;
|
|
stateVersion = "25.11";
|
|
};
|
|
xdg.mimeApps = {
|
|
enable = true;
|
|
defaultApplications = {
|
|
# Directories
|
|
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
|
|
|
# Images
|
|
"image/png" = [ "imv.desktop" ];
|
|
"image/jpeg" = [ "imv.desktop" ];
|
|
"image/gif" = [ "imv.desktop" ];
|
|
"image/webp" = [ "imv.desktop" ];
|
|
"image/bmp" = [ "imv.desktop" ];
|
|
"image/tiff" = [ "imv.desktop" ];
|
|
|
|
# Documents
|
|
"application/pdf" = [ "zathura.desktop" ];
|
|
|
|
# Web and Browser
|
|
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
|
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
|
"text/html" = [ "firefox.desktop" ];
|
|
|
|
# Video
|
|
"video/mp4" = [ "mpv.desktop" ];
|
|
"video/x-msvideo" = [ "mpv.desktop" ];
|
|
"video/x-matroska" = [ "mpv.desktop" ];
|
|
"video/x-flv" = [ "mpv.desktop" ];
|
|
"video/x-ms-wmv" = [ "mpv.desktop" ];
|
|
"video/mpeg" = [ "mpv.desktop" ];
|
|
"video/ogg" = [ "mpv.desktop" ];
|
|
"video/webm" = [ "mpv.desktop" ];
|
|
"video/quicktime" = [ "mpv.desktop" ];
|
|
"video/3gpp" = [ "mpv.desktop" ];
|
|
"video/3gpp2" = [ "mpv.desktop" ];
|
|
"video/x-ms-asf" = [ "mpv.desktop" ];
|
|
"video/x-ogm+ogg" = [ "mpv.desktop" ];
|
|
"video/x-theora+ogg" = [ "mpv.desktop" ];
|
|
"application/ogg" = [ "mpv.desktop" ];
|
|
|
|
# Mail
|
|
"x-scheme-handler/mailto" = [ "mailspring.desktop" ];
|
|
|
|
# Text and Code
|
|
"text/plain" = [ "nvim.desktop" ];
|
|
"text/english" = [ "nvim.desktop" ];
|
|
"text/x-makefile" = [ "nvim.desktop" ];
|
|
"text/x-c++hdr" = [ "nvim.desktop" ];
|
|
"text/x-c++src" = [ "nvim.desktop" ];
|
|
"text/x-chdr" = [ "nvim.desktop" ];
|
|
"text/x-csrc" = [ "nvim.desktop" ];
|
|
"text/x-java" = [ "nvim.desktop" ];
|
|
"text/x-moc" = [ "nvim.desktop" ];
|
|
"text/x-pascal" = [ "nvim.desktop" ];
|
|
"text/x-tcl" = [ "nvim.desktop" ];
|
|
"text/x-tex" = [ "nvim.desktop" ];
|
|
"application/x-shellscript" = [ "nvim.desktop" ];
|
|
"text/x-c" = [ "nvim.desktop" ];
|
|
"text/x-c++" = [ "nvim.desktop" ];
|
|
"application/xml" = [ "nvim.desktop" ];
|
|
"text/xml" = [ "nvim.desktop" ];
|
|
};
|
|
};
|
|
# systemd.user = {
|
|
# enable = true;
|
|
# timers = {
|
|
# "station-battery-monitor" = {
|
|
# wantedBy = [ "timers.target" ];
|
|
# timerConfig = {
|
|
# OnBootSec = "1min";
|
|
# OnUnitActiveSec = "30sec";
|
|
# Unit = "station-battery-monitor.service";
|
|
# };
|
|
# };
|
|
# };
|
|
# services = {
|
|
# "station-battery-monitor" = {
|
|
# after = [ "graphical-session.target" ];
|
|
# serviceConfig = {
|
|
# Type = "oneshot";
|
|
# ExecStart = "%h/.local/share/omarchy/bin/omarchy-battery-monitor";
|
|
# Environment = "DISPLAY=:0";
|
|
# LogLevelMax = "warning";
|
|
# };
|
|
# };
|
|
# };
|
|
# };
|
|
}
|