stylix and bugfixes
This commit is contained in:
parent
1b31f9e29c
commit
86a63e1131
11 changed files with 193 additions and 155 deletions
2
TODO.md
2
TODO.md
|
|
@ -3,7 +3,7 @@
|
||||||
- [ ] Look into why nix auto update fails
|
- [ ] Look into why nix auto update fails
|
||||||
- [ ] Look into the "ignoring duplicate names" errors
|
- [ ] Look into the "ignoring duplicate names" errors
|
||||||
- [ ] Center tuigreet
|
- [ ] Center tuigreet
|
||||||
- [ ] fix xdg default apps
|
- [x] fix xdg default apps
|
||||||
- [ ] selinux
|
- [ ] selinux
|
||||||
- https://github.com/NixOS/nixpkgs/pull/396177
|
- https://github.com/NixOS/nixpkgs/pull/396177
|
||||||
- [ ] Secure boot
|
- [ ] Secure boot
|
||||||
|
|
|
||||||
78
flake.lock
generated
78
flake.lock
generated
|
|
@ -71,11 +71,11 @@
|
||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764724327,
|
"lastModified": 1764873433,
|
||||||
"narHash": "sha256-OkFLrD3pFR952TrjQi1+Vdj604KLcMnkpa7lkW7XskI=",
|
"narHash": "sha256-1XPewtGMi+9wN9Ispoluxunw/RwozuTRVuuQOmxzt+A=",
|
||||||
"owner": "rafaelmardojai",
|
"owner": "rafaelmardojai",
|
||||||
"repo": "firefox-gnome-theme",
|
"repo": "firefox-gnome-theme",
|
||||||
"rev": "66b7c635763d8e6eb86bd766de5a1e1fbfcc1047",
|
"rev": "f7ffd917ac0d253dbd6a3bf3da06888f57c69f92",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -134,11 +134,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763759067,
|
"lastModified": 1767609335,
|
||||||
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
|
"narHash": "sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
|
"rev": "250481aafeb741edfe23d29195671c19b36b6dca",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -167,11 +167,11 @@
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "gitlab.gnome.org",
|
"host": "gitlab.gnome.org",
|
||||||
"lastModified": 1764524476,
|
"lastModified": 1767737596,
|
||||||
"narHash": "sha256-bTmNn3Q4tMQ0J/P0O5BfTQwqEnCiQIzOGef9/aqAZvk=",
|
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "c0e1ad9f0f703fd0519033b8f46c3267aab51a22",
|
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -189,11 +189,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767619900,
|
"lastModified": 1767850628,
|
||||||
"narHash": "sha256-KpoCBPvwHz3gAQtIUkohE2InRBFK3r0/FM6z5SPWfvM=",
|
"narHash": "sha256-D3QzdIT11J66I4mzwmIpAGLzPAcbCS2VaKN8fmOe6+E=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6bd04da47cfb48dfd15eabf08364b78ad894f5b2",
|
"rev": "8c8a16d41353a174767c38b962359b51a56ca02e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -205,11 +205,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767480499,
|
"lastModified": 1767799921,
|
||||||
"narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
|
"narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
|
"rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -221,11 +221,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767379071,
|
"lastModified": 1767767207,
|
||||||
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
|
"narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fb7944c166a3b630f177938e478f0378e64ce108",
|
"rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -243,11 +243,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767704150,
|
"lastModified": 1767889854,
|
||||||
"narHash": "sha256-gmsKd2pR6ROVhdEvjZGd7VXtxy3i4zp4a95lw9lC2M8=",
|
"narHash": "sha256-GfGSk0M0u6EOVEUaWRCbD388BKCrUie3IMj3YmQAZ3A=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "ec208cf77fd8acf9d67954f0919aa6bdbbb17519",
|
"rev": "984f8b7cd88215f470c41e4f7c5ce549758ce5d7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -264,11 +264,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767704150,
|
"lastModified": 1767889854,
|
||||||
"narHash": "sha256-gmsKd2pR6ROVhdEvjZGd7VXtxy3i4zp4a95lw9lC2M8=",
|
"narHash": "sha256-GfGSk0M0u6EOVEUaWRCbD388BKCrUie3IMj3YmQAZ3A=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "ec208cf77fd8acf9d67954f0919aa6bdbbb17519",
|
"rev": "984f8b7cd88215f470c41e4f7c5ce549758ce5d7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -289,11 +289,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764773531,
|
"lastModified": 1767810917,
|
||||||
"narHash": "sha256-mCBl7MD1WZ7yCG6bR9MmpPO2VydpNkWFgnslJRIT1YU=",
|
"narHash": "sha256-ZKqhk772+v/bujjhla9VABwcvz+hB2IaRyeLT6CFnT0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "1d9616689e98beded059ad0384b9951e967a17fa",
|
"rev": "dead29c804adc928d3a69dfe7f9f12d0eec1f1a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -333,11 +333,11 @@
|
||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767652667,
|
"lastModified": 1767886384,
|
||||||
"narHash": "sha256-zsgfockkvK0JrSvzVAb8JeUq3SDdITu6ViUf7yeIpi4=",
|
"narHash": "sha256-5/hrrHMZuwwJXqLb86MBElPKS61Efe+hgGkVvpbzJM4=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "a4406d9799d002c41296c72378a1094a8fc9aa1b",
|
"rev": "a525e4774f2576e0f10b8b183c2dfaf7d165c052",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -397,11 +397,11 @@
|
||||||
"tinted-schemes": {
|
"tinted-schemes": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763914658,
|
"lastModified": 1767710407,
|
||||||
"narHash": "sha256-Hju0WtMf3iForxtOwXqGp3Ynipo0EYx1AqMKLPp9BJw=",
|
"narHash": "sha256-+W1EB79Jl0/gm4JqmO0Nuc5C7hRdp4vfsV/VdzI+des=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "schemes",
|
"repo": "schemes",
|
||||||
"rev": "0f6be815d258e435c9b137befe5ef4ff24bea32c",
|
"rev": "2800e2b8ac90f678d7e4acebe4fa253f602e05b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -413,11 +413,11 @@
|
||||||
"tinted-tmux": {
|
"tinted-tmux": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764465359,
|
"lastModified": 1767489635,
|
||||||
"narHash": "sha256-lbSVPqLEk2SqMrnpvWuKYGCaAlfWFMA6MVmcOFJjdjE=",
|
"narHash": "sha256-e6nnFnWXKBCJjCv4QG4bbcouJ6y3yeT70V9MofL32lU=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "tinted-tmux",
|
"repo": "tinted-tmux",
|
||||||
"rev": "edf89a780e239263cc691a987721f786ddc4f6aa",
|
"rev": "3c32729ccae99be44fe8a125d20be06f8d7d8184",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -429,11 +429,11 @@
|
||||||
"tinted-zed": {
|
"tinted-zed": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764464512,
|
"lastModified": 1767488740,
|
||||||
"narHash": "sha256-rCD/pAhkMdCx6blsFwxIyvBJbPZZ1oL2sVFrH07lmqg=",
|
"narHash": "sha256-wVOj0qyil8m+ouSsVZcNjl5ZR+1GdOOAooAatQXHbuU=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-zed",
|
"repo": "base16-zed",
|
||||||
"rev": "907dbba5fb8cf69ebfd90b00813418a412d0a29a",
|
"rev": "11abb0b282ad3786a2aae088d3a01c60916f2e40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
globalShellAbbrs = baseAbbrs // hostnameAbbrs;
|
globalShellAbbrs = baseAbbrs // hostnameAbbrs;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
stylix.enableReleaseChecks = false;
|
||||||
home.username = "alisceon";
|
home.username = "alisceon";
|
||||||
home.homeDirectory = "/home/alisceon";
|
home.homeDirectory = "/home/alisceon";
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
|
||||||
|
|
@ -7,17 +7,19 @@
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
firefox = {
|
|
||||||
enable = true;
|
|
||||||
nativeMessagingHosts = [
|
|
||||||
pkgs.firefoxpwa
|
|
||||||
];
|
|
||||||
profiles = {
|
|
||||||
default = {};
|
|
||||||
};
|
|
||||||
}; # end firefox
|
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
commandLineArgs = [
|
||||||
|
"--enable-features=TouchpadOverscrollHistoryNavigation,VaapiVideoDecoder"
|
||||||
|
];
|
||||||
|
extensions = [
|
||||||
|
{ id = "ddkjiahejlhfcafbddmgiahcphecmpfh"; } # ublock origin lite
|
||||||
|
{ id = "nngceckbapebfimnlniiiahkandclblb"; } # bitwarden
|
||||||
|
{ id = "mdjildafknihdffpkfmmpnpoiajfjnjd"; } # consent-o-matic
|
||||||
|
{ id = "mnjggcdmjocbbbhaepdhchncahnbgone"; } # sponsorblock
|
||||||
|
{ id = "ijcpiojgefnkmcadacmacogglhjdjphj"; } # shinigami eyes
|
||||||
|
{ id = "kbmfpngjjgdllneeigpgjifpgocmfgmb"; } # reddit enhancement suite
|
||||||
|
];
|
||||||
}; # end chromium
|
}; # end chromium
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -27,12 +29,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
}; # end discord
|
}; # end discord
|
||||||
}; # end programs
|
}; # end programs
|
||||||
stylix.targets = {
|
|
||||||
firefox = {
|
|
||||||
enable = true;
|
|
||||||
profileNames = [ "default" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# obsidian special case
|
# obsidian special case
|
||||||
# programs.obsidian.enable = true;
|
# programs.obsidian.enable = true;
|
||||||
|
|
@ -49,13 +45,21 @@
|
||||||
autostart = {
|
autostart = {
|
||||||
enable = true;
|
enable = true;
|
||||||
entries = [
|
entries = [
|
||||||
"${pkgs.firefox}/share/applications/firefox.desktop"
|
"${pkgs.chromium}/share/applications/chromium-browser.desktop"
|
||||||
"${pkgs.discord}/share/applications/discord.desktop"
|
"${pkgs.discord}/share/applications/discord.desktop"
|
||||||
"${pkgs.signal-desktop}/share/applications/signal.desktop"
|
"${pkgs.signal-desktop}/share/applications/signal.desktop"
|
||||||
"${pkgs.obsidian}/share/applications/obsidian.desktop"
|
"${pkgs.obsidian}/share/applications/obsidian.desktop"
|
||||||
"${pkgs.vscode}/share/applications/code.desktop"
|
"${pkgs.vscode}/share/applications/code.desktop"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
desktopEntries = {
|
||||||
|
chromium-dailies = {
|
||||||
|
name = "Chromium Dailies";
|
||||||
|
genericName = "Web Browser (with dailies)";
|
||||||
|
exec = "xonsh /home/alisceon/.nixos_config/util/open_dailies.xsh";
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ if $XONSH_INTERACTIVE:
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import importlib.util
|
import importlib.util
|
||||||
t0 = datetime.now()
|
t0 = datetime.now()
|
||||||
|
|
||||||
## ENV ##
|
## ENV ##
|
||||||
$XONSH_COLOR_STYLE = 'native'
|
$XONSH_COLOR_STYLE = 'native'
|
||||||
$PROMPT = '{YELLOW}{env_name}{RESET}{BOLD_GREEN}{user}@{hostname} {cwd}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '
|
$PROMPT = '{YELLOW}{env_name}{RESET}{BOLD_GREEN}{user}@{hostname} {cwd}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '
|
||||||
|
|
@ -51,6 +52,8 @@ if $XONSH_INTERACTIVE:
|
||||||
|
|
||||||
## THICC SHELL
|
## THICC SHELL
|
||||||
if $SHELL_THICCNESS == "HIGH" and not $SHELL_THICKENED == "TRUE":
|
if $SHELL_THICCNESS == "HIGH" and not $SHELL_THICKENED == "TRUE":
|
||||||
|
t0_0 = datetime.now()
|
||||||
|
# Standard Library Imports
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
@ -60,15 +63,25 @@ if $XONSH_INTERACTIVE:
|
||||||
import pathlib
|
import pathlib
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
import scapy.all
|
import threading
|
||||||
import yaml
|
import multiprocessing
|
||||||
import requests
|
# Third Party Imports
|
||||||
|
if importlib.util.find_spec("scapy") is not None:
|
||||||
|
import scapy.all
|
||||||
|
if importlib.util.find_spec("yaml") is not None:
|
||||||
|
import yaml
|
||||||
|
if importlib.util.find_spec("requests") is not None:
|
||||||
|
import requests
|
||||||
$SHELL_THICKENED = "TRUE"
|
$SHELL_THICKENED = "TRUE"
|
||||||
|
t0_1 = datetime.now()
|
||||||
|
else:
|
||||||
|
xonsh_rc_path = $XONSHRC[0]
|
||||||
|
aliases["thicken-shell"] = f"export SHELL_THICCNESS=HIGH && source {xonsh_rc_path}"
|
||||||
|
|
||||||
## THEO GREETING ##
|
## THEO GREETING ##
|
||||||
hour = t0.hour
|
hour = t0.hour
|
||||||
theo | kittycatsay
|
theo | kittycatsay
|
||||||
dt = round((datetime.now() - t0).microseconds/1000000, 2)
|
dt = round((datetime.now() - t0).microseconds/1000000, 2)
|
||||||
print("Load time:", dt, "seconds")
|
|
||||||
if $SHELL_THICKENED == "TRUE":
|
if $SHELL_THICKENED == "TRUE":
|
||||||
print_color("{BOLD_GREEN}THICC SHELL LOADED!{RESET}")
|
print_color("{BOLD_GREEN}SHELL THICKENED IN " + str(round((t0_1 - t0_0).microseconds/1000000, 2)) + "{RESET}")
|
||||||
|
print("Load time:", dt, "seconds")
|
||||||
|
|
@ -1,10 +1,5 @@
|
||||||
{ pkgs, config, hostName, lib, ... }: {
|
{ pkgs, config, hostName, lib, ... }: {
|
||||||
programs = {
|
programs = {
|
||||||
firefox = {
|
|
||||||
nativeMessagingHosts = [
|
|
||||||
pkgs.gnome-browser-connector
|
|
||||||
];
|
|
||||||
}; # end firefox
|
|
||||||
}; # end programs
|
}; # end programs
|
||||||
|
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
|
|
|
||||||
115
home/wm/sway.nix
115
home/wm/sway.nix
|
|
@ -110,7 +110,7 @@
|
||||||
modifier = "${key_mod}";
|
modifier = "${key_mod}";
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "systemctl --user start libinput-gestures"; }
|
{ command = "systemctl --user start libinput-gestures"; }
|
||||||
{ command = "swaybg -m fill -i /home/alisceon/Pictures/system/bg.png";}
|
{ command = "swaybg -m fill -i /home/alisceon/Pictures/system/bg.png";}
|
||||||
];
|
];
|
||||||
bars = [
|
bars = [
|
||||||
{ command = "${pkgs.waybar}/bin/waybar"; }
|
{ command = "${pkgs.waybar}/bin/waybar"; }
|
||||||
|
|
@ -127,6 +127,7 @@
|
||||||
"type:mouse" = {
|
"type:mouse" = {
|
||||||
natural_scroll = "disabled";
|
natural_scroll = "disabled";
|
||||||
accel_profile = "flat";
|
accel_profile = "flat";
|
||||||
|
pointer_accel = "0.5";
|
||||||
};
|
};
|
||||||
"*" = {
|
"*" = {
|
||||||
xkb_layout = hostnameInputs;
|
xkb_layout = hostnameInputs;
|
||||||
|
|
@ -226,7 +227,7 @@
|
||||||
];
|
];
|
||||||
}; # end window
|
}; # end window
|
||||||
assigns = {
|
assigns = {
|
||||||
"1" = [{app_id = "firefox";}];
|
"1" = [{app_id = "chromium";}];
|
||||||
"2" = [{class = "steam";}];
|
"2" = [{class = "steam";}];
|
||||||
"3" = [];
|
"3" = [];
|
||||||
"4" = [{class = "Code";}];
|
"4" = [{class = "Code";}];
|
||||||
|
|
@ -361,6 +362,9 @@
|
||||||
enable_audio_bell = false;
|
enable_audio_bell = false;
|
||||||
window_padding_width = 2;
|
window_padding_width = 2;
|
||||||
};
|
};
|
||||||
|
environment = {
|
||||||
|
SHELL_THICCNESS = "LOW"; # instructs xonsh to default to a slim environment
|
||||||
|
};
|
||||||
}; # end kitty
|
}; # end kitty
|
||||||
}; # end programs
|
}; # end programs
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
@ -369,73 +373,58 @@
|
||||||
gtk3.enable = true;
|
gtk3.enable = true;
|
||||||
gtk4.enable = true;
|
gtk4.enable = true;
|
||||||
};
|
};
|
||||||
|
xdg = {
|
||||||
|
configFile."libinput-gestures.conf".text = ''
|
||||||
|
gesture pinch in 3 sh -c "echo key ctrl+w | ${pkgs.dotool}/bin/dotool"
|
||||||
|
gesture swipe left 3 ${swaymsg} workspace prev
|
||||||
|
gesture swipe right 3 ${swaymsg} workspace next
|
||||||
|
gesture swipe down 3 ${swaymsg} move container to scratchpad
|
||||||
|
gesture swipe up 3 ${swaymsg} fullscreen
|
||||||
|
gesture swipe down 4 ${lock}
|
||||||
|
gesture pinch out 3 ${swaymsg} floating toggle
|
||||||
|
gesture pinch in 4 ${swaymsg} kill
|
||||||
|
'';
|
||||||
|
configFile."electron-flags.conf".text = ''
|
||||||
|
--enable-features=WaylandWindowDecorations,AllowQt
|
||||||
|
--ozone-platform=wayland
|
||||||
|
--gtk-version=4
|
||||||
|
'';
|
||||||
|
mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplicationPackages = [
|
||||||
|
pkgs.gnome-text-editor
|
||||||
|
pkgs.evince
|
||||||
|
pkgs.vlc
|
||||||
|
pkgs.loupe
|
||||||
|
pkgs.nautilus
|
||||||
|
pkgs.chromium
|
||||||
|
];
|
||||||
|
defaultApplications = { # mostly redundant but the additional granularity is good for reducing friction
|
||||||
|
# Text
|
||||||
|
"text/*" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
||||||
|
"application/xml" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
||||||
|
"application/json" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
||||||
|
"application/pdf" = [ "${pkgs.evince}/share/applications/org.gnome.Evince.desktop" ];
|
||||||
|
# Media
|
||||||
|
"video/*" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
||||||
|
"audio/*" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
||||||
|
|
||||||
xdg.configFile."libinput-gestures.conf".text = ''
|
# Browser
|
||||||
gesture swipe left 3 ${swaymsg} workspace prev
|
"text/html" = [ "${pkgs.chromium}/share/applications/chromium.desktop" ];
|
||||||
gesture swipe right 3 ${swaymsg} workspace next
|
"application/xhtml+xml" = [ "${pkgs.chromium}/share/applications/chromium.desktop" ];
|
||||||
gesture swipe down 3 ${swaymsg} move container to scratchpad
|
"application/x-web-app-manifest+json" = [ "${pkgs.chromium}/share/applications/chromium.desktop" ];
|
||||||
gesture swipe up 3 ${swaymsg} fullscreen
|
"application/xml-dtd" = [ "${pkgs.chromium}/share/applications/chromium.desktop" ];
|
||||||
gesture pinch in 3 ${swaymsg} floating enable
|
|
||||||
gesture pinch out 3 ${swaymsg} floating disable
|
|
||||||
gesture pinch in 4 ${swaymsg} kill
|
|
||||||
gesture swipe up 4 ${lock}
|
|
||||||
'';
|
|
||||||
xdg.configFile."electron-flags.conf".text = ''
|
|
||||||
--enable-features=WaylandWindowDecorations,AllowQt
|
|
||||||
--ozone-platform=wayland
|
|
||||||
--gtk-version=4
|
|
||||||
'';
|
|
||||||
xdg.configFile."chromium-flags.conf".text = ''
|
|
||||||
--enable-features=WaylandWindowDecorations,AllowQt
|
|
||||||
--ozone-platform=wayland
|
|
||||||
--gtk-version=4
|
|
||||||
'';
|
|
||||||
xdg.mimeApps = {
|
|
||||||
enable = true;
|
|
||||||
defaultApplications ={
|
|
||||||
# Text
|
|
||||||
"text/plain" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
"text/markdown" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
"text/x-markdown" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
"text/csv" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
"text/xml" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
"application/xml" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
"application/json" = [ "${pkgs.gnome-text-editor}/share/applications/org.gnome.TextEditor.desktop" ];
|
|
||||||
|
|
||||||
# Media
|
|
||||||
"video/mp4" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"audio/mpeg" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"audio/ogg" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"audio/wav" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"audio/flac" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"video/x-matroska" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"video/webm" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"video/avi" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
"video/mkv" = [ "${pkgs.vlc}/share/applications/vlc.desktop" ];
|
|
||||||
|
|
||||||
# Browser
|
# Images
|
||||||
"text/html" = [ "${pkgs.firefox}/share/applications/firefox.desktop" ];
|
"image/*" = [ "${pkgs.loupe}/share/applications/org.gnome.Loupe.desktop.desktop" ];
|
||||||
"application/xhtml+xml" = [ "${pkgs.firefox}/share/applications/firefox.desktop" ];
|
};
|
||||||
"application/x-web-app-manifest+json" = [ "${pkgs.firefox}/share/applications/firefox.desktop" ];
|
|
||||||
"application/xml-dtd" = [ "${pkgs.firefox}/share/applications/firefox.desktop" ];
|
|
||||||
|
|
||||||
# Images
|
|
||||||
"image/png" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/jpeg" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/gif" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/bmp" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/webp" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/svg+xml" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/svg+xml-compressed" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/tiff" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/apng" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
"image/heic" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# this right here offends me https://source.chromium.org/chromium/chromium/src/+/main:base/nix/xdg_util.cc;l=179-180
|
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
|
# this right here offends me https://source.chromium.org/chromium/chromium/src/+/main:base/nix/xdg_util.cc;l=179-180
|
||||||
|
# setting GNOME_DESKTOP_SESSION_ID will fool some legacy systems into thinking we're running gnome
|
||||||
|
# this is an issue for xdg-open which can be circumvented by adding glib to the system which lets xdg-open fallback to gio-open
|
||||||
GNOME_DESKTOP_SESSION_ID = "999";
|
GNOME_DESKTOP_SESSION_ID = "999";
|
||||||
SHELL_THICCNESS = "LOW";
|
|
||||||
};
|
};
|
||||||
} # end file
|
} # end file
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
cowsay # important
|
cowsay # important
|
||||||
psmisc
|
psmisc
|
||||||
pv
|
pv
|
||||||
|
file
|
||||||
|
|
||||||
# Shells
|
# Shells
|
||||||
bash
|
bash
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,24 @@
|
||||||
{ config, pkgs, lib, hostName, ... }:
|
{ config, pkgs, lib, hostName, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
mako # notification system developed by swaywm maintainer
|
|
||||||
rofi
|
|
||||||
|
|
||||||
libinput
|
libinput
|
||||||
libinput-gestures
|
libinput-gestures
|
||||||
wmctrl
|
|
||||||
seahorse
|
|
||||||
libsecret
|
|
||||||
gnome-text-editor
|
|
||||||
nautilus
|
|
||||||
playerctl
|
|
||||||
libnotify
|
libnotify
|
||||||
|
wmctrl
|
||||||
|
playerctl
|
||||||
|
|
||||||
|
# MIME utilities
|
||||||
|
xdg-utils
|
||||||
|
shared-mime-info
|
||||||
|
|
||||||
|
# GNOME utilities
|
||||||
|
libsecret # Keyring backend
|
||||||
|
gnome-text-editor
|
||||||
|
loupe
|
||||||
|
evince
|
||||||
|
seahorse
|
||||||
|
nautilus
|
||||||
];
|
];
|
||||||
|
|
||||||
# enable Sway window manager
|
# enable Sway window manager
|
||||||
|
|
@ -25,20 +31,22 @@
|
||||||
"--unsupported-gpu"
|
"--unsupported-gpu"
|
||||||
];
|
];
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
swayidle
|
swayidle # idle management
|
||||||
swaylock
|
swaylock # screen locker
|
||||||
swayimg
|
swaybg # wallpaper setting tool
|
||||||
swaybg
|
grim # screenshot tool
|
||||||
grim
|
slurp # selection tool for screenshots
|
||||||
slurp
|
wl-clipboard # clipboard support (mostly for grim/slurp)
|
||||||
wl-clipboard
|
pulseaudio # pulseaudio support
|
||||||
pulseaudio
|
sway-contrib.grimshot # screenshot tool
|
||||||
sway-contrib.grimshot
|
kitty # terminal emulator
|
||||||
kitty
|
|
||||||
kitty-themes
|
kitty-themes
|
||||||
|
dotool # tool to send keyboard/mouse input to wayland apps
|
||||||
|
mako # notification system developed by swaywm maintainer
|
||||||
|
rofi # application launcher
|
||||||
];
|
];
|
||||||
}; # end sway
|
}; # end sway
|
||||||
uwsm = {
|
uwsm = { # responsible for creating xdg-portal and systemd insteraction for sway
|
||||||
enable = true;
|
enable = true;
|
||||||
waylandCompositors = {
|
waylandCompositors = {
|
||||||
sway = {
|
sway = {
|
||||||
|
|
@ -89,7 +97,8 @@
|
||||||
};
|
};
|
||||||
}; # end logind
|
}; # end logind
|
||||||
dbus.packages = [ pkgs.seahorse pkgs.gnome-keyring pkgs.gcr ];
|
dbus.packages = [ pkgs.seahorse pkgs.gnome-keyring pkgs.gcr ];
|
||||||
gnome.gcr-ssh-agent.enable = true;
|
gnome.gcr-ssh-agent.enable = true; # SSH key management via gnome keyring
|
||||||
|
gvfs.enable = true; # some support for nautilus operations
|
||||||
}; # end services
|
}; # end services
|
||||||
users.users.alisceon.extraGroups = [ "video" "input" ];
|
users.users.alisceon.extraGroups = [ "video" "input" ]; # input group required for libinput-gestures
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
8080
|
8080
|
||||||
8888
|
8888
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = [
|
systemPackages = [
|
||||||
# Chat
|
# Chat
|
||||||
|
|
@ -50,10 +50,8 @@
|
||||||
pkgs.mumble
|
pkgs.mumble
|
||||||
|
|
||||||
# Browser
|
# Browser
|
||||||
pkgs.firefox
|
(pkgs.chromium.override { enableWideVine = true; })
|
||||||
pkgs.firefoxpwa
|
|
||||||
pkgs.chromium
|
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
pkgs.vscode
|
pkgs.vscode
|
||||||
pkgs.devenv
|
pkgs.devenv
|
||||||
|
|
@ -69,5 +67,6 @@
|
||||||
pkgs.vlc
|
pkgs.vlc
|
||||||
pkgs.via
|
pkgs.via
|
||||||
]; # end systemPackages
|
]; # end systemPackages
|
||||||
|
sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
}; # end environment
|
}; # end environment
|
||||||
} #end file
|
} #end file
|
||||||
|
|
|
||||||
27
util/open_dailies.xsh
Normal file
27
util/open_dailies.xsh
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
dailies = [
|
||||||
|
"https://www.geoguessr.com/",
|
||||||
|
"https://timeguessr.com/roundonedaily/",
|
||||||
|
"https://contexto.me/en/",
|
||||||
|
"https://travle.earth/",
|
||||||
|
"https://www.nytimes.com/games/connections/",
|
||||||
|
"https://games.oec.world/en/tradle/",
|
||||||
|
"https://oec.world/en/games/connectrade/",
|
||||||
|
"https://worldle.teuteuf.fr/",
|
||||||
|
"https://countryle.com/",
|
||||||
|
"https://capitale.countryle.com/",
|
||||||
|
"https://globle-game.com/game/",
|
||||||
|
"https://frontofficesports.com/trivia/factle/",
|
||||||
|
"https://daydle.com/",
|
||||||
|
"https://histordle.com/yeardle/",
|
||||||
|
"https://angle.wtf/",
|
||||||
|
"https://playboardle.com/",
|
||||||
|
"https://www.chess.com/daily/",
|
||||||
|
"https://quizl.io/",
|
||||||
|
"https://redactle.net/",
|
||||||
|
"https://www.codewars.com/dashboard/",
|
||||||
|
"https://leetcode.com/",
|
||||||
|
]
|
||||||
|
|
||||||
|
subprocess.run(["chromium", "--new-window"] + dailies)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue