mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-07-06 16:12:33 +02:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a393b84c92 | |||
| ccdf0c289a | |||
| cdffe66d72 | |||
| 082de49ca4 | |||
| 11391ae56c | |||
| a8f39b1729 | |||
| a704d3a7d2 | |||
| f72d6ab55c | |||
| 2890b49b82 | |||
| b8f30fbe4e | |||
| cc7f352ced | |||
| 24081abaf0 | |||
| 4addb1bd33 | |||
| c27c0550fb | |||
| 1333132eef | |||
| 1e83efd78a | |||
| 2f89759ca7 |
Generated
+156
-890
File diff suppressed because it is too large
Load Diff
@@ -7,16 +7,13 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
||||||
stylix.url = "github:danth/stylix";
|
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
|
||||||
nvf.url = "github:notashelf/nvf";
|
nvf.url = "github:notashelf/nvf";
|
||||||
notashelf-tuigreet.url = "github:NotAShelf/tuigreet";
|
nur = {
|
||||||
helium-browser.url = "github:oxcl/nix-flake-helium-browser";
|
url = "github:nix-community/nur";
|
||||||
nur-anotherhadi.url = "github:anotherhadi/nur-packages";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nix-index-database = {
|
nix-index-database = {
|
||||||
url = "github:nix-community/nix-index-database";
|
url = "github:nix-community/nix-index-database";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -25,16 +22,20 @@
|
|||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
caelestia-shell = {
|
stylix = {
|
||||||
url = "github:caelestia-dots/shell";
|
url = "github:nix-community/stylix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
caelestia-cli = {
|
sops-nix = {
|
||||||
url = "github:caelestia-dots/cli";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
spicetify-nix = {
|
notashelf-tuigreet = {
|
||||||
url = "github:Gerg-L/spicetify-nix";
|
url = "github:NotAShelf/tuigreet";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
helium-browser = {
|
||||||
|
url = "github:oxcl/nix-flake-helium-browser";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -61,7 +62,6 @@
|
|||||||
pkgs
|
pkgs
|
||||||
;
|
;
|
||||||
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
||||||
pkgs-nur-hadi = inputs.nur-anotherhadi.packages.${system};
|
|
||||||
};
|
};
|
||||||
merge = nixpkgs.lib.foldl nixpkgs.lib.recursiveUpdate {};
|
merge = nixpkgs.lib.foldl nixpkgs.lib.recursiveUpdate {};
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
pkgs-nur-hadi,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = with pkgs-stable; [
|
home.packages = with pkgs-stable; [
|
||||||
@@ -17,18 +16,21 @@
|
|||||||
onlyoffice-desktopeditors # Office suite
|
onlyoffice-desktopeditors # Office suite
|
||||||
blanket # Listen to different sounds
|
blanket # Listen to different sounds
|
||||||
signal-desktop # Messaging app
|
signal-desktop # Messaging app
|
||||||
librewolf # Backup browser
|
|
||||||
|
|
||||||
# I love TUIs
|
# I love TUIs
|
||||||
caligula # User-friendly, lightweight TUI for disk imaging (ISO, USB BOOT)
|
caligula # User-friendly, lightweight TUI for disk imaging (ISO, USB BOOT)
|
||||||
browsh # A modern text-based browser that renders anything that a modern browser can. It runs in a terminal and can be used remotely over SSH
|
|
||||||
dysk # A terminal-based disk usage analyzer
|
dysk # A terminal-based disk usage analyzer
|
||||||
wikiman # Offline search engine for manual pages (arch wiki, tldr)
|
wikiman # Offline search engine for manual pages (arch wiki, tldr)
|
||||||
tealdeer # Fast tldr client
|
tealdeer # Fast tldr client
|
||||||
sttr # Minimalist "cyberchef" like. Cross-platform, cli app to perform various operations on string
|
sttr # Minimalist "cyberchef" like. Cross-platform, cli app to perform various operations on string
|
||||||
wiremix # Simple TUI mixer for PipeWire
|
wiremix # Simple TUI mixer for PipeWire
|
||||||
|
slides # A terminal-based presentation tool that allows you to create and deliver presentations directly from the command line
|
||||||
|
pom # Pomodoro timer in your terminal
|
||||||
|
tabiew # A terminal-based CSV viewer and manipulator
|
||||||
|
jless # A pager for JSON
|
||||||
pkgs.wifitui # TUI for managing wifi
|
pkgs.wifitui # TUI for managing wifi
|
||||||
pkgs-nur-hadi.usbguard-tui # TUI for managing USBGuard rules
|
pkgs.nur.repos.anotherhadi.usbguard-tui # TUI for managing USBGuard rules
|
||||||
|
pkgs.nur.repos.anotherhadi.sheets # Terminal based spreadsheet tool
|
||||||
|
|
||||||
# I love CLIs
|
# I love CLIs
|
||||||
httpie # Command-line HTTP client, a user-friendly cURL replacement
|
httpie # Command-line HTTP client, a user-friendly cURL replacement
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
pkgs-nur-hadi,
|
|
||||||
}:
|
}:
|
||||||
(with pkgs-stable; [
|
(with pkgs-stable; [
|
||||||
# Web
|
# Web
|
||||||
@@ -25,7 +24,6 @@
|
|||||||
# Network
|
# Network
|
||||||
inetutils
|
inetutils
|
||||||
termshark # wireshark in TUI
|
termshark # wireshark in TUI
|
||||||
dnsrecon
|
|
||||||
whois
|
whois
|
||||||
dig
|
dig
|
||||||
nmap
|
nmap
|
||||||
@@ -42,7 +40,8 @@
|
|||||||
# Forensics
|
# Forensics
|
||||||
binwalk
|
binwalk
|
||||||
])
|
])
|
||||||
++ (with pkgs-nur-hadi; [
|
++ [ pkgs.dnsrecon ]
|
||||||
|
++ (with pkgs.nur.repos.anotherhadi; [
|
||||||
spilltea
|
spilltea
|
||||||
jwt-tui
|
jwt-tui
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
pkgs-nur-hadi,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = import ./cybersecurity-packages.nix {
|
home.packages = import ./cybersecurity-packages.nix {
|
||||||
inherit pkgs pkgs-stable pkgs-nur-hadi;
|
inherit pkgs pkgs-stable;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.tmpfiles.rules = [
|
systemd.user.tmpfiles.rules = [
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
nodejs
|
nodejs
|
||||||
air
|
air
|
||||||
duckdb
|
duckdb
|
||||||
docker
|
|
||||||
python3
|
python3
|
||||||
jq
|
jq
|
||||||
nix-prefetch-github
|
nix-prefetch-github
|
||||||
|
|||||||
@@ -2,12 +2,11 @@
|
|||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
pkgs-nur-hadi,
|
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
devPackages = import ./dev-packages.nix {inherit pkgs pkgs-stable;};
|
devPackages = import ./dev-packages.nix {inherit pkgs pkgs-stable;};
|
||||||
cyberPackages = import ./cybersecurity-packages.nix {inherit pkgs pkgs-stable pkgs-nur-hadi;};
|
cyberPackages = import ./cybersecurity-packages.nix {inherit pkgs pkgs-stable;};
|
||||||
in {
|
in {
|
||||||
packages.${system} = {
|
packages.${system} = {
|
||||||
dev = pkgs.buildEnv {
|
dev = pkgs.buildEnv {
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{pkgs-stable, ...}: {
|
||||||
pkgs-stable,
|
|
||||||
pkgs-nur-hadi,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs-stable; [
|
home.packages = with pkgs-stable; [
|
||||||
tty-solitaire
|
tty-solitaire
|
||||||
bastet
|
bastet
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
name = "Hyprland Wiki";
|
name = "Hyprland Wiki";
|
||||||
url = "https://wiki.hypr.land";
|
url = "https://wiki.hypr.land";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "Nerdfont Cheatsheet";
|
||||||
|
url = "https://www.nerdfonts.com/cheat-sheet";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Helium Bangs";
|
||||||
|
url = "https://helium.computer/bangs";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "NVF Options";
|
name = "NVF Options";
|
||||||
url = "https://nvf.notashelf.dev/";
|
url = "https://nvf.notashelf.dev/";
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ in {
|
|||||||
DefaultBrowserSettingEnabled = false;
|
DefaultBrowserSettingEnabled = false;
|
||||||
DeveloperToolsAvailability = 1;
|
DeveloperToolsAvailability = 1;
|
||||||
|
|
||||||
DnsOverHttpsMode = "secure";
|
DnsOverHttpsMode = "automatic";
|
||||||
DnsOverHttpsTemplates = "https://dns.quad9.net/dns-query";
|
DnsOverHttpsTemplates = "https://dns.quad9.net/dns-query";
|
||||||
|
|
||||||
DefaultSearchProviderEnabled = true;
|
DefaultSearchProviderEnabled = true;
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
{pkgs, ...}: let
|
|
||||||
nightshift-toggle =
|
|
||||||
pkgs.writeShellScriptBin "nightshift-toggle"
|
|
||||||
# bash
|
|
||||||
''
|
|
||||||
if pidof "hyprsunset"; then
|
|
||||||
pkill hyprsunset
|
|
||||||
${pkgs.libnotify}/bin/notify-send "Night Shift Disabled" "Returning to full spectrum light. Filter disabled."
|
|
||||||
else
|
|
||||||
${pkgs.hyprsunset}/bin/hyprsunset -t 4500 &
|
|
||||||
${pkgs.libnotify}/bin/notify-send "Night Shift Activated" "Welcome to the warm side. Blue light filtering is now active."
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
hyprsunset
|
|
||||||
nightshift-toggle
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,12 +1,28 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
in {
|
||||||
imports = [inputs.nvf.homeManagerModules.default];
|
imports = [inputs.nvf.homeManagerModules.default];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
programs.nvf = {
|
programs.nvf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
vim.luaConfigRC.hl-overrides = ''
|
||||||
|
local function apply_hl()
|
||||||
|
vim.api.nvim_set_hl(0, "MiniStarterHeader", { fg = "#${c.base0D}", bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksPickerBorder", { fg = "#${c.base0D}" })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksPickerTitle", { fg = "#${c.base0D}", bold = true })
|
||||||
|
end
|
||||||
|
apply_hl()
|
||||||
|
vim.api.nvim_create_autocmd("ColorScheme", { pattern = "*", callback = apply_hl })
|
||||||
|
'';
|
||||||
imports = [
|
imports = [
|
||||||
./options.nix
|
./options.nix
|
||||||
./languages.nix
|
./languages.nix
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
vim = {
|
vim = {
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
|
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
key = "s";
|
key = "s";
|
||||||
@@ -144,6 +145,52 @@
|
|||||||
desc = "Todo (Trouble)";
|
desc = "Todo (Trouble)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
{
|
||||||
|
key = "<leader>!";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
lua = true;
|
||||||
|
desc = "Insert command output";
|
||||||
|
action = ''
|
||||||
|
function()
|
||||||
|
local cmd = vim.fn.input("Command: ")
|
||||||
|
if cmd == "" then return end
|
||||||
|
local lines = vim.fn.systemlist(cmd)
|
||||||
|
while #lines > 0 and lines[#lines] == "" do
|
||||||
|
table.remove(lines)
|
||||||
|
end
|
||||||
|
if #lines == 0 then return end
|
||||||
|
vim.api.nvim_put(lines, "l", true, true)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>!";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
lua = true;
|
||||||
|
desc = "Run command with selection";
|
||||||
|
action = ''
|
||||||
|
function()
|
||||||
|
local start_line = vim.fn.line("'<")
|
||||||
|
local end_line = vim.fn.line("'>")
|
||||||
|
local lines = vim.api.nvim_buf_get_lines(0, start_line - 1, end_line, false)
|
||||||
|
local input_text = table.concat(lines, "\n")
|
||||||
|
|
||||||
|
local cmd = vim.fn.input("$ ")
|
||||||
|
if cmd == "" then return end
|
||||||
|
|
||||||
|
local result = vim.fn.system({"bash", "-c", cmd}, input_text)
|
||||||
|
local output = vim.split(result, "\n", { plain = true })
|
||||||
|
if output[#output] == "" then table.remove(output) end
|
||||||
|
if #output == 0 then return end
|
||||||
|
|
||||||
|
vim.api.nvim_buf_set_lines(0, start_line - 1, end_line, false, output)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
# QOL
|
# QOL
|
||||||
{
|
{
|
||||||
key = ">";
|
key = ">";
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
autotagHtml = true;
|
autotagHtml = true;
|
||||||
context.enable = true;
|
context.enable = true;
|
||||||
highlight.enable = true;
|
highlight.enable = true;
|
||||||
|
textobjects.enable = true;
|
||||||
};
|
};
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{lib, ...}: {
|
||||||
vim.luaConfigRC.mini-clue = ''
|
vim.luaConfigRC.mini-clue = ''
|
||||||
local miniclue = require('mini.clue')
|
local miniclue = require('mini.clue')
|
||||||
miniclue.setup({
|
miniclue.setup({
|
||||||
@@ -27,6 +27,9 @@
|
|||||||
{ mode = 'n', keys = '<Leader>u', desc = '+ui' },
|
{ mode = 'n', keys = '<Leader>u', desc = '+ui' },
|
||||||
{ mode = 'n', keys = '<Leader>l', desc = '+lsp' },
|
{ mode = 'n', keys = '<Leader>l', desc = '+lsp' },
|
||||||
{ mode = 'n', keys = '<Leader>x', desc = '+trouble' },
|
{ mode = 'n', keys = '<Leader>x', desc = '+trouble' },
|
||||||
|
{ mode = 'n', keys = '<Leader>!', desc = 'shell' },
|
||||||
|
{ mode = 'v', keys = '<Leader>!', desc = 'shell' },
|
||||||
|
{ mode = 'n', keys = '<Leader>e', desc = 'yazi' },
|
||||||
},
|
},
|
||||||
window = { delay = 300 },
|
window = { delay = 300 },
|
||||||
})
|
})
|
||||||
@@ -34,7 +37,55 @@
|
|||||||
|
|
||||||
vim.mini = {
|
vim.mini = {
|
||||||
ai.enable = true;
|
ai.enable = true;
|
||||||
starter.enable = true;
|
starter = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
header = ''
|
||||||
|
⣟⣯⣟⣯⡇⠀⣿⢩⣛⡼⣏⠀⠈⠋⠀⣈⡷⣙⢎⡳⣙⢮⣙⢮⣙⢎⡳⣙⢾⣿
|
||||||
|
⢿⡾⣽⡞⣷⣤⣏⡳⡜⡼⠗⠁⢀⠀⠙⢧⠳⣍⢞⡱⣭⠲⣍⠶⣩⢞⡱⡭⣾⣿
|
||||||
|
⠈⠻⠧⢿⣧⣿⠶⣵⢻⢞⡷⢲⡟⡶⢴⡭⢿⣜⣮⡱⢎⡳⣍⢞⡱⢮⡱⣳⣿⣽
|
||||||
|
⠀⣰⣶⡏⢷⣈⣿⣸⣇⣾⣸⣿⣾⣹⣆⡹⡎⡶⢇⡿⣹⢷⣾⣈⠷⣇⢷⣿⣿⣹
|
||||||
|
⣾⣻⣭⣿⣾⣿⣿⣟⣿⣿⡿⣽⡿⣿⢿⣿⣿⣿⣾⣶⣵⣾⠲⣭⢳⣞⣾⡿⣷⣿
|
||||||
|
⣿⣿⣿⣯⣷⣿⣿⠿⢝⠚⠋⠉⠉⠉⠙⠚⠛⡾⢿⣿⣻⣿⣿⣶⣏⠶⣩⠿⣿⡈
|
||||||
|
⣿⣟⣿⣻⣿⡏⠀⠀⠀⠳⡀⠀⠀⠀⠀⠰⠊⠀⠀⠈⠙⠳⣿⣿⣿⣿⣧⣻⣿⣿
|
||||||
|
⠘⢻⣿⣿⣽⡇⠈⠧⣄⠀⠀⠀⠀⠀⠀⢀⣄⡤⠴⠚⠀⠀⠀⠙⢿⣷⡿⣿⣿⣿
|
||||||
|
⠀⠠⢈⢛⣿⠀⠚⠉⠉⠱⣼⡷⠀⠀⠀⠀⠉⠉⠑⠶⠀⠀⠀⠀⠀⠻⣿⣿⣾⢿
|
||||||
|
⠀⠡⠈⠉⠹⡀⠀⠀⡄⠀⣸⡀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣯⣿⢿
|
||||||
|
⠀⠁⢶⣶⠀⢷⠀⠀⠉⠉⠀⠈⠉⠶⠆⠈⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣾⣿
|
||||||
|
⠀⠡⢸⢹⠏⡍⠓⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣺⡟⠋⠉⢹⢭⢣
|
||||||
|
⠀⠀⢸⣹⡏⠭⠭⠭⠙⣲⣦⣤⣤⣀⣀⣀⣀⣤⣤⣶⣞⠉⠙⠛⠷⢀⣀⠘⣎⠧
|
||||||
|
⢁⣈⣀⣀⢀⣀⣀⣀⣼⠟⠹⢿⣯⣟⣿⣻⡿⠿⠛⢿⣿⣦⡀⠀⠀⠀⠀⠉⠉⠘
|
||||||
|
'';
|
||||||
|
footer = "";
|
||||||
|
items = [
|
||||||
|
{
|
||||||
|
name = "files";
|
||||||
|
action = lib.mkLuaInline "function() Snacks.picker.files() end";
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "directories";
|
||||||
|
action = lib.mkLuaInline "function() Snacks.explorer() end";
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "tmp";
|
||||||
|
action = lib.mkLuaInline ''
|
||||||
|
function()
|
||||||
|
local uuid = vim.fn.system("uuidgen"):match("(%S+)")
|
||||||
|
vim.cmd("edit /tmp/" .. uuid .. ".md")
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "recent";
|
||||||
|
action = lib.mkLuaInline "function() Snacks.picker.recent() end";
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
comment.enable = true;
|
comment.enable = true;
|
||||||
icons.enable = true;
|
icons.enable = true;
|
||||||
indentscope.enable = true;
|
indentscope.enable = true;
|
||||||
@@ -44,5 +95,6 @@
|
|||||||
jump2d.enable = true;
|
jump2d.enable = true;
|
||||||
statusline.enable = true;
|
statusline.enable = true;
|
||||||
clue.enable = true;
|
clue.enable = true;
|
||||||
|
surround.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,6 @@
|
|||||||
'';
|
'';
|
||||||
undoFile.enable = true;
|
undoFile.enable = true;
|
||||||
notes.todo-comments.enable = true;
|
notes.todo-comments.enable = true;
|
||||||
assistant.copilot = {
|
|
||||||
enable = true;
|
|
||||||
cmp.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
autocomplete = {
|
autocomplete = {
|
||||||
nvim-cmp = {
|
nvim-cmp = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
"protonvpn-app --start-minimized &"
|
"protonvpn-app --start-minimized"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs-stable; [
|
||||||
proton-vpn
|
proton-vpn
|
||||||
proton-pass
|
proton-pass
|
||||||
proton-authenticator
|
proton-authenticator
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
xdg.desktopEntries = {
|
xdg.desktopEntries = {
|
||||||
"Proton Authenticator" = {
|
"Proton Authenticator" = {
|
||||||
name = "Proton Authenticator";
|
name = "Proton Authenticator";
|
||||||
exec = "env WEBKIT_DISABLE_COMPOSITING_MODE=1 ${pkgs.proton-authenticator}/bin/proton-authenticator";
|
exec = "env WEBKIT_DISABLE_COMPOSITING_MODE=1 ${pkgs-stable.proton-authenticator}/bin/proton-authenticator";
|
||||||
icon = "proton-authenticator";
|
icon = "proton-authenticator";
|
||||||
type = "Application";
|
type = "Application";
|
||||||
categories = ["Utility"];
|
categories = ["Utility"];
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
{
|
{pkgs-stable, ...}: {
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
package = pkgs-stable.direnv;
|
||||||
|
nix-direnv = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.nix-direnv;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
# Eza is a ls replacement
|
# Eza is a ls replacement
|
||||||
{
|
{pkgs-stable, ...}: {
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-stable.eza;
|
||||||
icons = "auto";
|
icons = "auto";
|
||||||
|
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Fzf is a general-purpose command-line fuzzy finder.
|
# Fzf is a general-purpose command-line fuzzy finder.
|
||||||
{
|
{
|
||||||
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
@@ -10,6 +11,7 @@
|
|||||||
in {
|
in {
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-stable.fzf;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
colors = lib.mkForce {
|
colors = lib.mkForce {
|
||||||
"fg+" = accent;
|
"fg+" = accent;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# starship is a minimal, fast, and extremely customizable prompt for any shell!
|
# starship is a minimal, fast, and extremely customizable prompt for any shell!
|
||||||
{
|
{
|
||||||
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
@@ -9,6 +10,7 @@
|
|||||||
in {
|
in {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-stable.starship;
|
||||||
settings = {
|
settings = {
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
# Zoxide is a cd replacement
|
# Zoxide is a cd replacement
|
||||||
{
|
{pkgs-stable, ...}: {
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-stable.zoxide;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+50
-40
@@ -1,23 +1,21 @@
|
|||||||
# My shell configuration
|
# My shell configuration
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs-stable,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch
|
home.packages = with pkgs-stable; [
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
bat
|
bat
|
||||||
ripgrep
|
ripgrep
|
||||||
];
|
];
|
||||||
|
|
||||||
# Add go binaries to the PATH
|
home = {
|
||||||
home.sessionPath = ["$HOME/go/bin"];
|
sessionPath = ["$HOME/go/bin"];
|
||||||
|
sessionVariables = {
|
||||||
home.sessionVariables = {
|
|
||||||
COLORTERM = "truecolor";
|
COLORTERM = "truecolor";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -47,30 +45,23 @@ in {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
spt = "spotatui";
|
# Change default
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
v = "nvim";
|
|
||||||
c = "clear";
|
|
||||||
clera = "clear";
|
|
||||||
celar = "clear";
|
|
||||||
claer = "clear";
|
|
||||||
e = "exit";
|
|
||||||
cd = "z";
|
cd = "z";
|
||||||
ls = "eza --icons=always --no-quotes";
|
ls = "eza --icons=always --no-quotes";
|
||||||
tree = "eza --icons=always --tree --no-quotes";
|
tree = "eza --icons=always --tree --no-quotes";
|
||||||
sl = "ls";
|
|
||||||
open = "${pkgs.xdg-utils}/bin/xdg-open";
|
|
||||||
cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain";
|
cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain";
|
||||||
mkdir = "mkdir -p";
|
mkdir = "mkdir -p";
|
||||||
|
|
||||||
obsidian-no-gpu = "env ELECTRON_OZONE_PLATFORM_HINT=auto obsidian --ozone-platform=x11";
|
# Shortcuts
|
||||||
wireguard-import = "nmcli connection import type wireguard file";
|
spt = "spotatui";
|
||||||
|
v = "nvim";
|
||||||
|
c = "clear";
|
||||||
|
e = "exit";
|
||||||
|
open = "${pkgs-stable.xdg-utils}/bin/xdg-open";
|
||||||
|
|
||||||
notes = "nvim ~/notes/index.md --cmd 'cd ~/notes' -c ':lua Snacks.picker.smart()'";
|
notes = "nvim ~/notes/index.md --cmd 'cd ~/notes' -c ':lua Snacks.picker.smart()'";
|
||||||
note = "notes";
|
|
||||||
tmp = "nvim /tmp/$(date | sed 's/ //g;s/\\.//g').md";
|
|
||||||
|
|
||||||
nix-shell = "nix-shell --command zsh";
|
nix-shell = "nix-shell --command zsh";
|
||||||
|
|
||||||
# git
|
# git
|
||||||
@@ -87,31 +78,43 @@ in {
|
|||||||
gbr = "git branch";
|
gbr = "git branch";
|
||||||
grs = "git reset HEAD~1";
|
grs = "git reset HEAD~1";
|
||||||
grh = "git reset --hard HEAD~1";
|
grh = "git reset --hard HEAD~1";
|
||||||
|
|
||||||
gaa = "git add .";
|
gaa = "git add .";
|
||||||
gcm = "git commit -m";
|
gcm = "git commit -m";
|
||||||
|
|
||||||
|
# Typo
|
||||||
|
clera = "clear";
|
||||||
|
celar = "clear";
|
||||||
|
claer = "clear";
|
||||||
|
sl = "ls";
|
||||||
};
|
};
|
||||||
|
|
||||||
initContent =
|
initContent =
|
||||||
# bash
|
# bash
|
||||||
''
|
''
|
||||||
bindkey -e
|
bindkey -e
|
||||||
${
|
|
||||||
if fetch == "neofetch"
|
|
||||||
then pkgs.neofetch + "/bin/neofetch"
|
|
||||||
else if fetch == "nerdfetch"
|
|
||||||
then "nerdfetch"
|
|
||||||
else if fetch == "pfetch"
|
|
||||||
then "echo; ${pkgs.pfetch}/bin/pfetch"
|
|
||||||
else ""
|
|
||||||
}
|
|
||||||
|
|
||||||
function n4c() {
|
# Open command in VIM
|
||||||
category=''${1:-all}
|
autoload -Uz edit-command-line
|
||||||
shift
|
zle -N edit-command-line
|
||||||
args=''${*}
|
bindkey '^X' edit-command-line
|
||||||
nix develop "github:nix4cyber/n4c#''${category}" ''${args} -c zsh
|
|
||||||
}
|
# Suffix Aliases
|
||||||
|
alias -s {nix,md,txt,yml,yaml,go}=nvim
|
||||||
|
alias -s {json,jsonl}=jless
|
||||||
|
alias -s {csv,tsv,parquet,pqt,arrow,db,sqlite,xls,xlsx,xlsm,xlsb,fwf}=tw
|
||||||
|
alias -s {png,jpg,jpeg,gif,pdf}=xdg-open
|
||||||
|
|
||||||
|
# 3. Global Aliases (Remplacés n'importe où dans la commande, pas seulement au début)
|
||||||
|
alias -g G="| grep"
|
||||||
|
alias -g L="| less"
|
||||||
|
alias -g V="| nvim"
|
||||||
|
alias -g H="| head"
|
||||||
|
alias -g T="| tail"
|
||||||
|
alias -g JQ="| jq"
|
||||||
|
alias -g C="| wl-copy"
|
||||||
|
alias -g NE="2>/dev/null"
|
||||||
|
alias -g ND=">/dev/null"
|
||||||
|
alias -g NUL=">/dev/null 2>1"
|
||||||
|
|
||||||
# search history based on what's typed in the prompt
|
# search history based on what's typed in the prompt
|
||||||
autoload -U history-search-end
|
autoload -U history-search-end
|
||||||
@@ -152,7 +155,7 @@ in {
|
|||||||
# Colors
|
# Colors
|
||||||
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
|
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
|
||||||
|
|
||||||
# case insensitive tab completion
|
# Case insensitive tab completion
|
||||||
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
|
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
|
||||||
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
||||||
zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'
|
zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'
|
||||||
@@ -168,6 +171,13 @@ in {
|
|||||||
zstyle ':completion:complete:*:options' sort false
|
zstyle ':completion:complete:*:options' sort false
|
||||||
zstyle ':completion:files' sort false
|
zstyle ':completion:files' sort false
|
||||||
|
|
||||||
|
autoload zmv
|
||||||
|
|
||||||
|
hash -d dl=~/Downloads
|
||||||
|
hash -d ni=~/.config/nixos
|
||||||
|
hash -d de=~/dev
|
||||||
|
hash -d cy=~/Cyber
|
||||||
|
|
||||||
${lib.optionalString config.services.gpg-agent.enable ''
|
${lib.optionalString config.services.gpg-agent.enable ''
|
||||||
gnupg_path=$(ls $XDG_RUNTIME_DIR/gnupg)
|
gnupg_path=$(ls $XDG_RUNTIME_DIR/gnupg)
|
||||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/$gnupg_path/S.gpg-agent.ssh"
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/$gnupg_path/S.gpg-agent.ssh"
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
# Spicetify is a spotify client customizer
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
pkgs-stable,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
||||||
accent = "${config.lib.stylix.colors.base0D}";
|
|
||||||
background = "${config.lib.stylix.colors.base00}";
|
|
||||||
in {
|
|
||||||
imports = [inputs.spicetify-nix.homeManagerModules.default];
|
|
||||||
|
|
||||||
stylix.targets.spicetify.enable = false;
|
|
||||||
|
|
||||||
programs.spicetify = {
|
|
||||||
enable = true;
|
|
||||||
spotifyPackage = pkgs-stable.spotify;
|
|
||||||
theme = lib.mkForce spicePkgs.themes.dribbblish;
|
|
||||||
|
|
||||||
colorScheme = "custom";
|
|
||||||
|
|
||||||
customColorScheme = {
|
|
||||||
button = accent;
|
|
||||||
button-active = accent;
|
|
||||||
tab-active = accent;
|
|
||||||
player = background;
|
|
||||||
main = background;
|
|
||||||
sidebar = background;
|
|
||||||
};
|
|
||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
|
||||||
playlistIcons
|
|
||||||
historyShortcut
|
|
||||||
hidePodcasts
|
|
||||||
adblock
|
|
||||||
fullAppDisplay
|
|
||||||
keyboardShortcut
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
# Spotatui is a terminal user interface for Spotify, written in Rust. It allows you to control your Spotify playback and manage your playlists directly from the terminal.
|
# Spotatui is a terminal user interface for Spotify, written in Rust. It allows you to control your Spotify playback and manage your playlists directly from the terminal.
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs-stable,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
c = config.lib.stylix.colors;
|
c = config.lib.stylix.colors;
|
||||||
rgb = base: "${c."${base}-rgb-r"}, ${c."${base}-rgb-g"}, ${c."${base}-rgb-b"}";
|
rgb = base: "${c."${base}-rgb-r"}, ${c."${base}-rgb-g"}, ${c."${base}-rgb-b"}";
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs-stable; [
|
||||||
spotatui
|
spotatui
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
# Thunar is a file explorer
|
# Thunar is a file explorer
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
@@ -11,17 +10,16 @@ in {
|
|||||||
# ctrl + m to toggle the menubar
|
# ctrl + m to toggle the menubar
|
||||||
home.packages =
|
home.packages =
|
||||||
(with pkgs-stable; [
|
(with pkgs-stable; [
|
||||||
xfce.thunar
|
thunar
|
||||||
xfce.xfconf
|
xfconf
|
||||||
xfce.tumbler
|
tumbler
|
||||||
xfce.thunar-archive-plugin
|
thunar-archive-plugin
|
||||||
xfce.thunar-volman
|
thunar-volman
|
||||||
xfce.thunar-media-tags-plugin
|
thunar-media-tags-plugin
|
||||||
p7zip
|
p7zip
|
||||||
xarchiver
|
xarchiver
|
||||||
])
|
])
|
||||||
++ (with pkgs; [
|
++ (with pkgs-stable; [
|
||||||
# Icon themes: keep on global pkgs to avoid conflicts with other modules
|
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
material-icons
|
material-icons
|
||||||
material-design-icons
|
material-design-icons
|
||||||
@@ -32,7 +30,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs-stable.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
# bookmarks for the side pane
|
# bookmarks for the side pane
|
||||||
@@ -47,7 +45,7 @@ in {
|
|||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
XDG_ICON_DIR = "${pkgs.papirus-icon-theme}/share/icons/Papirus";
|
XDG_ICON_DIR = "${pkgs-stable.papirus-icon-theme}/share/icons/Papirus";
|
||||||
QS_ICON_THEME = "Papirus";
|
QS_ICON_THEME = "Papirus";
|
||||||
QT_STYLE_OVERRIDE = lib.mkForce "Fusion";
|
QT_STYLE_OVERRIDE = lib.mkForce "Fusion";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{ pkgs, ... }: {
|
{pkgs, pkgs-stable, ...}: {
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellWrapperName = "y";
|
shellWrapperName = "y";
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
git = { package = pkgs.yaziPlugins.git; setup = true; };
|
git = {
|
||||||
|
package = pkgs.yaziPlugins.git;
|
||||||
|
setup = true;
|
||||||
|
};
|
||||||
ouch = pkgs.yaziPlugins.ouch;
|
ouch = pkgs.yaziPlugins.ouch;
|
||||||
piper = pkgs.yaziPlugins.piper;
|
piper = pkgs.yaziPlugins.piper;
|
||||||
convert = pkgs.yaziPlugins.convert;
|
convert = pkgs.yaziPlugins.convert;
|
||||||
"full-border" = { package = pkgs.yaziPlugins."full-border"; setup = true; };
|
|
||||||
"toggle-pane" = pkgs.yaziPlugins."toggle-pane";
|
|
||||||
"jump-to-char" = pkgs.yaziPlugins."jump-to-char";
|
"jump-to-char" = pkgs.yaziPlugins."jump-to-char";
|
||||||
"wl-clipboard" = pkgs.yaziPlugins."wl-clipboard";
|
"wl-clipboard" = pkgs.yaziPlugins."wl-clipboard";
|
||||||
starship = { package = pkgs.yaziPlugins.starship; setup = true; };
|
|
||||||
"batch-rename-gui" = pkgs.yaziPlugins.mkYaziPlugin {
|
"batch-rename-gui" = pkgs.yaziPlugins.mkYaziPlugin {
|
||||||
pname = "batch-rename-gui.yazi";
|
pname = "batch-rename-gui.yazi";
|
||||||
version = "0-unstable-2025-07-08";
|
version = "0-unstable-2025-07-08";
|
||||||
@@ -23,54 +23,107 @@
|
|||||||
hash = "sha256-3RviPY3WOyYi5GWXWRYMWp6VLxCe5cuJX7Kb7AyWxLE=";
|
hash = "sha256-3RviPY3WOyYi5GWXWRYMWp6VLxCe5cuJX7Kb7AyWxLE=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"command-palette" = pkgs.yaziPlugins.mkYaziPlugin {
|
|
||||||
pname = "command-palette.yazi";
|
|
||||||
version = "0-unstable-2025-07-08";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "Mr-Ples";
|
|
||||||
repo = "command-palette.yazi";
|
|
||||||
rev = "e5e61057381e2642d36ba5b9a4977c8196bc1791";
|
|
||||||
hash = "sha256-Mt1q05YgexMyHpy8qQ778jBny9f7XrftDZXjzONZVxg=";
|
|
||||||
};
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
substituteInPlace main.lua \
|
|
||||||
--replace 'line = line:gsub' 'local line = line:gsub'
|
|
||||||
cp -r . $out
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.mgr.ratio = [ 1 4 3 ];
|
settings.mgr.ratio = [0 4 3];
|
||||||
|
|
||||||
settings.plugin = {
|
settings.plugin = {
|
||||||
prepend_fetchers = [
|
prepend_fetchers = [
|
||||||
{ url = "*"; run = "git"; group = "git"; }
|
{
|
||||||
{ url = "*/"; run = "git"; group = "git"; }
|
url = "*";
|
||||||
|
run = "git";
|
||||||
|
group = "git";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
run = "git";
|
||||||
|
group = "git";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
prepend_previewers = [
|
prepend_previewers = [
|
||||||
{ url = "*.md"; run = ''piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"''; }
|
{
|
||||||
|
url = "*.md";
|
||||||
|
run = ''piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
prepend_openers = [
|
prepend_openers = [
|
||||||
{ url = "*.{zip,tar,gz,bz2,xz,7z,rar}"; run = "ouch"; }
|
{
|
||||||
|
url = "*.{zip,tar,gz,bz2,xz,7z,rar}";
|
||||||
|
run = "ouch";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
keymap.mgr.prepend_keymap = [
|
keymap.mgr.prepend_keymap = [
|
||||||
{ on = ["C"]; run = "plugin ouch"; desc = "Compress"; }
|
{
|
||||||
{ on = ["X"]; run = "plugin ouch --args=extract"; desc = "Extract"; }
|
on = ["C"];
|
||||||
{ on = ["c" "p"]; run = "plugin convert -- --extension='png'"; desc = "Convert to PNG"; }
|
run = "plugin ouch";
|
||||||
{ on = ["c" "j"]; run = "plugin convert -- --extension='jpg'"; desc = "Convert to JPG"; }
|
desc = "Compress";
|
||||||
{ on = ["c" "w"]; run = "plugin convert -- --extension='webp'"; desc = "Convert to WebP"; }
|
}
|
||||||
{ on = ["M"]; run = ''shell 'exiftool "$@" | less' --block''; desc = "Show metadata"; }
|
{
|
||||||
{ on = ["T"]; run = "plugin toggle-pane min-parent"; desc = "Toggle parent pane"; }
|
on = ["X"];
|
||||||
{ on = ["F"]; run = "plugin jump-to-char"; desc = "Jump to char"; }
|
run = "plugin ouch --args=extract";
|
||||||
{ on = ["Y"]; run = "plugin wl-clipboard"; desc = "Copy to clipboard (Wayland)"; }
|
desc = "Extract";
|
||||||
{ on = ["B"]; run = "plugin batch-rename-gui"; desc = "Batch rename"; }
|
}
|
||||||
{ on = [";"]; run = "plugin command-palette"; desc = "Command palette"; }
|
{
|
||||||
|
on = ["c" "p"];
|
||||||
|
run = "plugin convert -- --extension='png'";
|
||||||
|
desc = "Convert to PNG";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["c" "j"];
|
||||||
|
run = "plugin convert -- --extension='jpg'";
|
||||||
|
desc = "Convert to JPG";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["c" "w"];
|
||||||
|
run = "plugin convert -- --extension='webp'";
|
||||||
|
desc = "Convert to WebP";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["M"];
|
||||||
|
run = ''shell 'exiftool "$@" | less' --block'';
|
||||||
|
desc = "Show metadata";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["T"];
|
||||||
|
run = "plugin toggle-parent";
|
||||||
|
desc = "Toggle parent pane";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["F"];
|
||||||
|
run = "plugin jump-to-char";
|
||||||
|
desc = "Jump to char";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["Y"];
|
||||||
|
run = "plugin wl-clipboard";
|
||||||
|
desc = "Copy to clipboard (Wayland)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["B"];
|
||||||
|
run = "plugin batch-rename-gui";
|
||||||
|
desc = "Batch rename";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [ glow ouch hexyl exiftool starship fzf ];
|
home.packages = with pkgs-stable; [glow ouch hexyl exiftool wl-clipboard];
|
||||||
|
|
||||||
|
xdg.configFile."yazi/plugins/toggle-parent.yazi/main.lua".text = ''
|
||||||
|
--- @sync entry
|
||||||
|
local RESTORE_WIDTH = 1
|
||||||
|
return {
|
||||||
|
entry = function(st, job)
|
||||||
|
local r = rt.mgr.ratio
|
||||||
|
if r.parent == 0 then
|
||||||
|
rt.mgr.ratio = { st.width or RESTORE_WIDTH, r.current, r.preview }
|
||||||
|
else
|
||||||
|
st.width = r.parent
|
||||||
|
rt.mgr.ratio = { 0, r.current, r.preview }
|
||||||
|
end
|
||||||
|
ya.emit("app:resize", {})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
rounding = config.theme.rounding + config.theme.gaps-out;
|
|
||||||
inherit (config.stylix) fonts;
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
papirus-icon-theme
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.caelestia.settings = {
|
|
||||||
paths.sessionGif = ./session-gif-hacker-cat.gif;
|
|
||||||
background.enabled = false;
|
|
||||||
appearance = {
|
|
||||||
transparency = {
|
|
||||||
enabled = true;
|
|
||||||
base = config.theme.active-opacity;
|
|
||||||
layers = config.theme.inactive-opacity;
|
|
||||||
};
|
|
||||||
font.family = {
|
|
||||||
material = "Material Symbols Rounded";
|
|
||||||
mono = fonts.monospace.name;
|
|
||||||
sans = fonts.sansSerif.name;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
utilities = {
|
|
||||||
enabled = true;
|
|
||||||
maxToasts = 4;
|
|
||||||
toasts = {
|
|
||||||
audioInputChanged = false;
|
|
||||||
audioOutputChanged = false;
|
|
||||||
capsLockChanged = false;
|
|
||||||
chargingChanged = true;
|
|
||||||
configLoaded = false;
|
|
||||||
dndChanged = true;
|
|
||||||
gameModeChanged = true;
|
|
||||||
numLockChanged = false;
|
|
||||||
nowPlaying = false;
|
|
||||||
kbLayoutChanged = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
dashboard.showOnHover = false;
|
|
||||||
border = {
|
|
||||||
inherit rounding;
|
|
||||||
thickness = 8;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
programs.caelestia.settings.bar = {
|
|
||||||
clock.showIcon = false;
|
|
||||||
popouts.activeWindow = false;
|
|
||||||
persistent = true;
|
|
||||||
status = {
|
|
||||||
showBattery = true;
|
|
||||||
showMicrophone = false;
|
|
||||||
showLockStatus = false;
|
|
||||||
showBluetooth = true;
|
|
||||||
showAudio = true;
|
|
||||||
showKbLayout = false;
|
|
||||||
showNetwork = true;
|
|
||||||
};
|
|
||||||
workspaces = {
|
|
||||||
activeIndicator = true;
|
|
||||||
activeLabel = " ";
|
|
||||||
activeTrail = false;
|
|
||||||
label = " ";
|
|
||||||
occupiedBg = true;
|
|
||||||
occupiedLabel = " ";
|
|
||||||
showWindows = false;
|
|
||||||
shown = 5;
|
|
||||||
};
|
|
||||||
entries = [
|
|
||||||
{
|
|
||||||
id = "logo";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "workspaces";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "spacer";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "activeWindow";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "spacer";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "tray";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "clock";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "statusIcons";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "power";
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
tray = {
|
|
||||||
background = false;
|
|
||||||
recolour = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
# Caelestia Shell Home Manager Configuration
|
|
||||||
# See https://github.com/caelestia-dots/shell
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
inputs.caelestia-shell.homeManagerModules.default
|
|
||||||
./bar.nix
|
|
||||||
./launcher.nix
|
|
||||||
./appearance.nix
|
|
||||||
./scheme.nix
|
|
||||||
./swappy.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.caelestia = {
|
|
||||||
enable = true;
|
|
||||||
systemd.enable = false;
|
|
||||||
settings = {
|
|
||||||
services.weatherLocation = "Paris";
|
|
||||||
general = {
|
|
||||||
apps = {
|
|
||||||
terminal = ["ghostty"];
|
|
||||||
audio = ["pavucontrol"];
|
|
||||||
explorer = ["thunar"];
|
|
||||||
};
|
|
||||||
idle = {
|
|
||||||
timeouts = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
cli = {
|
|
||||||
enable = true;
|
|
||||||
settings.theme = {
|
|
||||||
enableTerm = false;
|
|
||||||
enableDiscord = false;
|
|
||||||
enableSpicetify = false;
|
|
||||||
enableBtop = false;
|
|
||||||
enableCava = false;
|
|
||||||
enableHypr = false;
|
|
||||||
enableGtk = false;
|
|
||||||
enableQt = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
gpu-screen-recorder
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
|
||||||
"uwsm app -- caelestia resizer -d"
|
|
||||||
"uwsm app -- caelestia shell -d"
|
|
||||||
"caelestia scheme set -n onedark"
|
|
||||||
"caelestia scheme set -n custom"
|
|
||||||
];
|
|
||||||
|
|
||||||
# shell.json is managed by home-manager (read-only symlink) but caelestia
|
|
||||||
# needs to write to it at runtime: replace the symlink with a mutable copy.
|
|
||||||
# The stale .hm-backup must be removed before linkGeneration so HM can
|
|
||||||
# back up the runtime-modified shell.json without hitting a conflict.
|
|
||||||
home.activation.caelestiaCleanBackup = lib.hm.dag.entryBefore ["linkGeneration"] ''
|
|
||||||
$DRY_RUN_CMD rm -f "$HOME/.config/caelestia/shell.json.hm-backup"
|
|
||||||
'';
|
|
||||||
|
|
||||||
home.activation.caelestiaWritableShellConfig = lib.hm.dag.entryAfter ["linkGeneration"] ''
|
|
||||||
if [ -L "$HOME/.config/caelestia/shell.json" ]; then
|
|
||||||
$DRY_RUN_CMD cp --remove-destination \
|
|
||||||
"$(readlink -f "$HOME/.config/caelestia/shell.json")" \
|
|
||||||
"$HOME/.config/caelestia/shell.json"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.cliphist = {
|
|
||||||
enable = true;
|
|
||||||
allowImages = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,188 +0,0 @@
|
|||||||
{
|
|
||||||
programs.caelestia.settings = {
|
|
||||||
session.commands = {
|
|
||||||
shutdown = [
|
|
||||||
"systemctl"
|
|
||||||
"poweroff"
|
|
||||||
];
|
|
||||||
logout = [
|
|
||||||
"loginctl"
|
|
||||||
"lock-session"
|
|
||||||
];
|
|
||||||
hibernate = [
|
|
||||||
"systemctl"
|
|
||||||
"hibernate"
|
|
||||||
];
|
|
||||||
reboot = [
|
|
||||||
"systemctl"
|
|
||||||
"reboot"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
launcher = {
|
|
||||||
actionPrefix = "/";
|
|
||||||
actions = [
|
|
||||||
{
|
|
||||||
name = "Calculator";
|
|
||||||
icon = "calculate";
|
|
||||||
description = "Do simple math equations (powered by Qalc)";
|
|
||||||
command = [
|
|
||||||
"autocomplete"
|
|
||||||
"calc"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Shutdown";
|
|
||||||
icon = "power_settings_new";
|
|
||||||
description = "Shutdown the system";
|
|
||||||
command = [
|
|
||||||
"systemctl"
|
|
||||||
"poweroff"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Reboot";
|
|
||||||
icon = "cached";
|
|
||||||
description = "Reboot the system";
|
|
||||||
command = [
|
|
||||||
"systemctl"
|
|
||||||
"reboot"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Logout";
|
|
||||||
icon = "exit_to_app";
|
|
||||||
description = "Log out of the current session";
|
|
||||||
command = [
|
|
||||||
"loginctl"
|
|
||||||
"terminate-user"
|
|
||||||
""
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Lock";
|
|
||||||
icon = "lock";
|
|
||||||
description = "Lock the current session";
|
|
||||||
command = [
|
|
||||||
"loginctl"
|
|
||||||
"lock-session"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Sleep";
|
|
||||||
icon = "bedtime";
|
|
||||||
description = "Suspend then hibernate";
|
|
||||||
command = [
|
|
||||||
"systemctl"
|
|
||||||
"suspend-then-hibernate"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Restart caelestia";
|
|
||||||
icon = "cached";
|
|
||||||
description = "Restart caelestia";
|
|
||||||
command = [
|
|
||||||
"hyprctl"
|
|
||||||
"dispatch"
|
|
||||||
"exec"
|
|
||||||
"caelestia-shell kill | sleep 1 | caelestia-shell"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Emoji Picker";
|
|
||||||
icon = "mood";
|
|
||||||
description = "Toggle the emoji picker";
|
|
||||||
command = [
|
|
||||||
"caelestia"
|
|
||||||
"emoji"
|
|
||||||
"-p"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Clipboard History";
|
|
||||||
icon = "content_paste";
|
|
||||||
description = "Toggle the clipboard history";
|
|
||||||
command = [
|
|
||||||
"caelestia"
|
|
||||||
"clipboard"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Delete from Clipboard History";
|
|
||||||
icon = "content_paste_off";
|
|
||||||
description = "Delete a line from the clipboard history";
|
|
||||||
command = [
|
|
||||||
"caelestia"
|
|
||||||
"clipboard"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Night Shift";
|
|
||||||
icon = "moon_stars";
|
|
||||||
description = "Toggle Night Shift, the blue light filter";
|
|
||||||
command = ["nightshift-toggle"];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Hyprpicker";
|
|
||||||
icon = "colorize";
|
|
||||||
description = "Pick an hex color";
|
|
||||||
command = [
|
|
||||||
"hyprpicker"
|
|
||||||
"-a"
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Run in background";
|
|
||||||
icon = "play_circle";
|
|
||||||
description = "Type and run any shell command in the background";
|
|
||||||
command = [
|
|
||||||
"ghostty"
|
|
||||||
"--title=run-bg"
|
|
||||||
"-e"
|
|
||||||
"bash"
|
|
||||||
"-c"
|
|
||||||
"printf 'Run: '; read -r cmd; [ -n \"$cmd\" ] && hyprctl dispatch exec \"$cmd\""
|
|
||||||
];
|
|
||||||
enabled = true;
|
|
||||||
dangerous = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
dragThreshold = 50;
|
|
||||||
enableDangerousActions = false;
|
|
||||||
maxShown = 7;
|
|
||||||
specialPrefix = "@";
|
|
||||||
useFuzzy = {
|
|
||||||
apps = false;
|
|
||||||
actions = false;
|
|
||||||
schemes = false;
|
|
||||||
variants = false;
|
|
||||||
wallpapers = false;
|
|
||||||
};
|
|
||||||
showOnHover = false;
|
|
||||||
hiddenApps = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
# This Nix module customizes the color scheme of the Caelestia CLI application using the Stylix base16 color palette.
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
colors = config.lib.stylix.colors;
|
|
||||||
|
|
||||||
customSchemeFile = pkgs.writeText "custom-dark.txt" ''
|
|
||||||
primary_paletteKeyColor ${colors.base0D}
|
|
||||||
secondary_paletteKeyColor ${colors.base04}
|
|
||||||
tertiary_paletteKeyColor ${colors.base08}
|
|
||||||
neutral_paletteKeyColor ${colors.base03}
|
|
||||||
neutral_variant_paletteKeyColor ${colors.base03}
|
|
||||||
background ${colors.base00}
|
|
||||||
onBackground ${colors.base05}
|
|
||||||
surface ${colors.base00}
|
|
||||||
surfaceDim ${colors.base00}
|
|
||||||
surfaceBright ${colors.base02}
|
|
||||||
surfaceContainerLowest ${colors.base01}
|
|
||||||
surfaceContainerLow ${colors.base01}
|
|
||||||
surfaceContainer ${colors.base01}
|
|
||||||
surfaceContainerHigh ${colors.base02}
|
|
||||||
surfaceContainerHighest ${colors.base02}
|
|
||||||
onSurface ${colors.base05}
|
|
||||||
surfaceVariant ${colors.base02}
|
|
||||||
onSurfaceVariant ${colors.base04}
|
|
||||||
inverseSurface ${colors.base05}
|
|
||||||
inverseOnSurface ${colors.base00}
|
|
||||||
outline ${colors.base03}
|
|
||||||
outlineVariant ${colors.base02}
|
|
||||||
shadow ${colors.base00}
|
|
||||||
scrim ${colors.base00}
|
|
||||||
surfaceTint ${colors.base0D}
|
|
||||||
primary ${colors.base0D}
|
|
||||||
onPrimary ${colors.base00}
|
|
||||||
primaryContainer ${colors.base0D}
|
|
||||||
onPrimaryContainer ${colors.base05}
|
|
||||||
inversePrimary ${colors.base0D}
|
|
||||||
secondary ${colors.base0C}
|
|
||||||
onSecondary ${colors.base00}
|
|
||||||
secondaryContainer ${colors.base02}
|
|
||||||
onSecondaryContainer ${colors.base0C}
|
|
||||||
tertiary ${colors.base08}
|
|
||||||
onTertiary ${colors.base00}
|
|
||||||
tertiaryContainer ${colors.base08}
|
|
||||||
onTertiaryContainer ${colors.base00}
|
|
||||||
error ${colors.base08}
|
|
||||||
onError ${colors.base00}
|
|
||||||
errorContainer ${colors.base08}
|
|
||||||
onErrorContainer ${colors.base05}
|
|
||||||
primaryFixed ${colors.base0D}
|
|
||||||
primaryFixedDim ${colors.base0D}
|
|
||||||
onPrimaryFixed ${colors.base00}
|
|
||||||
onPrimaryFixedVariant ${colors.base00}
|
|
||||||
secondaryFixed ${colors.base0C}
|
|
||||||
secondaryFixedDim ${colors.base0C}
|
|
||||||
onSecondaryFixed ${colors.base00}
|
|
||||||
onSecondaryFixedVariant ${colors.base02}
|
|
||||||
tertiaryFixed ${colors.base08}
|
|
||||||
tertiaryFixedDim ${colors.base08}
|
|
||||||
onTertiaryFixed ${colors.base00}
|
|
||||||
onTertiaryFixedVariant ${colors.base00}
|
|
||||||
term0 ${colors.base00}
|
|
||||||
term1 ${colors.base08}
|
|
||||||
term2 ${colors.base0B}
|
|
||||||
term3 ${colors.base0A}
|
|
||||||
term4 ${colors.base0D}
|
|
||||||
term5 ${colors.base0E}
|
|
||||||
term6 ${colors.base0C}
|
|
||||||
term7 ${colors.base05}
|
|
||||||
term8 ${colors.base03}
|
|
||||||
term9 ${colors.base08}
|
|
||||||
term10 ${colors.base0B}
|
|
||||||
term11 ${colors.base0A}
|
|
||||||
term12 ${colors.base0D}
|
|
||||||
term13 ${colors.base0E}
|
|
||||||
term14 ${colors.base0C}
|
|
||||||
term15 ${colors.base07}
|
|
||||||
rosewater ${colors.base06}
|
|
||||||
flamingo ${colors.base0F}
|
|
||||||
pink ${colors.base0E}
|
|
||||||
mauve ${colors.base0D}
|
|
||||||
red ${colors.base08}
|
|
||||||
maroon ${colors.base08}
|
|
||||||
peach ${colors.base09}
|
|
||||||
yellow ${colors.base0A}
|
|
||||||
green ${colors.base0B}
|
|
||||||
teal ${colors.base0C}
|
|
||||||
sky ${colors.base0C}
|
|
||||||
sapphire ${colors.base0C}
|
|
||||||
blue ${colors.base0D}
|
|
||||||
lavender ${colors.base0D}
|
|
||||||
klink ${colors.base0D}
|
|
||||||
klinkSelection ${colors.base0D}
|
|
||||||
kvisited ${colors.base0E}
|
|
||||||
kvisitedSelection ${colors.base0E}
|
|
||||||
knegative ${colors.base08}
|
|
||||||
knegativeSelection ${colors.base08}
|
|
||||||
kneutral ${colors.base0A}
|
|
||||||
kneutralSelection ${colors.base0A}
|
|
||||||
kpositive ${colors.base0B}
|
|
||||||
kpositiveSelection ${colors.base0B}
|
|
||||||
text ${colors.base05}
|
|
||||||
subtext1 ${colors.base04}
|
|
||||||
subtext0 ${colors.base03}
|
|
||||||
overlay2 ${colors.base03}
|
|
||||||
overlay1 ${colors.base03}
|
|
||||||
overlay0 ${colors.base02}
|
|
||||||
surface2 ${colors.base02}
|
|
||||||
surface1 ${colors.base01}
|
|
||||||
surface0 ${colors.base01}
|
|
||||||
base ${colors.base00}
|
|
||||||
mantle ${colors.base00}
|
|
||||||
crust ${colors.base00}
|
|
||||||
success ${colors.base0B}
|
|
||||||
onSuccess ${colors.base00}
|
|
||||||
successContainer ${colors.base0B}
|
|
||||||
onSuccessContainer ${colors.base05}
|
|
||||||
'';
|
|
||||||
|
|
||||||
colorsHash = builtins.hashString "sha256" (builtins.toJSON colors);
|
|
||||||
|
|
||||||
customCli =
|
|
||||||
inputs.caelestia-cli.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs
|
|
||||||
(oldAttrs: {
|
|
||||||
name = "${oldAttrs.name or "caelestia-cli"}-themed-${colorsHash}";
|
|
||||||
postUnpack = ''
|
|
||||||
mkdir -p $sourceRoot/src/caelestia/data/schemes/custom/main
|
|
||||||
cp ${customSchemeFile} $sourceRoot/src/caelestia/data/schemes/custom/main/dark.txt
|
|
||||||
echo "Custom scheme added to source"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
programs.caelestia.cli.package = customCli;
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB |
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
xdg.configFile."swappy/config".text = ''
|
|
||||||
[Default]
|
|
||||||
save_dir=~/Pictures/Screenshots
|
|
||||||
save_filename_format=screenshot-%Y%m%d-%H%M%S.png
|
|
||||||
show_panel=false
|
|
||||||
line_size=5
|
|
||||||
text_size=20
|
|
||||||
text_font=sans-serif
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
@@ -63,17 +64,17 @@ in {
|
|||||||
{
|
{
|
||||||
key = "o";
|
key = "o";
|
||||||
desc = "Obsidian";
|
desc = "Obsidian";
|
||||||
cmd = "${pkgs.obsidian}/bin/obsidian";
|
cmd = "${pkgs-stable.obsidian}/bin/obsidian";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "s";
|
key = "s";
|
||||||
desc = "Signal";
|
desc = "Signal";
|
||||||
cmd = "${pkgs.signal-desktop}/bin/signal-desktop";
|
cmd = "${pkgs-stable.signal-desktop}/bin/signal-desktop";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "t";
|
key = "t";
|
||||||
desc = "TickTick";
|
desc = "TickTick";
|
||||||
cmd = "${pkgs.ticktick}/bin/ticktick";
|
cmd = "${pkgs-stable.ticktick}/bin/ticktick";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "b";
|
key = "b";
|
||||||
@@ -91,14 +92,13 @@ in {
|
|||||||
"$mod,B, exec, uwsm app -- ${config.programs.helium.package}/bin/helium" # Browser
|
"$mod,B, exec, uwsm app -- ${config.programs.helium.package}/bin/helium" # Browser
|
||||||
|
|
||||||
# Power
|
# Power
|
||||||
"$mod, X, global, caelestia:session" # Powermenu
|
|
||||||
(
|
(
|
||||||
"$shiftMod, X, exec, "
|
"$mod, X, exec, "
|
||||||
+ lib.getExe (mkMenu [
|
+ lib.getExe (mkMenu [
|
||||||
{
|
{
|
||||||
key = "l";
|
key = "l";
|
||||||
desc = "Lock";
|
desc = "Lock";
|
||||||
cmd = "hyprctl dispatch global caelestia:lock";
|
cmd = "hyprlock";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "s";
|
key = "s";
|
||||||
@@ -120,26 +120,20 @@ in {
|
|||||||
desc = "Nightshift";
|
desc = "Nightshift";
|
||||||
cmd = "nightshift-toggle";
|
cmd = "nightshift-toggle";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
key = "c";
|
|
||||||
desc = "Restart caelestia";
|
|
||||||
cmd = "hyprctl dispatch exec 'caelestia-shell kill | sleep 1 | caelestia-shell'";
|
|
||||||
}
|
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
|
|
||||||
# Quick launch
|
# Quick launch
|
||||||
"$mod,RETURN, exec, uwsm app -- ${pkgs.ghostty}/bin/ghostty" # Ghostty (terminal)
|
"$mod,RETURN, exec, uwsm app -- ${pkgs.ghostty}/bin/ghostty" # Ghostty (terminal)
|
||||||
"$mod,E, exec, uwsm app -- ${pkgs.thunar}/bin/thunar" # Thunar
|
"$mod,E, exec, uwsm app -- ${pkgs-stable.thunar}/bin/thunar" # Thunar
|
||||||
"$shiftMod, E, exec, pkill fuzzel || caelestia emoji -p" # Emoji picker
|
"$mod, SPACE, exec, tofi-drun" # Launcher
|
||||||
"$mod, SPACE, global, caelestia:launcher" # Launcher
|
"$mod, N, exec, swaync-client -t" # Notification center
|
||||||
"$mod, N, exec, caelestia shell drawers toggle sidebar" # Sidebar (Notifications, quick actions)
|
|
||||||
"$mod, D, exec, caelestia shell drawers toggle dashboard" # Dashboard
|
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
"$mod,Q, killactive," # Close window
|
"$mod,Q, killactive," # Close window
|
||||||
"$mod,F, fullscreen" # Toggle Fullscreen
|
"$mod,F, fullscreen" # Toggle Fullscreen
|
||||||
"$shiftMod,F, togglefloating," # Toggle Floating
|
"$shiftMod,F, togglefloating," # Toggle Floating
|
||||||
|
"$shiftMod, SPACE, exec, focus-toggle" # Toggle focus mode
|
||||||
|
|
||||||
# Focus Windows
|
# Focus Windows
|
||||||
"$mod,H, movefocus, l" # Move focus left
|
"$mod,H, movefocus, l" # Move focus left
|
||||||
@@ -152,10 +146,9 @@ in {
|
|||||||
"$shiftMod,L, focusmonitor, 1" # Focus next monitor
|
"$shiftMod,L, focusmonitor, 1" # Focus next monitor
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
"$shiftMod, SPACE, exec, caelestia shell gameMode toggle" # Toggle Focus/Game mode
|
"$shiftMod, S, exec, hyprshot -m region" # Capture region
|
||||||
"$shiftMod, S, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
", Print, exec, hyprshot -m region" # Capture region
|
||||||
", Print, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
"$shiftMod+Alt, S, exec, hyprshot -m output" # Capture screen
|
||||||
"$shiftMod+Alt, S, global, caelestia:screenshot" # Capture region
|
|
||||||
]
|
]
|
||||||
++ (builtins.concatLists (
|
++ (builtins.concatLists (
|
||||||
builtins.genList (
|
builtins.genList (
|
||||||
@@ -176,32 +169,21 @@ in {
|
|||||||
|
|
||||||
bindl = [
|
bindl = [
|
||||||
# Brightness
|
# Brightness
|
||||||
", XF86MonBrightnessUp, global, caelestia:brightnessUp"
|
", XF86MonBrightnessUp, exec, bright-up"
|
||||||
", XF86MonBrightnessDown, global, caelestia:brightnessDown"
|
", XF86MonBrightnessDown, exec, bright-down"
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
", XF86AudioPlay, global, caelestia:mediaToggle"
|
", XF86AudioPlay, exec, playerctl play-pause"
|
||||||
", XF86AudioPause, global, caelestia:mediaToggle"
|
", XF86AudioPause, exec, playerctl play-pause"
|
||||||
", XF86AudioNext, global, caelestia:mediaNext"
|
", XF86AudioNext, exec, playerctl next"
|
||||||
", XF86AudioPrev, global, caelestia:mediaPrev"
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
", XF86AudioStop, global, caelestia:mediaStop"
|
", XF86AudioStop, exec, playerctl stop"
|
||||||
|
|
||||||
# Sound
|
# Sound
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
", XF86AudioMute, exec, vol-mute"
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
", XF86AudioRaiseVolume, exec, vol-up"
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, vol-down"
|
||||||
];
|
", XF86AudioMicMute, exec, mic-mute"
|
||||||
|
|
||||||
bindin = [
|
|
||||||
# Launcher
|
|
||||||
"$mod, mouse:272, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:273, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:274, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:275, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:276, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:277, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse_up, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse_down, global, caelestia:launcherInterrupt"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Hyprland is a dynamic tiling Wayland compositor that is highly customizable and performant.
|
# Hyprland is a dynamic tiling Wayland compositor that is highly customizable and performant.
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
@@ -19,17 +20,20 @@ in {
|
|||||||
./animations.nix
|
./animations.nix
|
||||||
./bindings.nix
|
./bindings.nix
|
||||||
./polkitagent.nix
|
./polkitagent.nix
|
||||||
./keyboard-backlight.nix # CHANGEME: This is for omen laptop only
|
./hyprpaper.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
|
(with pkgs; [
|
||||||
qt5.qtwayland
|
qt5.qtwayland
|
||||||
qt6.qtwayland
|
qt6.qtwayland
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
qt6Packages.qt6ct
|
qt6Packages.qt6ct
|
||||||
|
hyprland-qtutils
|
||||||
|
])
|
||||||
|
++ (with pkgs-stable; [
|
||||||
xcb-util-cursor
|
xcb-util-cursor
|
||||||
libxcb
|
libxcb
|
||||||
hyprland-qtutils
|
|
||||||
adw-gtk3
|
adw-gtk3
|
||||||
hyprshot
|
hyprshot
|
||||||
hyprpicker
|
hyprpicker
|
||||||
@@ -42,26 +46,17 @@ in {
|
|||||||
dconf
|
dconf
|
||||||
wayland-utils
|
wayland-utils
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
];
|
]);
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configType = "hyprlang";
|
configType = "hyprlang";
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
systemd = {
|
systemd.enable = false;
|
||||||
enable = false;
|
|
||||||
variables = [
|
|
||||||
"--all"
|
|
||||||
]; # https://wiki.hyprland.org/Nix/Hyprland-on-Home-Manager/#programs-dont-work-in-systemd-services-but-do-on-the-terminal
|
|
||||||
};
|
|
||||||
package = null;
|
package = null;
|
||||||
portalPackage = null;
|
portalPackage = null;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
exec-once = [
|
|
||||||
"dbus-update-activation-environment --systemd --all &"
|
|
||||||
];
|
|
||||||
|
|
||||||
monitor = [
|
monitor = [
|
||||||
",prefered,auto,1" # default
|
",prefered,auto,1" # default
|
||||||
];
|
];
|
||||||
@@ -84,7 +79,6 @@ in {
|
|||||||
|
|
||||||
cursor = {
|
cursor = {
|
||||||
no_hardware_cursors = true;
|
no_hardware_cursors = true;
|
||||||
default_monitor = "eDP-2";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
@@ -122,6 +116,10 @@ in {
|
|||||||
|
|
||||||
gesture = "3, horizontal, workspace";
|
gesture = "3, horizontal, workspace";
|
||||||
|
|
||||||
|
layerrule = [
|
||||||
|
"match:namespace launcher, animation popin 70%"
|
||||||
|
];
|
||||||
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"match:class .*, suppress_event maximize"
|
"match:class .*, suppress_event maximize"
|
||||||
"match:class helium, suppress_event fullscreen"
|
"match:class helium, suppress_event fullscreen"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# Hyprpaper is used to set the wallpaper on the system
|
# Hyprpaper is used to set the wallpaper on the system
|
||||||
{lib, ...}: {
|
{pkgs-stable, lib, ...}: {
|
||||||
# The wallpaper is set by stylix
|
# The wallpaper is set by stylix
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-stable.hyprpaper;
|
||||||
settings = {
|
settings = {
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
splash = false;
|
splash = false;
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# Turn the keyboard red/off when the battery is low
|
|
||||||
# Include this one only if you have a omen laptop with RGB keyboard
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
alert-when-low-battery = false;
|
|
||||||
keyboard-backlight = pkgs.writeShellScriptBin "keyboard-backlight" ''
|
|
||||||
function set_keyboard_backlight {
|
|
||||||
local color=$1
|
|
||||||
echo $color > /sys/devices/platform/hp-wmi/rgb_zones/zone00
|
|
||||||
echo $color > /sys/devices/platform/hp-wmi/rgb_zones/zone01
|
|
||||||
echo $color > /sys/devices/platform/hp-wmi/rgb_zones/zone02
|
|
||||||
echo $color > /sys/devices/platform/hp-wmi/rgb_zones/zone03
|
|
||||||
}
|
|
||||||
state="white"
|
|
||||||
set_keyboard_backlight ${config.lib.stylix.colors.base0D}
|
|
||||||
if [ "${toString alert-when-low-battery}" = "false" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
while true; do
|
|
||||||
BATTERY_LEVEL=$(cat /sys/class/power_supply/BAT*/capacity)
|
|
||||||
IS_CHARGING=$(cat /sys/class/power_supply/BAT*/status)
|
|
||||||
if [[ $BATTERY_LEVEL -le 10 && $IS_CHARGING != "Charging" ]]; then
|
|
||||||
if [[ $state == "red" ]];then
|
|
||||||
state="white"
|
|
||||||
set_keyboard_backlight "000000"
|
|
||||||
else
|
|
||||||
state="red"
|
|
||||||
set_keyboard_backlight "FF0000"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
state="white"
|
|
||||||
set_keyboard_backlight ${config.lib.stylix.colors.base0D}
|
|
||||||
fi
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
command = "bash ${keyboard-backlight}/bin/keyboard-backlight &";
|
|
||||||
in {
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [command];
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# HyprPolkitAgent is a simple polkit agent for wayland compositors
|
# HyprPolkitAgent is a simple polkit agent for wayland compositors
|
||||||
{pkgs, ...}: {
|
{pkgs-stable, ...}: {
|
||||||
home.packages = with pkgs; [hyprpolkitagent];
|
home.packages = with pkgs-stable; [hyprpolkitagent];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start hyprpolkitagent"];
|
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start hyprpolkitagent"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,85 @@
|
|||||||
|
{config, ...}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
in {
|
||||||
|
stylix.targets.hyprlock.enable = false;
|
||||||
|
|
||||||
|
programs.hyprlock = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
background = [
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
color = "rgba(${c.base00}FF)";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
label = [
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
text = ''cmd[update:0] echo "[$USER@$(hostname) ~]"'';
|
||||||
|
color = "rgb(${c.base0D})";
|
||||||
|
font_size = 13;
|
||||||
|
font_family = "Maple Mono NF";
|
||||||
|
position = "48, -48";
|
||||||
|
halign = "left";
|
||||||
|
valign = "top";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
text = ''cmd[update:1000] echo "$(date +'%H:%M:%S')"'';
|
||||||
|
color = "rgb(${c.base05})";
|
||||||
|
font_size = 13;
|
||||||
|
font_family = "Maple Mono NF";
|
||||||
|
position = "48, -70";
|
||||||
|
halign = "left";
|
||||||
|
valign = "top";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
text = ''cmd[update:60000] echo "$(date +'%A %d %B %Y')"'';
|
||||||
|
color = "rgb(${c.base04})";
|
||||||
|
font_size = 13;
|
||||||
|
font_family = "Maple Mono NF";
|
||||||
|
position = "48, -92";
|
||||||
|
halign = "left";
|
||||||
|
valign = "top";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
text = "passwd:";
|
||||||
|
color = "rgb(${c.base0D})";
|
||||||
|
font_size = 13;
|
||||||
|
font_family = "Maple Mono NF";
|
||||||
|
position = "48, -141";
|
||||||
|
halign = "left";
|
||||||
|
valign = "top";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
"input-field" = [
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
size = "200, 20";
|
||||||
|
outline_thickness = 0;
|
||||||
|
dots_size = 0.3;
|
||||||
|
dots_spacing = 0.2;
|
||||||
|
dots_center = false;
|
||||||
|
outer_color = "rgba(00000000)";
|
||||||
|
inner_color = "rgba(00000000)";
|
||||||
|
font_color = "rgb(${c.base05})";
|
||||||
|
fade_on_empty = false;
|
||||||
|
placeholder_text = "";
|
||||||
|
hide_input = true;
|
||||||
|
rounding = 0;
|
||||||
|
check_color = "rgb(${c.base0B})";
|
||||||
|
fail_color = "rgb(${c.base08})";
|
||||||
|
fail_text = ''<span font_desc="Maple Mono NF 13">auth failed</span>'';
|
||||||
|
capslock_color = "rgb(${c.base0A})";
|
||||||
|
position = "116, -138";
|
||||||
|
halign = "left";
|
||||||
|
valign = "top";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,24 +1,17 @@
|
|||||||
# Mime type associations for the system.
|
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
with lib; let
|
|
||||||
defaultApps = {
|
defaultApps = {
|
||||||
# check desktop files here: `ls $(echo $XDG_DATA_DIRS| sed "s/:/ /g")`
|
text = ["nvim-ghostty.desktop"];
|
||||||
text = [
|
|
||||||
# "org.gnome.TextEditor.desktop"
|
|
||||||
"nvim-ghostty.desktop"
|
|
||||||
];
|
|
||||||
code = ["nvim-ghostty.desktop"];
|
code = ["nvim-ghostty.desktop"];
|
||||||
image = ["imv-dir.desktop"];
|
image = ["imv-dir.desktop"];
|
||||||
audio = ["mpv.desktop"];
|
audio = ["vlc.desktop"];
|
||||||
video = ["mpv.desktop"];
|
video = ["vlc.desktop"];
|
||||||
directory = ["thunar.desktop"];
|
directory = ["thunar.desktop"];
|
||||||
office = ["libreoffice.desktop"];
|
office = ["onlyoffice-desktopeditors.desktop"];
|
||||||
pdf = ["zathura.desktop"];
|
pdf = ["onlyoffice-desktopeditors.desktop"];
|
||||||
terminal = ["ghostty.desktop"];
|
|
||||||
archive = ["xarchiver.desktop"];
|
archive = ["xarchiver.desktop"];
|
||||||
browser = ["helium.desktop"];
|
browser = ["helium.desktop"];
|
||||||
};
|
};
|
||||||
@@ -34,7 +27,6 @@ with lib; let
|
|||||||
"text/x-go"
|
"text/x-go"
|
||||||
"text/x-java"
|
"text/x-java"
|
||||||
"text/x-csharp"
|
"text/x-csharp"
|
||||||
|
|
||||||
"text/x-python"
|
"text/x-python"
|
||||||
"application/x-shellscript"
|
"application/x-shellscript"
|
||||||
"text/javascript"
|
"text/javascript"
|
||||||
@@ -42,7 +34,6 @@ with lib; let
|
|||||||
"text/css"
|
"text/css"
|
||||||
"text/x-php"
|
"text/x-php"
|
||||||
"text/x-ruby"
|
"text/x-ruby"
|
||||||
|
|
||||||
"application/json"
|
"application/json"
|
||||||
"application/xml"
|
"application/xml"
|
||||||
"text/xml"
|
"text/xml"
|
||||||
@@ -51,11 +42,8 @@ with lib; let
|
|||||||
"application/toml"
|
"application/toml"
|
||||||
"text/x-nix"
|
"text/x-nix"
|
||||||
"text/markdown"
|
"text/markdown"
|
||||||
|
|
||||||
"text/x-dockerfile"
|
"text/x-dockerfile"
|
||||||
"application/x-yaml"
|
|
||||||
"text/x-terraform"
|
"text/x-terraform"
|
||||||
|
|
||||||
"application/x-perl"
|
"application/x-perl"
|
||||||
"text/x-lua"
|
"text/x-lua"
|
||||||
"text/x-haskell"
|
"text/x-haskell"
|
||||||
@@ -104,12 +92,17 @@ with lib; let
|
|||||||
"application/rtf"
|
"application/rtf"
|
||||||
];
|
];
|
||||||
pdf = ["application/pdf"];
|
pdf = ["application/pdf"];
|
||||||
terminal = ["terminal"];
|
|
||||||
archive = [
|
archive = [
|
||||||
"application/zip"
|
"application/zip"
|
||||||
"application/rar"
|
"application/x-rar-compressed"
|
||||||
"application/7z"
|
"application/vnd.rar"
|
||||||
"application/*tar"
|
"application/x-7z-compressed"
|
||||||
|
"application/x-tar"
|
||||||
|
"application/gzip"
|
||||||
|
"application/x-bzip2"
|
||||||
|
"application/x-xz"
|
||||||
|
"application/x-zstd"
|
||||||
|
"application/x-compressed-tar"
|
||||||
];
|
];
|
||||||
browser = [
|
browser = [
|
||||||
"text/html"
|
"text/html"
|
||||||
@@ -125,16 +118,16 @@ with lib; let
|
|||||||
desktopName = "Neovim (Ghostty)";
|
desktopName = "Neovim (Ghostty)";
|
||||||
exec = ''ghostty --title="Neovim Editor" -e nvim %F'';
|
exec = ''ghostty --title="Neovim Editor" -e nvim %F'';
|
||||||
terminal = false;
|
terminal = false;
|
||||||
categories = [
|
categories = ["Development" "TextEditor"];
|
||||||
"Development"
|
|
||||||
"TextEditor"
|
|
||||||
];
|
|
||||||
mimeTypes = mimeMap.code ++ mimeMap.text;
|
mimeTypes = mimeMap.code ++ mimeMap.text;
|
||||||
};
|
};
|
||||||
|
|
||||||
associations = with lists;
|
associations = lib.listToAttrs (
|
||||||
listToAttrs (
|
lib.flatten (
|
||||||
flatten (mapAttrsToList (key: map (type: attrsets.nameValuePair type defaultApps."${key}")) mimeMap)
|
lib.mapAttrsToList
|
||||||
|
(key: map (type: lib.nameValuePair type defaultApps.${key}))
|
||||||
|
mimeMap
|
||||||
|
)
|
||||||
);
|
);
|
||||||
in {
|
in {
|
||||||
home.packages = [nvim-ghostty];
|
home.packages = [nvim-ghostty];
|
||||||
@@ -144,7 +137,7 @@ in {
|
|||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
associations.added = associations;
|
associations.added = associations;
|
||||||
defaultApplications = associations;
|
defaultApplications = lib.mapAttrs (_: lib.mkForce) associations;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,412 @@
|
|||||||
|
{config, ...}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
font = config.stylix.fonts.sansSerif.name;
|
||||||
|
monofont = config.stylix.fonts.monospace.name;
|
||||||
|
rounding = config.theme.rounding;
|
||||||
|
border-size = config.theme.border-size;
|
||||||
|
gaps-in = config.theme.gaps-in;
|
||||||
|
opacityToHex = opacity: let
|
||||||
|
val = builtins.floor (opacity * 255);
|
||||||
|
high = val / 16;
|
||||||
|
low = val - high * 16;
|
||||||
|
digits = "0123456789abcdef";
|
||||||
|
in "${builtins.substring high 1 digits}${builtins.substring low 1 digits}";
|
||||||
|
alphaHex = opacityToHex config.theme.inactive-opacity;
|
||||||
|
in {
|
||||||
|
services.swaync = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
positionX = "right";
|
||||||
|
positionY = "top";
|
||||||
|
layer = "overlay";
|
||||||
|
"control-center-layer" = "overlay";
|
||||||
|
cssPriority = "user";
|
||||||
|
"control-center-width" = 450;
|
||||||
|
"control-center-margin-top" = config.theme.gaps-out * 2;
|
||||||
|
"control-center-margin-bottom" = config.theme.gaps-out * 2;
|
||||||
|
"control-center-margin-right" = 0;
|
||||||
|
"fit-to-screen" = true;
|
||||||
|
"notification-window-width" = 400;
|
||||||
|
"notification-icon-size" = 40;
|
||||||
|
"notification-body-image-height" = 500;
|
||||||
|
"notification-body-image-width" = 500;
|
||||||
|
"notification-inline-replies" = true;
|
||||||
|
"notification-2fa-action" = false;
|
||||||
|
timeout = 3;
|
||||||
|
"timeout-low" = 2;
|
||||||
|
"timeout-critical" = 6;
|
||||||
|
"keyboard-shortcuts" = true;
|
||||||
|
"image-visibility" = "when-available";
|
||||||
|
"transition-time" = 200;
|
||||||
|
"hide-on-clear" = false;
|
||||||
|
"hide-on-action" = false;
|
||||||
|
"script-fail-notify" = true;
|
||||||
|
widgets = ["mpris" "volume" "backlight" "dnd" "buttons-grid" "notifications"];
|
||||||
|
"widget-config" = {
|
||||||
|
dnd.text = "Do not disturb";
|
||||||
|
volume = {
|
||||||
|
label = "";
|
||||||
|
"show-per-app" = false;
|
||||||
|
};
|
||||||
|
backlight = {
|
||||||
|
label = "";
|
||||||
|
"min" = 0;
|
||||||
|
};
|
||||||
|
mpris = {
|
||||||
|
"image-size" = 100;
|
||||||
|
"image-radius" = 10;
|
||||||
|
autohide = false;
|
||||||
|
blacklist = ["org.mpris.MediaPlayer2.playerctld"];
|
||||||
|
};
|
||||||
|
"buttons-grid" = {
|
||||||
|
actions = [
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
type = "toggle";
|
||||||
|
command = "nightshift-toggle";
|
||||||
|
"update-command" = "pidof hyprsunset > /dev/null && echo true || echo false";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
type = "toggle";
|
||||||
|
command = "focus-toggle";
|
||||||
|
"update-command" = "test -f /tmp/hypr-focus-mode && echo true || echo false";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
type = "toggle";
|
||||||
|
command = "swayosd-client --input-volume mute-toggle";
|
||||||
|
"update-command" = "wpctl get-volume @DEFAULT_SOURCE@ | grep -q MUTED && echo true || echo false";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
command = "swaync-client -cp ; hyprlock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
command = "swaync-client -cp ; systemctl poweroff";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
style = ''
|
||||||
|
@define-color center-bg #${c.base01}${alphaHex};
|
||||||
|
@define-color notification-bg #${c.base00}${alphaHex};
|
||||||
|
@define-color center-notification-bg #${c.base01};
|
||||||
|
@define-color background #${c.base00}${alphaHex};
|
||||||
|
@define-color background-alt #${c.base01};
|
||||||
|
@define-color text #${c.base05};
|
||||||
|
@define-color text-alt #${c.base03};
|
||||||
|
@define-color selected #${c.base03}66;
|
||||||
|
@define-color hover #${c.base03}28;
|
||||||
|
@define-color urgent #${c.base08};
|
||||||
|
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
font-family: "${font}";
|
||||||
|
font-weight: 700;
|
||||||
|
--border-radius: ${toString rounding}px;
|
||||||
|
--border-radius-s: ${toString gaps-in}px;
|
||||||
|
--border-radius-xl: ${toString (rounding - 2)}px;
|
||||||
|
--shadow: 2px 4px 10px rgba(0,0,0,0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification { padding: 5px; }
|
||||||
|
|
||||||
|
.notification-row { background: transparent; border: none; box-shadow: none; }
|
||||||
|
|
||||||
|
.control-center .notification { padding: 0; }
|
||||||
|
|
||||||
|
.notification-background {
|
||||||
|
background: @notification-bg;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
border: ${toString border-size}px solid @selected;
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none;
|
||||||
|
margin: ${toString gaps-in}px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .close-button {
|
||||||
|
margin: 6px;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: ${toString (gaps-in - 2)}px;
|
||||||
|
background: transparent;
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .close-button:hover { background: @hover; }
|
||||||
|
|
||||||
|
.notification.low,
|
||||||
|
.notification.normal { border: none; }
|
||||||
|
|
||||||
|
.notification.critical {
|
||||||
|
border: ${toString border-size}px solid @urgent;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content {
|
||||||
|
color: @text;
|
||||||
|
margin: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content .text-box { margin: 0 0 0 15px; }
|
||||||
|
|
||||||
|
.notification-content .time {
|
||||||
|
padding: 2px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content .summary {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 800;
|
||||||
|
padding: 2px 0;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content .body {
|
||||||
|
color: @text-alt;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-row .inline-reply-entry,
|
||||||
|
.notification-row .inline-reply-button {
|
||||||
|
margin: 5px -5px -5px -5px;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
background: @background-alt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-row .inline-reply-entry { margin-right: 10px; }
|
||||||
|
.notification-row .inline-reply-button:hover { background: @selected; }
|
||||||
|
|
||||||
|
.notification-alt-actions { padding: 5px 0; }
|
||||||
|
|
||||||
|
.notification-action {
|
||||||
|
font-weight: 700;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
background: @hover;
|
||||||
|
color: @text;
|
||||||
|
margin: 0 5px;
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-action:hover,
|
||||||
|
.notification-action:active { background: @selected; }
|
||||||
|
|
||||||
|
.control-center {
|
||||||
|
background: @center-bg;
|
||||||
|
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
||||||
|
border-left: ${toString border-size}px solid @selected;
|
||||||
|
margin: 0;
|
||||||
|
padding: 5px 5px 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-background {
|
||||||
|
background: @center-notification-bg;
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-background .close-button,
|
||||||
|
.notification-group-close-button { opacity: 0; }
|
||||||
|
|
||||||
|
.notification-group { transition: 200ms; }
|
||||||
|
|
||||||
|
.notification-group:not(.collapsed) { margin: ${toString gaps-in}px; }
|
||||||
|
|
||||||
|
.notification-group-headers,
|
||||||
|
.notification-group-buttons {
|
||||||
|
color: @text;
|
||||||
|
font-weight: bold;
|
||||||
|
background: @background;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
padding: 4px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-group-headers > label {
|
||||||
|
margin: 0 3px;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-group-icon { color: @text; }
|
||||||
|
|
||||||
|
.notification-group-buttons .image-button {
|
||||||
|
background: transparent;
|
||||||
|
color: @text;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-group-buttons .image-button:hover { background: @hover; }
|
||||||
|
|
||||||
|
.widget {
|
||||||
|
margin: 5px;
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-album-art {
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
margin: 6px 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-title {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin: 0 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-subtitle {
|
||||||
|
color: @text-alt;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin: 0 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mpris-background { border-radius: 14px; margin: 3px; }
|
||||||
|
|
||||||
|
.widget-mpris {
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mpris-overlay {
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
padding: 10px;
|
||||||
|
background: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mpris-overlay > box:last-child {
|
||||||
|
border-radius: var(--border-radius-xl);
|
||||||
|
padding: 0 5px;
|
||||||
|
background: alpha(@hover, .6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-player button {
|
||||||
|
padding: 5px;
|
||||||
|
margin: 0 2.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-player button:hover {
|
||||||
|
border-radius: var(--border-radius-s);
|
||||||
|
background: @hover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume,
|
||||||
|
.widget-backlight {
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
padding: 10px 15px;
|
||||||
|
background: @background-alt;
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume > box,
|
||||||
|
.widget-backlight > box {
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume label,
|
||||||
|
.widget-backlight label {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
min-width: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume slider,
|
||||||
|
.widget-backlight slider {
|
||||||
|
background: @text;
|
||||||
|
border-radius: var(--border-radius-s);
|
||||||
|
min-height: 12px;
|
||||||
|
min-width: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume trough,
|
||||||
|
.widget-backlight trough {
|
||||||
|
background: @hover;
|
||||||
|
border-radius: var(--border-radius-s);
|
||||||
|
min-height: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume highlight,
|
||||||
|
.widget-backlight highlight {
|
||||||
|
background: @text;
|
||||||
|
border-radius: var(--border-radius-s);
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd {
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
background: @background-alt;
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > label {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd switch {
|
||||||
|
background: @hover;
|
||||||
|
border-radius: var(--border-radius-s);
|
||||||
|
box-shadow: none;
|
||||||
|
padding: 2px;
|
||||||
|
transition: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd switch slider {
|
||||||
|
background: @text;
|
||||||
|
border-radius: var(--border-radius-s);
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd switch:hover,
|
||||||
|
.widget-dnd switch:checked { background-color: @selected; }
|
||||||
|
|
||||||
|
.widget-notifications { margin: 0; }
|
||||||
|
|
||||||
|
.widget-buttons-grid {
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
padding: 5px 15px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
background: @background-alt;
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid button {
|
||||||
|
padding: 10px;
|
||||||
|
margin: 3px;
|
||||||
|
min-width: 2rem;
|
||||||
|
font-family: "${monofont}";
|
||||||
|
background: @hover;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
transition: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid button > label {
|
||||||
|
font-family: "${monofont}";
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid button:hover { background: @selected; }
|
||||||
|
|
||||||
|
.widget-buttons-grid button:checked { background-color: @text; }
|
||||||
|
|
||||||
|
.widget-buttons-grid button:checked > label { color: @background; }
|
||||||
|
|
||||||
|
.control-center-list-placeholder { color: @text; }
|
||||||
|
|
||||||
|
.blank-window { background: transparent; }
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
stylix.targets.swaync.enable = false;
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
font = config.stylix.fonts.serif.name;
|
||||||
|
gaps = config.theme.gaps-out;
|
||||||
|
barHeight = config.theme.bar-height;
|
||||||
|
rounding =
|
||||||
|
if config.theme.rounding > barHeight / 2
|
||||||
|
then barHeight / 2
|
||||||
|
else config.theme.rounding;
|
||||||
|
in {
|
||||||
|
imports = [./desktop-actions.nix];
|
||||||
|
programs.tofi = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
anchor = "top";
|
||||||
|
height = barHeight;
|
||||||
|
margin-top = gaps;
|
||||||
|
margin-left = 350;
|
||||||
|
margin-right = 350;
|
||||||
|
|
||||||
|
horizontal = true;
|
||||||
|
num-results = 8;
|
||||||
|
result-spacing = 20;
|
||||||
|
padding-top = 2;
|
||||||
|
padding-bottom = 2;
|
||||||
|
padding-left = 14;
|
||||||
|
padding-right = 14;
|
||||||
|
|
||||||
|
font = lib.mkForce font;
|
||||||
|
prompt-color = lib.mkForce "#${c.base0D}ff";
|
||||||
|
selection-color = lib.mkForce "#${c.base0D}ff";
|
||||||
|
|
||||||
|
outline-width = 0;
|
||||||
|
border-width = 0;
|
||||||
|
corner-radius = rounding;
|
||||||
|
|
||||||
|
prompt-text = " ";
|
||||||
|
placeholder-text = "Search...";
|
||||||
|
|
||||||
|
drun-launch = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
{...}: {
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
focus-toggle = {
|
||||||
|
name = "Focus Mode";
|
||||||
|
exec = "focus-toggle";
|
||||||
|
icon = "do-not-disturb-symbolic";
|
||||||
|
comment = "Toggle focus mode";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
nightshift-toggle = {
|
||||||
|
name = "Night Shift";
|
||||||
|
exec = "nightshift-toggle";
|
||||||
|
icon = "night-light-symbolic";
|
||||||
|
comment = "Toggle night shift";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
mic-mute = {
|
||||||
|
name = "Mute Microphone";
|
||||||
|
exec = "mic-mute";
|
||||||
|
icon = "microphone-sensitivity-muted-symbolic";
|
||||||
|
comment = "Toggle microphone mute";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
lock = {
|
||||||
|
name = "Lock";
|
||||||
|
exec = "hyprlock";
|
||||||
|
icon = "system-lock-screen-symbolic";
|
||||||
|
comment = "Lock the screen";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
reboot = {
|
||||||
|
name = "Reboot";
|
||||||
|
exec = "systemctl reboot";
|
||||||
|
icon = "system-restart-symbolic";
|
||||||
|
comment = "Restart the system";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
shutdown = {
|
||||||
|
name = "Shutdown";
|
||||||
|
exec = "systemctl poweroff";
|
||||||
|
icon = "system-shutdown-symbolic";
|
||||||
|
comment = "Power off the system";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
hibernate = {
|
||||||
|
name = "Hibernate";
|
||||||
|
exec = "systemctl hibernate";
|
||||||
|
icon = "drive-harddisk-symbolic";
|
||||||
|
comment = "Hibernate the system";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
waybar-toggle = {
|
||||||
|
name = "Toggle Waybar";
|
||||||
|
exec = "waybar-toggle";
|
||||||
|
icon = "panel-applets-symbolic";
|
||||||
|
comment = "Show or hide the status bar";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
wifi-toggle = {
|
||||||
|
name = "Toggle Wi-Fi";
|
||||||
|
exec = "wifi-toggle";
|
||||||
|
icon = "network-wireless-symbolic";
|
||||||
|
comment = "Enable or disable Wi-Fi";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
bluetooth-toggle = {
|
||||||
|
name = "Toggle Bluetooth";
|
||||||
|
exec = "bluetooth-toggle";
|
||||||
|
icon = "bluetooth-symbolic";
|
||||||
|
comment = "Enable or disable Bluetooth";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
logout = {
|
||||||
|
name = "Logout";
|
||||||
|
exec = "hyprctl dispatch exit";
|
||||||
|
icon = "system-log-out-symbolic";
|
||||||
|
comment = "End the current session";
|
||||||
|
categories = ["System"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
spotatui = {
|
||||||
|
name = "Spotify";
|
||||||
|
exec = "ghostty -e spotatui";
|
||||||
|
icon = "spotify";
|
||||||
|
comment = "Control Spotify from the terminal";
|
||||||
|
categories = ["Audio" "Music"];
|
||||||
|
terminal = false;
|
||||||
|
settings.Keywords = "spotify;spotatui;music;";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{pkgs, ...}: let
|
||||||
|
scripts = import ./scripts.nix {inherit pkgs;};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
./settings.nix
|
||||||
|
./style.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
_module.args.networkScript = scripts.networkScript;
|
||||||
|
_module.args.bluetoothScript = scripts.bluetoothScript;
|
||||||
|
|
||||||
|
programs.waybar.enable = true;
|
||||||
|
stylix.targets.waybar.enable = false;
|
||||||
|
|
||||||
|
home.packages = with pkgs;
|
||||||
|
[
|
||||||
|
playerctl
|
||||||
|
pavucontrol
|
||||||
|
blueman
|
||||||
|
iw
|
||||||
|
hyprsunset
|
||||||
|
]
|
||||||
|
++ (with scripts; [vol-up vol-down vol-mute mic-mute bright-up bright-down nightshift-toggle focus-toggle waybar-toggle wifi-toggle bluetooth-toggle]);
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
"waybar"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
{pkgs}: let
|
||||||
|
updateOsd = ''
|
||||||
|
[ -f /tmp/waybar-osd-pid ] && kill "$(cat /tmp/waybar-osd-pid)" 2>/dev/null
|
||||||
|
printf '%s' "$OSD_TEXT" > /tmp/waybar-osd
|
||||||
|
pkill -RTMIN+8 waybar 2>/dev/null
|
||||||
|
( sleep 2.5; rm -f /tmp/waybar-osd /tmp/waybar-osd-pid; pkill -RTMIN+8 waybar 2>/dev/null ) &
|
||||||
|
printf '%s' "$!" > /tmp/waybar-osd-pid
|
||||||
|
'';
|
||||||
|
|
||||||
|
volGetText = ''
|
||||||
|
VOL_RAW=$(${pkgs.wireplumber}/bin/wpctl get-volume @DEFAULT_SINK@)
|
||||||
|
VOL=$(printf '%s' "$VOL_RAW" | awk '{printf "%d", $2*100}')
|
||||||
|
if printf '%s' "$VOL_RAW" | grep -q MUTED; then
|
||||||
|
OSD_TEXT=" $VOL%"
|
||||||
|
elif [ "$VOL" -lt 33 ]; then
|
||||||
|
OSD_TEXT=" $VOL%"
|
||||||
|
elif [ "$VOL" -lt 66 ]; then
|
||||||
|
OSD_TEXT=" $VOL%"
|
||||||
|
else
|
||||||
|
OSD_TEXT=" $VOL%"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
brightGetText = ''
|
||||||
|
BRIGHT=$(${pkgs.brightnessctl}/bin/brightnessctl -m | awk -F, '{print int($5)}')
|
||||||
|
if [ "$BRIGHT" -lt 33 ]; then
|
||||||
|
OSD_TEXT=" $BRIGHT%"
|
||||||
|
elif [ "$BRIGHT" -lt 66 ]; then
|
||||||
|
OSD_TEXT=" $BRIGHT%"
|
||||||
|
else
|
||||||
|
OSD_TEXT=" $BRIGHT%"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
bluetoothScript = pkgs.writeShellScript "waybar-bluetooth" ''
|
||||||
|
if bluetoothctl show 2>/dev/null | grep -q "Powered: yes"; then
|
||||||
|
device=$(bluetoothctl devices Connected 2>/dev/null | head -1 | cut -d' ' -f3-)
|
||||||
|
if [ -n "$device" ]; then
|
||||||
|
printf '{"text": "%s", "class": "connected", "tooltip": "Bluetooth\\n %s"}\n' "$device" "$device"
|
||||||
|
else
|
||||||
|
printf '{"text": "", "class": "on", "tooltip": "Bluetooth on"}\n'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
printf '{"text": "", "class": "off", "tooltip": "Bluetooth off"}\n'
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
networkScript = pkgs.writeShellScript "waybar-network" ''
|
||||||
|
for iface in $(${pkgs.iproute2}/bin/ip -br link show | awk '$2 == "UP" {print $1}' | grep -vE '^(lo|tun|proton|wg[0-9]|ppp|vpn|docker|br-|veth|virbr)'); do
|
||||||
|
ip=$(${pkgs.iproute2}/bin/ip addr show "$iface" 2>/dev/null | grep 'inet ' | awk '{print $2}' | cut -d/ -f1 | head -1)
|
||||||
|
if [ -n "$ip" ]; then
|
||||||
|
if [[ "$iface" == wl* ]]; then
|
||||||
|
ssid=$(${pkgs.iw}/bin/iw dev "$iface" link 2>/dev/null | grep SSID | sed 's/.*SSID: //')
|
||||||
|
signal=$(${pkgs.iw}/bin/iw dev "$iface" link 2>/dev/null | grep signal | awk '{print $2}')
|
||||||
|
printf '{"text": "", "class": "wifi", "tooltip": " %s\\n %s dBm"}\n' "$ssid" "$signal"
|
||||||
|
else
|
||||||
|
printf '{"text": "", "class": "ethernet", "tooltip": " %s\\n %s"}\n' "$iface" "$ip"
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
printf '{"text": "", "class": "disconnected", "tooltip": "Disconnected"}\n'
|
||||||
|
'';
|
||||||
|
|
||||||
|
vol-up = pkgs.writeShellScriptBin "vol-up" ''
|
||||||
|
${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 5%+ --limit 1.0
|
||||||
|
${volGetText}
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
vol-down = pkgs.writeShellScriptBin "vol-down" ''
|
||||||
|
${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 5%-
|
||||||
|
${volGetText}
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
vol-mute = pkgs.writeShellScriptBin "vol-mute" ''
|
||||||
|
${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_SINK@ toggle
|
||||||
|
${volGetText}
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
mic-mute = pkgs.writeShellScriptBin "mic-mute" ''
|
||||||
|
${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
if ${pkgs.wireplumber}/bin/wpctl get-volume @DEFAULT_SOURCE@ | grep -q MUTED; then
|
||||||
|
OSD_TEXT=" Muted"
|
||||||
|
else
|
||||||
|
OSD_TEXT=" Live"
|
||||||
|
fi
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
bright-up = pkgs.writeShellScriptBin "bright-up" ''
|
||||||
|
${pkgs.brightnessctl}/bin/brightnessctl set 5%+
|
||||||
|
${brightGetText}
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
bright-down = pkgs.writeShellScriptBin "bright-down" ''
|
||||||
|
${pkgs.brightnessctl}/bin/brightnessctl set 5%-
|
||||||
|
${brightGetText}
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
wifi-toggle = pkgs.writeShellScriptBin "wifi-toggle" ''
|
||||||
|
if nmcli radio wifi | grep -q enabled; then
|
||||||
|
nmcli radio wifi off
|
||||||
|
else
|
||||||
|
nmcli radio wifi on
|
||||||
|
fi
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
bluetooth-toggle = pkgs.writeShellScriptBin "bluetooth-toggle" ''
|
||||||
|
if bluetoothctl show | grep -q "Powered: yes"; then
|
||||||
|
bluetoothctl power off
|
||||||
|
else
|
||||||
|
bluetoothctl power on
|
||||||
|
fi
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
waybar-toggle = pkgs.writeShellScriptBin "waybar-toggle" ''
|
||||||
|
if pidof waybar > /dev/null; then
|
||||||
|
pkill waybar
|
||||||
|
else
|
||||||
|
hyprctl dispatch exec waybar
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
nightshift-toggle = pkgs.writeShellScriptBin "nightshift-toggle" ''
|
||||||
|
if pidof "hyprsunset" > /dev/null; then
|
||||||
|
pkill hyprsunset
|
||||||
|
OSD_TEXT=" Night Shift Off"
|
||||||
|
else
|
||||||
|
${pkgs.hyprsunset}/bin/hyprsunset -t 4500 &
|
||||||
|
OSD_TEXT=" Night Shift On"
|
||||||
|
fi
|
||||||
|
${updateOsd}
|
||||||
|
'';
|
||||||
|
|
||||||
|
focus-toggle = pkgs.writeShellScriptBin "focus-toggle" ''
|
||||||
|
if test -f /tmp/hypr-focus-mode; then
|
||||||
|
rm /tmp/hypr-focus-mode
|
||||||
|
OSD_TEXT=" Focus Off"
|
||||||
|
${updateOsd}
|
||||||
|
hyprctl reload
|
||||||
|
hyprctl dispatch exec waybar
|
||||||
|
else
|
||||||
|
touch /tmp/hypr-focus-mode
|
||||||
|
OSD_TEXT=" Focus On"
|
||||||
|
${updateOsd}
|
||||||
|
pkill waybar || true
|
||||||
|
hyprctl keyword animations:enabled false
|
||||||
|
hyprctl keyword general:gaps_in 0
|
||||||
|
hyprctl keyword general:gaps_out 0
|
||||||
|
hyprctl keyword decoration:active_opacity 1
|
||||||
|
hyprctl keyword decoration:inactive_opacity 1
|
||||||
|
hyprctl keyword decoration:rounding 0
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
# TODO: Run in background
|
||||||
|
}
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
networkScript,
|
||||||
|
bluetoothScript,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
gaps-out = config.theme.gaps-out;
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
in {
|
||||||
|
programs.waybar.settings = [
|
||||||
|
{
|
||||||
|
layer = "top";
|
||||||
|
position = "top";
|
||||||
|
height = config.theme.bar-height;
|
||||||
|
margin = "${toString gaps-out} ${toString gaps-out} 0";
|
||||||
|
modules-center = ["custom/osd" "custom/osd-sep" "clock" "tray" "hyprland/workspaces" "custom/network" "custom/bluetooth" "battery"];
|
||||||
|
|
||||||
|
# ── Modules ─────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
"hyprland/workspaces" = {
|
||||||
|
format = "{id}";
|
||||||
|
all-outputs = true;
|
||||||
|
move-to-monitor = true;
|
||||||
|
ignore-workspaces = ["[5-9]" "[1-9][0-9]+"];
|
||||||
|
on-scroll-down = "hyprctl dispatch workspace e+1";
|
||||||
|
on-scroll-up = "hyprctl dispatch workspace e-1";
|
||||||
|
persistent-workspaces."*" = [1 2 3 4];
|
||||||
|
cursor = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
bat = "BAT1";
|
||||||
|
interval = 20;
|
||||||
|
full-at = 100;
|
||||||
|
tooltip = true;
|
||||||
|
format-full = "";
|
||||||
|
format = "{icon} ";
|
||||||
|
format-charging = " {icon} ";
|
||||||
|
format-icons = ["" "" "" "" ""];
|
||||||
|
tooltip-format = "{capacity}% · {time}";
|
||||||
|
tooltip-format-full = "Full\n{capacity}%";
|
||||||
|
tooltip-format-charging = "Charging\n{capacity}% · {time}";
|
||||||
|
states = {
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/bluetooth" = {
|
||||||
|
exec = "${bluetoothScript}";
|
||||||
|
exec-if = "bluetoothctl show 2>/dev/null | grep -q Controller";
|
||||||
|
return-type = "json";
|
||||||
|
interval = 5;
|
||||||
|
on-click-right = "blueman-manager &";
|
||||||
|
on-click = "bluetooth-toggle";
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/osd" = {
|
||||||
|
exec = "cat /tmp/waybar-osd";
|
||||||
|
exec-if = "test -f /tmp/waybar-osd";
|
||||||
|
signal = 8;
|
||||||
|
interval = "once";
|
||||||
|
format = "{}";
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/osd-sep" = {
|
||||||
|
exec = "echo '|'";
|
||||||
|
exec-if = "test -f /tmp/waybar-osd";
|
||||||
|
signal = 8;
|
||||||
|
interval = "once";
|
||||||
|
format = "{}";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
pulseaudio = {
|
||||||
|
format = "{icon}";
|
||||||
|
format-bluetooth = "{icon}";
|
||||||
|
tooltip-format = "{volume}%";
|
||||||
|
format-muted = "<span size='12pt'></span>";
|
||||||
|
scroll-step = 2;
|
||||||
|
on-click = "vol-mute";
|
||||||
|
on-click-right = "pavucontrol -t 4 &";
|
||||||
|
format-icons = {
|
||||||
|
headphone = "";
|
||||||
|
hands-free = "";
|
||||||
|
headset = "";
|
||||||
|
phone = "";
|
||||||
|
portable = "";
|
||||||
|
car = "";
|
||||||
|
default = [
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"pulseaudio/slider" = {
|
||||||
|
min = 0;
|
||||||
|
max = 100;
|
||||||
|
cursor = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/network" = {
|
||||||
|
exec = "${networkScript}";
|
||||||
|
return-type = "json";
|
||||||
|
interval = 10;
|
||||||
|
on-click-right = "ghostty -e wifitui &";
|
||||||
|
};
|
||||||
|
|
||||||
|
tray = {
|
||||||
|
icon-size = 13;
|
||||||
|
spacing = 12;
|
||||||
|
cursor = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
timezone = config.var.timeZone;
|
||||||
|
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||||
|
format = "{:%H:%M}";
|
||||||
|
format-alt = "{:%H:%M %d %B %Y}";
|
||||||
|
calendar = {
|
||||||
|
mode = "month";
|
||||||
|
format = {
|
||||||
|
months = "<span color='#${c.base04}'><b>{}</b></span>";
|
||||||
|
weekdays = "<span color='#${c.base0A}'><b>{}</b></span>";
|
||||||
|
days = "<span color='#${c.base05}'>{}</span>";
|
||||||
|
today = "<span color='#${c.base0D}'><b><u>{}</u></b></span>";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/arrow-left" = {
|
||||||
|
format = " ";
|
||||||
|
tooltip = false;
|
||||||
|
cursor = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/arrow-right" = {
|
||||||
|
format = " ";
|
||||||
|
tooltip = false;
|
||||||
|
cursor = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,155 @@
|
|||||||
|
{config, ...}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
fg = "#${c.base05}";
|
||||||
|
module-bg = "#${c.base01}";
|
||||||
|
tooltip-bg = "#${c.base01}";
|
||||||
|
red = "#${c.base08}";
|
||||||
|
yellow = "#${c.base0A}";
|
||||||
|
green = "#${c.base0B}";
|
||||||
|
blue = "#${c.base0D}";
|
||||||
|
cyan = "#${c.base0C}";
|
||||||
|
inactive = "#${c.base03}";
|
||||||
|
highlight = "#${c.base02}";
|
||||||
|
font-size = "${toString config.stylix.fonts.sizes.applications}px";
|
||||||
|
font-size-clock = "${toString (config.stylix.fonts.sizes.applications + 2)}px";
|
||||||
|
module-padding = "14px";
|
||||||
|
in {
|
||||||
|
programs.waybar.style = ''
|
||||||
|
* {
|
||||||
|
font-family: '${config.stylix.fonts.sansSerif.name}';
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
min-height: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#waybar {
|
||||||
|
font-weight: 700;
|
||||||
|
background: transparent;
|
||||||
|
font-size: ${font-size};
|
||||||
|
color: ${fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-center {
|
||||||
|
background: ${module-bg};
|
||||||
|
border-radius: 100px;
|
||||||
|
padding: 6px 14px;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#battery,
|
||||||
|
#tray,
|
||||||
|
#workspaces,
|
||||||
|
#custom-osd,
|
||||||
|
#custom-network,
|
||||||
|
#custom-bluetooth {
|
||||||
|
padding: 1px ${module-padding};
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-osd-sep {
|
||||||
|
padding: 0;
|
||||||
|
color: ${inactive};
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
font-size: ${font-size-clock};
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
color: ${fg};
|
||||||
|
font-size: ${font-size};
|
||||||
|
border-radius: 100px;
|
||||||
|
padding: 0 3px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.empty {
|
||||||
|
color: ${inactive};
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: transparent;
|
||||||
|
color: ${fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
color: ${module-bg};
|
||||||
|
background: ${blue};
|
||||||
|
border-radius: 60px;
|
||||||
|
padding: 0 8px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
color: ${green};
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging,
|
||||||
|
#battery.full {
|
||||||
|
color: ${green};
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.critical,
|
||||||
|
#custom-network.disconnected {
|
||||||
|
color: ${red};
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.warning {
|
||||||
|
color: ${yellow};
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-network.ethernet,
|
||||||
|
#custom-network.wifi {
|
||||||
|
color: ${cyan};
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-bluetooth {
|
||||||
|
color: ${blue};
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-bluetooth.off {
|
||||||
|
color: ${inactive};
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-osd {
|
||||||
|
font-weight: 700;
|
||||||
|
color: ${fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
border-radius: 15px;
|
||||||
|
background: ${tooltip-bg};
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip label {
|
||||||
|
padding: 3px 10px;
|
||||||
|
color: ${fg};
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup * {
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
menu {
|
||||||
|
border-radius: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: ${fg};
|
||||||
|
background: ${tooltip-bg};
|
||||||
|
}
|
||||||
|
|
||||||
|
menu > * {
|
||||||
|
padding: 3px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
menu > *:hover {
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: ${highlight};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -54,5 +54,5 @@
|
|||||||
home-manager.users."${config.var.username}" = import ./home.nix;
|
home-manager.users."${config.var.username}" = import ./home.nix;
|
||||||
|
|
||||||
# Don't touch this
|
# Don't touch this
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "26.05";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ nixpkgs.lib.nixosSystem {
|
|||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
inputs.nur.overlays.default
|
||||||
];
|
];
|
||||||
_module.args = {inherit inputs;};
|
_module.args = {inherit inputs;};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,13 +10,12 @@
|
|||||||
../../home/programs/git
|
../../home/programs/git
|
||||||
../../home/programs/git/lazygit.nix
|
../../home/programs/git/lazygit.nix
|
||||||
../../home/programs/git/signing.nix # CHANGEME: Change the key or remove this file
|
../../home/programs/git/signing.nix # CHANGEME: Change the key or remove this file
|
||||||
../../home/programs/spicetify
|
|
||||||
../../home/programs/thunar
|
../../home/programs/thunar
|
||||||
../../home/programs/nixy
|
../../home/programs/nixy
|
||||||
../../home/programs/nightshift
|
|
||||||
../../home/programs/nix-utils
|
../../home/programs/nix-utils
|
||||||
../../home/programs/spotatui
|
../../home/programs/spotatui
|
||||||
../../home/programs/yazi
|
../../home/programs/yazi
|
||||||
|
../../home/programs/desktop-actions # TODO:
|
||||||
|
|
||||||
../../home/programs/group/basic-apps.nix
|
../../home/programs/group/basic-apps.nix
|
||||||
../../home/programs/group/cybersecurity.nix
|
../../home/programs/group/cybersecurity.nix
|
||||||
@@ -24,9 +23,12 @@
|
|||||||
../../home/programs/group/misc.nix
|
../../home/programs/group/misc.nix
|
||||||
|
|
||||||
# System (Desktop environment like stuff)
|
# System (Desktop environment like stuff)
|
||||||
|
../../home/system/hyprlock
|
||||||
../../home/system/hyprland
|
../../home/system/hyprland
|
||||||
../../home/system/caelestia-shell
|
../../home/system/waybar
|
||||||
../../home/system/hyprpaper
|
../../home/system/swaync
|
||||||
|
../../home/system/swayosd
|
||||||
|
../../home/system/tofi
|
||||||
../../home/system/mime
|
../../home/system/mime
|
||||||
../../home/system/udiskie
|
../../home/system/udiskie
|
||||||
|
|
||||||
@@ -46,7 +48,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Don't touch this
|
# Don't touch this
|
||||||
stateVersion = "24.05";
|
stateVersion = "26.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.monitor = [
|
wayland.windowManager.hyprland.settings.monitor = [
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
@@ -57,5 +58,7 @@ in {
|
|||||||
age
|
age
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start sops-nix"];
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
"systemctl --user start sops-nix"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Choose your theme here:
|
# Choose your theme here:
|
||||||
../../themes/darkviolet.nix
|
../../themes/nixy.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config.var = {
|
config.var = {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Choose your theme here:
|
# Choose your theme here:
|
||||||
../../themes/rose-pine.nix
|
../../themes/nixy.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config.var = {
|
config.var = {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
# Mostly system related configuration
|
# Mostly system related configuration
|
||||||
../../nixos/audio.nix
|
../../nixos/audio.nix
|
||||||
../../nixos/bluetooth.nix
|
|
||||||
../../nixos/fonts.nix
|
../../nixos/fonts.nix
|
||||||
../../nixos/home-manager.nix
|
../../nixos/home-manager.nix
|
||||||
../../nixos/nix.nix
|
../../nixos/nix.nix
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [];
|
nixpkgs.overlays = [
|
||||||
|
inputs.nur.overlays.default
|
||||||
|
];
|
||||||
_module.args = {inherit inputs;};
|
_module.args = {inherit inputs;};
|
||||||
}
|
}
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|||||||
+4
-4
@@ -8,10 +8,8 @@
|
|||||||
../../home/programs/shell
|
../../home/programs/shell
|
||||||
../../home/programs/git
|
../../home/programs/git
|
||||||
../../home/programs/git/lazygit.nix
|
../../home/programs/git/lazygit.nix
|
||||||
../../home/programs/spicetify
|
|
||||||
../../home/programs/thunar
|
../../home/programs/thunar
|
||||||
../../home/programs/nixy
|
../../home/programs/nixy
|
||||||
../../home/programs/nightshift
|
|
||||||
../../home/programs/nix-utils
|
../../home/programs/nix-utils
|
||||||
../../home/programs/spotatui
|
../../home/programs/spotatui
|
||||||
../../home/programs/yazi
|
../../home/programs/yazi
|
||||||
@@ -22,9 +20,11 @@
|
|||||||
../../home/programs/group/misc.nix
|
../../home/programs/group/misc.nix
|
||||||
|
|
||||||
# System (Desktop environment like stuff)
|
# System (Desktop environment like stuff)
|
||||||
|
../../home/system/hyprlock
|
||||||
../../home/system/hyprland
|
../../home/system/hyprland
|
||||||
../../home/system/caelestia-shell
|
../../home/system/waybar
|
||||||
../../home/system/hyprpaper
|
../../home/system/swaync
|
||||||
|
../../home/system/tofi
|
||||||
../../home/system/mime
|
../../home/system/mime
|
||||||
../../home/system/udiskie
|
../../home/system/udiskie
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
@@ -54,5 +55,7 @@ in {
|
|||||||
age
|
age
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start sops-nix"];
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
"systemctl --user start sops-nix"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
ssh-config: ENC[AES256_GCM,data:npBcAOSwHpApUASlZmRo4stwMrOjdrdmhfYwumjbTpcq8aQ2ybV8le7cjNdVqIyxgwxUFV4/tGfmsq4nlrWIO/85spwfC5DyPGaZ848NI3UZJj8k2GKuw5qk/xGsTveNhq+vNZQcHeL4aeXF2TRmFLDHYGTku9anFL7FWkQ75MmGW78XfPUEyZJ52ylXq3gkYeVSrl6cXuwJw/QBlu+XTgFk4MM+E5BTXBFFNJOYkIt4GwWX7wdI+QqPEof8J0ENYdxUAMKMueL4pLNclWP0fu7QC7gwwRJWjauCNElJiDhpVFa6WukJV/Ut+I30FH9cJtj0rSodeu0hq2fWaiQ0wVbQudxi0JcnxJQs+B9nb6kpF+TN0MiD,iv:c7DMZSmlgMMnNlR0/kNRKPYjCzvNQJ46mZzojHppSg8=,tag:ausjsFk0H9nOiiMebHXSUg==,type:str]
|
ssh-config: ENC[AES256_GCM,data:npBcAOSwHpApUASlZmRo4stwMrOjdrdmhfYwumjbTpcq8aQ2ybV8le7cjNdVqIyxgwxUFV4/tGfmsq4nlrWIO/85spwfC5DyPGaZ848NI3UZJj8k2GKuw5qk/xGsTveNhq+vNZQcHeL4aeXF2TRmFLDHYGTku9anFL7FWkQ75MmGW78XfPUEyZJ52ylXq3gkYeVSrl6cXuwJw/QBlu+XTgFk4MM+E5BTXBFFNJOYkIt4GwWX7wdI+QqPEof8J0ENYdxUAMKMueL4pLNclWP0fu7QC7gwwRJWjauCNElJiDhpVFa6WukJV/Ut+I30FH9cJtj0rSodeu0hq2fWaiQ0wVbQudxi0JcnxJQs+B9nb6kpF+TN0MiD,iv:c7DMZSmlgMMnNlR0/kNRKPYjCzvNQJ46mZzojHppSg8=,tag:ausjsFk0H9nOiiMebHXSUg==,type:str]
|
||||||
netrc: ENC[AES256_GCM,data:EOpuZhDVXe7Q4P/98C3gtEvkdawI26d4oX/wRNytyp/mAdkHytXiLpFdsuO/3DADOG8h1CCo1UTs9ex+bqoD/LdChdp7INfNDSQ+aDxTiG0rLBgjvy8TIj8=,iv:tc/RbN1Upbjv+3rU5zUR3P//a1Hj1xODInLMShg4i1Y=,tag:7E9G2g4g+eMeJrwI20R/1g==,type:str]
|
netrc: ENC[AES256_GCM,data:EOpuZhDVXe7Q4P/98C3gtEvkdawI26d4oX/wRNytyp/mAdkHytXiLpFdsuO/3DADOG8h1CCo1UTs9ex+bqoD/LdChdp7INfNDSQ+aDxTiG0rLBgjvy8TIj8=,iv:tc/RbN1Upbjv+3rU5zUR3P//a1Hj1xODInLMShg4i1Y=,tag:7E9G2g4g+eMeJrwI20R/1g==,type:str]
|
||||||
github-key: ENC[AES256_GCM,data:LRgJxUcKvLiqVJ3acz88oGp5qmvbo7QiyTbcft3YwZr+84CLbty9GCMrryJ8DFnP8GCGh+cCQxyvk/n/hA71qz7WZ6vIWbTN2byP0LHwDtQpugYOQi9z1Q04hQU3DYnsqKS8hu6bnUV/SzrDpAOXugyMGZL5dITitidgEsVG5PxB+bzTZGhg7EOcZISz955AEtD+bGedvxaryEcMYPTZwRHYPl2+wvKKIbeZMiup6i0BCCYktUUIb3qSBawbknZ9nfbQFODkZbNuEEhyU2MITz2ajQ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:
|
||||||
- recipient: age1c8pawdsxptfslgrz2c56s39mrtnjzc5mm3hfzgr2wdwu2v6vfsdsupjsq6
|
- enc: |
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBVby9Wa1NUUkpyeDMwU3dM
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBVby9Wa1NUUkpyeDMwU3dM
|
||||||
R0EyeFVtT0tJU0pKaWtXQzRkTDBPY3JjcTFrClNIQnl2WVorS0FZZjhicTQ5V2kx
|
R0EyeFVtT0tJU0pKaWtXQzRkTDBPY3JjcTFrClNIQnl2WVorS0FZZjhicTQ5V2kx
|
||||||
@@ -13,7 +12,8 @@ sops:
|
|||||||
RkMrdTYwNkY1Tlc3M3dxTFdkRXJJZUEKUlYU45jXpS9hJO9Z/uAQ6XMj9QWgMMRI
|
RkMrdTYwNkY1Tlc3M3dxTFdkRXJJZUEKUlYU45jXpS9hJO9Z/uAQ6XMj9QWgMMRI
|
||||||
LbJxvt48+yC+Y0XKOtDE0lHAuGNzUG8R/7FB1tTD8NCamBe46KGCIg==
|
LbJxvt48+yC+Y0XKOtDE0lHAuGNzUG8R/7FB1tTD8NCamBe46KGCIg==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2026-04-23T07:50:07Z"
|
recipient: age1c8pawdsxptfslgrz2c56s39mrtnjzc5mm3hfzgr2wdwu2v6vfsdsupjsq6
|
||||||
mac: ENC[AES256_GCM,data:V3us1oxkQxIg5hn8TMiSHWa0RhNbio2mP8j59lSCKDLjnpTUHUAUZZOan+fkBwPxxtIdZFVZQl/kZuEHcnNwXk8J0DLeT8jrs8pvlDCHMAc+C9uzThNjQ9CrZ2C/dNtoI6uop3a6qo8UMhKhvAus08yR8rLsY7Gqt/In28HKqxU=,iv:g8wmq1thPfkSSfG+mtJS0431wbon/uylDTfH0P31dlw=,tag:5Z6CJMWeGN6frTLJQMxGGw==,type:str]
|
lastmodified: "2026-07-01T12:18:22Z"
|
||||||
|
mac: ENC[AES256_GCM,data:rX8MoqaMAbfuMdcQMw8eDGXos3VgbA3VfNJJcGGk2xQPuTC7FW5S0BVuh68ajzVv0oaYtT8pBRktv9Lo2VDY6Mm4neVuF/9IgV0cTKwvx5ACjN40Zt7OU+QtlQK44kDXsJQFyV+BYHVNiW8jej1h9d7vSAgG0hD3GOpvtK6ZY6E=,iv:3B3COjvazDVRkUsuIiLlOCFqlE9ooFR8dC5PTXe/q28=,tag:QEqcRTks4zSX02qc9KDsrA==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.12.2
|
version: 3.13.1
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Choose your theme here:
|
# Choose your theme here:
|
||||||
../../themes/darkviolet.nix
|
../../themes/nixy.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config.var = {
|
config.var = {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
rocmPackages.clr.icd
|
rocmPackages.clr.icd
|
||||||
# Support VA-API pour AMD
|
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
libva-vdpau-driver
|
libva-vdpau-driver
|
||||||
];
|
];
|
||||||
|
|||||||
+1
-13
@@ -1,23 +1,11 @@
|
|||||||
# Audio configuration for NixOS using PipeWire
|
# Audio configuration for NixOS using PipeWire
|
||||||
{
|
{
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pulseaudio.enable = false;
|
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
wireplumber = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = {
|
|
||||||
"10-disable-camera" = {
|
|
||||||
"wireplumber.profiles" = {
|
|
||||||
main."monitor.libcamera" = "disabled";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
security.rtkit.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
# Docker is a containerization platform that allows you to run applications in isolated environments called containers.
|
{config, pkgs, ...}: {
|
||||||
{config, ...}: {
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.docker.package = pkgs.docker_29;
|
||||||
users.users."${config.var.username}".extraGroups = ["docker"];
|
users.users."${config.var.username}".extraGroups = ["docker"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
system = pkgs.stdenv.hostPlatform.system;
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
pkgs-nur-hadi = inputs.nur-anotherhadi.packages.${pkgs.stdenv.hostPlatform.system};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-8
@@ -1,14 +1,9 @@
|
|||||||
# Hyprland is a dynamic tiling Wayland compositor.
|
# Hyprland is a dynamic tiling Wayland compositor.
|
||||||
{
|
{...}: {
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withUWSM = true;
|
withUWSM = true;
|
||||||
package = inputs.hyprland.packages."${pkgs.stdenv.hostPlatform.system}".hyprland;
|
|
||||||
portalPackage =
|
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.pam.services.hyprlock = {};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,22 +6,6 @@
|
|||||||
}: let
|
}: let
|
||||||
autoGarbageCollector = config.var.autoGarbageCollector;
|
autoGarbageCollector = config.var.autoGarbageCollector;
|
||||||
in {
|
in {
|
||||||
# Ask for password once per SSH session (tied to the tty, expires when session closes)
|
|
||||||
security.sudo.extraConfig = ''
|
|
||||||
Defaults timestamp_type=tty,timestamp_timeout=-1
|
|
||||||
'';
|
|
||||||
|
|
||||||
security.sudo.extraRules = [
|
|
||||||
{
|
|
||||||
users = [config.var.username];
|
|
||||||
commands = [
|
|
||||||
{
|
|
||||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
|
||||||
options = ["NOPASSWD"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowBroken = false;
|
allowBroken = false;
|
||||||
@@ -40,17 +24,10 @@ in {
|
|||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
substituters = [
|
substituters = [
|
||||||
# high priority since it's almost always used
|
|
||||||
"https://cache.nixos.org?priority=10"
|
|
||||||
|
|
||||||
"https://hyprland.cachix.org"
|
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://numtide.cachix.org"
|
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
gc = {
|
gc = {
|
||||||
|
|||||||
+21
-45
@@ -5,67 +5,49 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# Using beta driver for recent GPUs like RTX 4070
|
|
||||||
nvidiaDriverChannel = config.boot.kernelPackages.nvidiaPackages.production;
|
nvidiaDriverChannel = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
in {
|
in {
|
||||||
# Video drivers configuration for Xorg and Wayland
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
services.xserver.videoDrivers = ["nvidia"]; # Simplified - other modules are loaded automatically
|
|
||||||
|
|
||||||
# Kernel parameters for better Wayland and Hyprland integration
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"nvidia-drm.modeset=1" # Enable mode setting for Wayland
|
|
||||||
"nvidia.NVreg_PreserveVideoMemoryAllocations=1" # Improves resume after sleep
|
"nvidia.NVreg_PreserveVideoMemoryAllocations=1" # Improves resume after sleep
|
||||||
];
|
];
|
||||||
|
|
||||||
# Blacklist nouveau to avoid conflicts
|
|
||||||
boot.blacklistedKernelModules = ["nouveau"];
|
|
||||||
|
|
||||||
# Environment variables for better compatibility
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
LIBVA_DRIVER_NAME = "nvidia"; # Hardware video acceleration
|
LIBVA_DRIVER_NAME = "nvidia";
|
||||||
GBM_BACKEND = "nvidia-drm"; # Graphics backend for Wayland
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; # Use Nvidia driver for GLX
|
NIXOS_OZONE_WL = "1";
|
||||||
NIXOS_OZONE_WL = "1"; # Wayland support for Electron apps
|
__GL_GSYNC_ALLOWED = "1";
|
||||||
__GL_GSYNC_ALLOWED = "1"; # Enable G-Sync if available
|
__GL_VRR_ALLOWED = "1";
|
||||||
__GL_VRR_ALLOWED = "1"; # Enable VRR (Variable Refresh Rate)
|
NVD_BACKEND = "direct";
|
||||||
NVD_BACKEND = "direct"; # Configuration for new driver
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
MOZ_ENABLE_WAYLAND = "1"; # Wayland support for Firefox
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configuration for proprietary packages
|
nixpkgs.config.nvidia.acceptLicense = true;
|
||||||
nixpkgs.config = {
|
|
||||||
nvidia.acceptLicense = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Nvidia configuration
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
open = false; # Proprietary driver for better performance
|
open = true; # Open kernel modules, recommended for Turing and newer (RTX 4070 = Ada Lovelace)
|
||||||
nvidiaSettings = true; # Nvidia settings utility
|
nvidiaSettings = true;
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
enable = true; # Power management
|
enable = true;
|
||||||
finegrained = true; # More precise power consumption control
|
finegrained = true;
|
||||||
};
|
};
|
||||||
modesetting.enable = true; # Required for Wayland
|
modesetting.enable = true;
|
||||||
package = nvidiaDriverChannel;
|
package = nvidiaDriverChannel;
|
||||||
forceFullCompositionPipeline = true; # Prevents screen tearing
|
# forceFullCompositionPipeline = true; # Only useful when display is connected directly to Nvidia GPU, not in PRIME offload mode
|
||||||
|
|
||||||
# Configuration for hybrid AMD+Nvidia laptop
|
|
||||||
prime = {
|
prime = {
|
||||||
# Optimized configuration for switchable graphics laptops
|
|
||||||
offload = {
|
offload = {
|
||||||
enable = true; # Mode optimized for power saving
|
enable = true;
|
||||||
enableOffloadCmd = true; # Allows running applications with dedicated GPU
|
enableOffloadCmd = true;
|
||||||
};
|
};
|
||||||
# sync.enable disabled as offload is generally better for laptops
|
sync.enable = false; # offload mode is better for battery life
|
||||||
sync.enable = false;
|
amdgpuBusId = "PCI:5:0:0";
|
||||||
# PCI IDs verified for your hardware
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
amdgpuBusId = "PCI:5:0:0"; # Integrated AMD GPU
|
|
||||||
nvidiaBusId = "PCI:1:0:0"; # Dedicated Nvidia GPU
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enhanced graphics support
|
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
@@ -73,10 +55,8 @@ in {
|
|||||||
nvidia-vaapi-driver
|
nvidia-vaapi-driver
|
||||||
libva-vdpau-driver
|
libva-vdpau-driver
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
mesa
|
|
||||||
egl-wayland
|
egl-wayland
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
vulkan-validation-layers
|
|
||||||
libva
|
libva
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -90,13 +70,9 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Additional useful packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
mesa-demos
|
mesa-demos
|
||||||
libva-utils # VA-API debugging tools
|
libva-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable Nvidia container toolkit for GPU acceleration in containers (docker)
|
|
||||||
hardware.nvidia-container-toolkit.enable = false;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# Systemd-boot configuration for NixOS
|
# Systemd-boot configuration for NixOS
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
boot = {
|
boot = {
|
||||||
bootspec.enable = true;
|
|
||||||
loader = {
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
@@ -24,16 +23,6 @@
|
|||||||
];
|
];
|
||||||
consoleLogLevel = 0;
|
consoleLogLevel = 0;
|
||||||
initrd.verbose = false;
|
initrd.verbose = false;
|
||||||
|
|
||||||
# plymouth = {
|
|
||||||
# enable = true;
|
|
||||||
# theme = lib.mkForce "cuts_alt";
|
|
||||||
# themePackages = with pkgs; [
|
|
||||||
# (adi1090x-plymouth-themes.override {
|
|
||||||
# selected_themes = ["cuts_alt"];
|
|
||||||
# })
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# To avoid systemd services hanging on shutdown
|
# To avoid systemd services hanging on shutdown
|
||||||
|
|||||||
+6
-2
@@ -1,10 +1,14 @@
|
|||||||
{config, ...}: {
|
# USBGuard:
|
||||||
|
# The following line allow all USB devices until a proper policy is configured.
|
||||||
|
# Run `sudo usbguard generate-policy` with your devices plugged in,
|
||||||
|
# then set rules = "<output>" and switch implicitPolicyTarget to "block".
|
||||||
|
# services.usbguard.implicitPolicyTarget = lib.mkForce "allow";
|
||||||
|
{
|
||||||
services.usbguard = {
|
services.usbguard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
implicitPolicyTarget = "block";
|
implicitPolicyTarget = "block";
|
||||||
IPCAllowedUsers = [
|
IPCAllowedUsers = [
|
||||||
"root"
|
"root"
|
||||||
config.var.username
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+29
-48
@@ -12,11 +12,12 @@
|
|||||||
extraLocale = config.var.extraLocale;
|
extraLocale = config.var.extraLocale;
|
||||||
autoUpgrade = config.var.autoUpgrade;
|
autoUpgrade = config.var.autoUpgrade;
|
||||||
in {
|
in {
|
||||||
networking.hostName = hostname;
|
networking = {
|
||||||
|
hostName = hostname;
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = autoUpgrade;
|
enable = autoUpgrade;
|
||||||
dates = "04:00";
|
dates = "04:00";
|
||||||
@@ -32,13 +33,10 @@ in {
|
|||||||
time = {
|
time = {
|
||||||
timeZone = timeZone;
|
timeZone = timeZone;
|
||||||
};
|
};
|
||||||
i18n.defaultLocale = defaultLocale;
|
|
||||||
i18n.inputMethod = {
|
i18n = {
|
||||||
enable = true;
|
defaultLocale = defaultLocale;
|
||||||
type = "fcitx5";
|
extraLocaleSettings = {
|
||||||
fcitx5.addons = with pkgs; [fcitx5-gtk];
|
|
||||||
};
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = extraLocale;
|
LC_ADDRESS = extraLocale;
|
||||||
LC_IDENTIFICATION = extraLocale;
|
LC_IDENTIFICATION = extraLocale;
|
||||||
LC_MEASUREMENT = extraLocale;
|
LC_MEASUREMENT = extraLocale;
|
||||||
@@ -49,32 +47,20 @@ in {
|
|||||||
LC_TELEPHONE = extraLocale;
|
LC_TELEPHONE = extraLocale;
|
||||||
LC_TIME = extraLocale;
|
LC_TIME = extraLocale;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
libinput.enable = true;
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xkb.layout = keyboardLayout;
|
xkb.layout = keyboardLayout;
|
||||||
xkb.variant = "";
|
|
||||||
};
|
};
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
psd = {
|
psd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
resyncTimer = "10m";
|
resyncTimer = "10m";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
console.keyMap = keyboardLayout;
|
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
XDG_DATA_HOME = "$HOME/.local/share";
|
|
||||||
PASSWORD_STORE_DIR = "$HOME/.local/share/password-store";
|
|
||||||
EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.libinput.enable = true;
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
services = {
|
|
||||||
dbus = {
|
dbus = {
|
||||||
enable = true;
|
|
||||||
implementation = "broker";
|
implementation = "broker";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
gcr
|
gcr
|
||||||
@@ -86,21 +72,15 @@ in {
|
|||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
udisks2.enable = true;
|
udisks2.enable = true;
|
||||||
};
|
};
|
||||||
|
console.keyMap = keyboardLayout;
|
||||||
|
|
||||||
# enable zsh autocompletion for system packages (systemd, etc)
|
environment = {
|
||||||
environment.pathsToLink = ["/share/zsh"];
|
variables = {
|
||||||
|
PASSWORD_STORE_DIR = "$HOME/.local/share/password-store";
|
||||||
# Faster rebuilding
|
|
||||||
documentation = {
|
|
||||||
enable = true;
|
|
||||||
doc.enable = false;
|
|
||||||
man.enable = true;
|
|
||||||
dev.enable = false;
|
|
||||||
info.enable = false;
|
|
||||||
nixos.enable = false;
|
|
||||||
};
|
};
|
||||||
|
# enable zsh autocompletion for system packages (systemd, etc)
|
||||||
environment.systemPackages = with pkgs; [
|
pathsToLink = ["/share/zsh"];
|
||||||
|
systemPackages = with pkgs; [
|
||||||
fd
|
fd
|
||||||
bc
|
bc
|
||||||
gcc
|
gcc
|
||||||
@@ -123,9 +103,19 @@ in {
|
|||||||
unrar
|
unrar
|
||||||
p7zip
|
p7zip
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
# Faster rebuilding
|
||||||
|
documentation = {
|
||||||
|
doc.enable = false;
|
||||||
|
dev.enable = false;
|
||||||
|
info.enable = false;
|
||||||
|
nixos.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
config = {
|
config = {
|
||||||
common.default = ["gtk"];
|
common.default = ["gtk"];
|
||||||
@@ -138,14 +128,5 @@ in {
|
|||||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security.rtkit.enable = true;
|
||||||
# allow wayland lockers to unlock the screen
|
|
||||||
pam.services.hyprlock.text = "auth include login";
|
|
||||||
|
|
||||||
# userland niceness
|
|
||||||
rtkit.enable = true;
|
|
||||||
|
|
||||||
# don't ask for password for wheel group
|
|
||||||
sudo.wheelNeedsPassword = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,16 +7,18 @@
|
|||||||
options.theme = lib.mkOption {
|
options.theme = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {
|
default = {
|
||||||
rounding = 25;
|
rounding = 20;
|
||||||
gaps-in = 10;
|
bar-height = 36;
|
||||||
gaps-out = 10 * 2;
|
bar-rounding = 20 + 10;
|
||||||
active-opacity = 0.99;
|
bar-thickness = 0;
|
||||||
inactive-opacity = 0.97;
|
gaps-in = 8;
|
||||||
|
gaps-out = 8 * 2;
|
||||||
|
active-opacity = 0.96;
|
||||||
|
inactive-opacity = 0.92;
|
||||||
blur = true;
|
blur = true;
|
||||||
border-size = 2;
|
border-size = 2;
|
||||||
animation-speed = "medium"; # "fast" | "medium" | "slow"
|
animation-speed = "medium"; # "fast" | "medium" | "slow"
|
||||||
fetch = "none"; # "nerdfetch" | "neofetch" | "pfetch" | "none"
|
fetch = "none"; # "nerdfetch" | "neofetch" | "pfetch" | "none"
|
||||||
textColorOnWallpaper = config.lib.stylix.colors.base00; # Color of the text displayed on the wallpaper (Lockscreen, display manager, ...)
|
|
||||||
};
|
};
|
||||||
description = "Theme configuration options";
|
description = "Theme configuration options";
|
||||||
};
|
};
|
||||||
@@ -26,8 +28,8 @@
|
|||||||
|
|
||||||
# See https://tinted-theming.github.io/tinted-gallery/ for more schemes
|
# See https://tinted-theming.github.io/tinted-gallery/ for more schemes
|
||||||
base16Scheme = {
|
base16Scheme = {
|
||||||
base00 = "110F12"; # Default Background
|
base00 = "0A0A0C"; # Default Background
|
||||||
base01 = "1C1920"; # Lighter Background (Used for status bars, line number and folding marks)
|
base01 = "110F12"; # Lighter Background (Used for status bars, line number and folding marks)
|
||||||
base02 = "2D2A36"; # Selection Background
|
base02 = "2D2A36"; # Selection Background
|
||||||
base03 = "514D63"; # Comments, Invisibles, Line Highlighting
|
base03 = "514D63"; # Comments, Invisibles, Line Highlighting
|
||||||
base04 = "8E8AA0"; # Dark Foreground (Used for status bars)
|
base04 = "8E8AA0"; # Dark Foreground (Used for status bars)
|
||||||
@@ -56,8 +58,8 @@
|
|||||||
name = "Maple Mono NF";
|
name = "Maple Mono NF";
|
||||||
};
|
};
|
||||||
sansSerif = {
|
sansSerif = {
|
||||||
package = pkgs.source-sans-pro;
|
package = pkgs.rubik;
|
||||||
name = "Source Sans Pro";
|
name = "Rubik";
|
||||||
};
|
};
|
||||||
serif = config.stylix.fonts.sansSerif;
|
serif = config.stylix.fonts.sansSerif;
|
||||||
emoji = {
|
emoji = {
|
||||||
@@ -74,8 +76,8 @@
|
|||||||
|
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
image = pkgs.fetchurl {
|
image = pkgs.fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/anotherhadi/awesome-wallpapers/refs/heads/main/app/static/wallpapers/white-snow-and-a-tree_light.png";
|
url = "https://raw.githubusercontent.com/anotherhadi/awesome-wallpapers/main/app/static/wallpapers/another-one.png";
|
||||||
sha256 = "sha256-HKqDY/iCcV++WwNuNIWZEyXuxYuGWG+krn2vPTe58HQ=";
|
sha256 = "sha256-zthfsd4QLShPPApV8RoPANaymMC5IiCrmp8QwyyhCcY=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options.theme = lib.mkOption {
|
|
||||||
type = lib.types.attrs;
|
|
||||||
default = {
|
|
||||||
rounding = 30;
|
|
||||||
gaps-in = 12;
|
|
||||||
gaps-out = 12 * 2;
|
|
||||||
active-opacity = 0.96;
|
|
||||||
inactive-opacity = 0.94;
|
|
||||||
blur = true;
|
|
||||||
border-size = 4;
|
|
||||||
animation-speed = "fast"; # "fast" | "medium" | "slow"
|
|
||||||
fetch = "none"; # "nerdfetch" | "neofetch" | "pfetch" | "none"
|
|
||||||
textColorOnWallpaper = config.lib.stylix.colors.base00; # Color of the text displayed on the wallpaper (Lockscreen, display manager, ...)
|
|
||||||
};
|
|
||||||
description = "Theme configuration options";
|
|
||||||
};
|
|
||||||
|
|
||||||
config.stylix = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# See https://tinted-theming.github.io/tinted-gallery/ for more schemes
|
|
||||||
base16Scheme = {
|
|
||||||
base00 = "151320"; # Default Background
|
|
||||||
base01 = "1f1d2e"; # Lighter Background (Used for status bars, line number and folding marks)
|
|
||||||
base02 = "26233a"; # Selection Background
|
|
||||||
base03 = "6e6a86"; # Comments, Invisibles, Line Highlighting
|
|
||||||
base04 = "908caa"; # Dark Foreground (Used for status bars)
|
|
||||||
base05 = "e0def4"; # Default Foreground, Caret, Delimiters, Operators
|
|
||||||
base06 = "e0def4"; # Light Foreground (Not often used)
|
|
||||||
base07 = "524f67"; # Light Background (Not often used)
|
|
||||||
base08 = "eb6f92"; # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
|
||||||
base09 = "f6c177"; # Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
|
||||||
base0A = "ebbcba"; # Classes, Markup Bold, Search Text Background
|
|
||||||
base0B = "31748f"; # Strings, Inherited Class, Markup Code, Diff Inserted
|
|
||||||
base0C = "9ccfd8"; # Support, Regular Expressions, Escape Characters, Markup Quotes
|
|
||||||
base0D = "c4a7e7"; # Functions, Methods, Attribute IDs, Headings, Accent color
|
|
||||||
base0E = "f6c177"; # Keywords, Storage, Selector, Markup Italic, Diff Changed
|
|
||||||
base0F = "524f67"; # Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|
|
||||||
};
|
|
||||||
|
|
||||||
cursor = {
|
|
||||||
name = "BreezeX-RosePine-Linux";
|
|
||||||
package = pkgs.rose-pine-cursor;
|
|
||||||
size = 20;
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts = {
|
|
||||||
monospace = {
|
|
||||||
package = pkgs.maple-mono.NF;
|
|
||||||
name = "Maple Mono NF";
|
|
||||||
};
|
|
||||||
sansSerif = {
|
|
||||||
package = pkgs.source-sans-pro;
|
|
||||||
name = "Source Sans Pro";
|
|
||||||
};
|
|
||||||
serif = config.stylix.fonts.sansSerif;
|
|
||||||
emoji = {
|
|
||||||
package = pkgs.noto-fonts-color-emoji;
|
|
||||||
name = "Noto Color Emoji";
|
|
||||||
};
|
|
||||||
sizes = {
|
|
||||||
applications = 13;
|
|
||||||
desktop = 13;
|
|
||||||
popups = 13;
|
|
||||||
terminal = 13;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
polarity = "dark";
|
|
||||||
image = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/anotherhadi/awesome-wallpapers/refs/heads/main/app/static/wallpapers/pink-clouds.png";
|
|
||||||
sha256 = "sha256-IvINf62mg9rKjml4sh8hl/j7UHrQQlbm6QnZTaI+TRk=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options.theme = lib.mkOption {
|
|
||||||
type = lib.types.attrs;
|
|
||||||
default = {
|
|
||||||
rounding = 30;
|
|
||||||
gaps-in = 12;
|
|
||||||
gaps-out = 12 * 2;
|
|
||||||
active-opacity = 0.99;
|
|
||||||
inactive-opacity = 0.98;
|
|
||||||
blur = false;
|
|
||||||
border-size = 4;
|
|
||||||
animation-speed = "medium"; # "fast" | "medium" | "slow"
|
|
||||||
fetch = "none"; # "nerdfetch" | "neofetch" | "pfetch" | "none"
|
|
||||||
textColorOnWallpaper = config.lib.stylix.colors.base00; # Color of the text displayed on the wallpaper (Lockscreen, display manager, ...)
|
|
||||||
};
|
|
||||||
description = "Theme configuration options";
|
|
||||||
};
|
|
||||||
|
|
||||||
config.stylix = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# See https://tinted-theming.github.io/tinted-gallery/ for more schemes
|
|
||||||
base16Scheme = {
|
|
||||||
base00 = "090E13"; # Default Background
|
|
||||||
base01 = "12171E"; # Lighter Background (Used for status bars, line number and folding marks)
|
|
||||||
base02 = "393B44"; # Selection Background
|
|
||||||
base03 = "54546D"; # Comments, Invisibles, Line Highlighting
|
|
||||||
base04 = "A4A7A4"; # Dark Foreground (Used for status bars)
|
|
||||||
base05 = "C5C9C7"; # Default Foreground, Caret, Delimiters, Operators
|
|
||||||
base06 = "DCD7BA"; # Light Foreground (Not often used)
|
|
||||||
base07 = "C8C093"; # Light Background (Not often used)
|
|
||||||
base08 = "C4746E"; # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
|
||||||
base09 = "B6927B"; # Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
|
||||||
base0A = "C4B28A"; # Classes, Markup Bold, Search Text Background
|
|
||||||
base0B = "8A9A7B"; # Strings, Inherited Class, Markup Code, Diff Inserted
|
|
||||||
base0C = "8EA4A2"; # Support, Regular Expressions, Escape Characters, Markup Quotes
|
|
||||||
base0D = "8BA4B0"; # Functions, Methods, Attribute IDs, Headings, Accent color
|
|
||||||
base0E = "A292A3"; # Keywords, Storage, Selector, Markup Italic, Diff Changed
|
|
||||||
base0F = "B98D7B"; # Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|
|
||||||
};
|
|
||||||
|
|
||||||
cursor = {
|
|
||||||
name = "BreezeX-RosePine-Linux";
|
|
||||||
package = pkgs.rose-pine-cursor;
|
|
||||||
size = 20;
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts = {
|
|
||||||
monospace = {
|
|
||||||
package = pkgs.maple-mono.NF;
|
|
||||||
name = "Maple Mono NF";
|
|
||||||
};
|
|
||||||
sansSerif = {
|
|
||||||
package = pkgs.source-sans-pro;
|
|
||||||
name = "Source Sans Pro";
|
|
||||||
};
|
|
||||||
serif = config.stylix.fonts.sansSerif;
|
|
||||||
emoji = {
|
|
||||||
package = pkgs.noto-fonts-color-emoji;
|
|
||||||
name = "Noto Color Emoji";
|
|
||||||
};
|
|
||||||
sizes = {
|
|
||||||
applications = 13;
|
|
||||||
desktop = 13;
|
|
||||||
popups = 13;
|
|
||||||
terminal = 13;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
polarity = "dark";
|
|
||||||
image = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/anotherhadi/awesome-wallpapers/refs/heads/main/app/static/wallpapers/nepal.png";
|
|
||||||
sha256 = "sha256-0o2+B3+yA++PCyfNC+VqmaX959aKk3GuD7XpOq3SGcM=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
- [ ] Configuration waybar
|
||||||
|
- [ ] Configuration sway-nc
|
||||||
|
- [ ] Configuration sway-osd
|
||||||
|
- [ ] Configuration hyprlock
|
||||||
|
- [x] Gaming/Focus mode
|
||||||
|
- [ ] Configuration Rofi/Drun
|
||||||
|
- [ ] Helium plus rapide ? service/deamon ?
|
||||||
|
- [ ] Ghostty service/deamon ?
|
||||||
|
- [ ] Tofi service/deamon ?
|
||||||
|
- [ ] Clean files
|
||||||
|
- [ ] NVF dans Nur
|
||||||
|
- [ ] Check claude: Sécu, mots en français, faute, ...
|
||||||
Reference in New Issue
Block a user