My Nix Configuration

[homeModules] more changes

Changed files
+85 -36
homeModules
programs
wayland
+68 -34
homeModules/programs/caelestia/caelestia-shell.json
···
},
"general": {
"apps": {
-
"audio": ["pwvucontrol"],
-
"explorer": ["thunar"],
-
"playback": ["mpv"],
-
"terminal": ["ghostty"]
+
"audio": [
+
"pwvucontrol"
+
],
+
"explorer": [
+
"thunar"
+
],
+
"playback": [
+
"mpv"
+
],
+
"terminal": [
+
"ghostty"
+
]
},
"battery": {
"criticalLevel": 3,
···
]
},
"idle": {
-
"inhibitWhenAudio": true,
-
"lockBeforeSleep": true,
-
"timeouts": [
-
{
-
"idleAction": "lock",
-
"timeout": 420
-
},
-
{
-
"idleAction": "dpms off",
-
"returnAction": "dpms on",
-
"timeout": 600
-
},
-
{
-
"idleAction": ["systemctl", "suspend"],
-
"timeout": 900
-
}
-
]
+
"inhibitWhenAudio": false,
+
"lockBeforeSleep": false,
+
"timeouts": []
}
},
"launcher": {
"actionPrefix": ">",
"actions": [
{
-
"command": ["autocomplete", "calc"],
+
"command": [
+
"autocomplete",
+
"calc"
+
],
"dangerous": false,
"description": "Do simple math equations (powered by Qalc)",
"enabled": true,
···
"name": "Wallpaper",
"icon": "image",
"description": "Change the current wallpaper",
-
"command": ["autocomplete", "wallpaper"],
+
"command": [
+
"autocomplete",
+
"wallpaper"
+
],
"enabled": true,
"dangerous": false
},
···
"name": "Random",
"icon": "casino",
"description": "Switch to a random wallpaper",
-
"command": ["caelestia", "wallpaper", "-r"],
+
"command": [
+
"caelestia",
+
"wallpaper",
+
"-r"
+
],
"enabled": true,
"dangerous": false
},
{
-
"command": ["systemctl", "poweroff"],
+
"command": [
+
"systemctl",
+
"poweroff"
+
],
"dangerous": true,
"description": "Shutdown the system",
"enabled": true,
···
"name": "Shutdown"
},
{
-
"command": ["systemctl", "reboot"],
+
"command": [
+
"systemctl",
+
"reboot"
+
],
"dangerous": true,
"description": "Reboot the system",
"enabled": true,
···
"name": "Reboot"
},
{
-
"command": ["loginctl", "terminate-user", ""],
+
"command": [
+
"loginctl",
+
"terminate-user",
+
""
+
],
"dangerous": true,
"description": "Log out of the current session",
"enabled": true,
···
"name": "Logout"
},
{
-
"command": ["loginctl", "lock-session"],
+
"command": [
+
"loginctl",
+
"lock-session"
+
],
"dangerous": false,
"description": "Lock the current session",
"enabled": true,
···
"name": "Lock"
},
{
-
"command": ["systemctl", "suspend"],
+
"command": [
+
"systemctl",
+
"suspend"
+
],
"dangerous": false,
"description": "Suspend",
"enabled": true,
···
"vimKeybinds": true
},
"lock": {
-
"recolourLogo": false
+
"recolourLogo": false,
+
"enableFprint": false
},
"notifs": {
"actionOnClick": true,
···
},
"session": {
"commands": {
-
"hibernate": ["systemctl", "suspend"],
-
"logout": ["loginctl", "terminate-user", ""],
-
"reboot": ["systemctl", "reboot"],
-
"shutdown": ["systemctl", "poweroff"]
+
"hibernate": [
+
"systemctl",
+
"suspend"
+
],
+
"logout": [
+
"loginctl",
+
"terminate-user",
+
""
+
],
+
"reboot": [
+
"systemctl",
+
"reboot"
+
],
+
"shutdown": [
+
"systemctl",
+
"poweroff"
+
]
},
"dragThreshold": 30,
"enabled": true,
+1 -1
homeModules/programs/git/default.nix
···
"credential \"https://git.pyrox.dev\"".username = "pyrox";
credential.helper = "rbw";
diff = {
-
algorithm = "diff3";
+
algorithm = "histogram";
colorMoved = "plain";
mnemonicPrefix = true;
renames = true;
+16 -1
homeModules/wayland/hypridle.nix
···
in
{
config.services.hypridle = lib.mkIf cfg.enable {
-
enable = false;
+
enable = true;
settings = {
general = {
lock_cmd = "loginctl lock-session";
···
after_sleep_cmd = "hyprctl dispatch dpms on";
inhibit_sleep = 3;
};
+
listener = [
+
{
+
timeout = 420;
+
on-timeout = "loginctl lock-session";
+
}
+
{
+
timeout = 600;
+
on-timeout = "hyprctl dispatch dpms off";
+
on-resume = "hyprctl dispatch dpms on";
+
}
+
{
+
timeout = 900;
+
on-timeout = "systemctl resume";
+
}
+
];
};
};
}