Compare commits

..

8 commits

Author SHA1 Message Date
Leonardo Eugênio a899d5b159
home: add automatic home-manager cleanup service 2025-03-27 01:07:27 -03:00
Leonardo Eugênio e649117615
refactor: move rm-target service and timer to separate file 2025-03-26 21:58:24 -03:00
Leonardo Eugênio fd3c642a10
factorio: update backup script filename to fix syncthing integration 2025-03-23 16:30:08 -03:00
Leonardo Eugênio dc6f25fd23
update 2025-03-21 00:55:53 -03:00
Leonardo Eugênio ccc5a10793
firefox: remove header styling 2025-03-20 20:51:33 -03:00
Leonardo Eugênio 5e3260a57e
cursor: add cursor editor 2025-03-20 20:36:48 -03:00
Leonardo Eugênio 07b509750b
gnome: install menulibre 2025-03-20 20:31:27 -03:00
lelgenio c361efb1eb
variables: switch to gnome 2025-03-20 16:59:12 -03:00
13 changed files with 87 additions and 77 deletions

View file

@ -73,22 +73,6 @@
"url": "https://git.lelgenio.com/lelgenio/catboy-spinner"
}
},
"contador-da-viagem": {
"flake": false,
"locked": {
"lastModified": 1742597480,
"narHash": "sha256-aN+Kioc4AWPMyJxfz/zFCo2YdP4YxcPqoUcp46z9KcA=",
"ref": "refs/heads/main",
"rev": "29dde9d1965b1f8c1b870185a95859c050ba847d",
"revCount": 3,
"type": "git",
"url": "https://git.lelgenio.com/lelgenio/contador-da-viagem"
},
"original": {
"type": "git",
"url": "https://git.lelgenio.com/lelgenio/contador-da-viagem"
}
},
"crane": {
"inputs": {
"flake-compat": "flake-compat",
@ -725,7 +709,6 @@
"inputs": {
"agenix": "agenix",
"catboy-spinner": "catboy-spinner",
"contador-da-viagem": "contador-da-viagem",
"demoji": "demoji",
"dhist": "dhist",
"disko": "disko",

View file

@ -56,10 +56,6 @@
wl-crosshair.url = "github:lelgenio/wl-crosshair";
warthunder-leak-counter.url = "git+https://git.lelgenio.com/lelgenio/warthunder-leak-counter";
made-you-look.url = "git+https://git.lelgenio.com/lelgenio/made-you-look";
contador-da-viagem = {
url = "git+https://git.lelgenio.com/lelgenio/contador-da-viagem";
flake = false;
};
catboy-spinner = {
url = "git+https://git.lelgenio.com/lelgenio/catboy-spinner";
flake = false;

View file

@ -43,9 +43,4 @@
forceSSL = true;
root = inputs.hello-fonts;
};
services.nginx.virtualHosts."contador-da-viagem.lelgenio.com" = {
enableACME = true;
forceSSL = true;
root = inputs.contador-da-viagem;
};
}

View file

@ -0,0 +1,15 @@
[Desktop Entry]
Name=Cursor
Exec=/home/lelgenio/.local/bin/cursor --enable-features=UseOzonePlatform --ozone-platform-hint=wayland %F
Path=/home/lelgenio/.local/bin
Icon=/home/lelgenio/.icons/cursor.png
Type=Application
Categories=Utility;Development;
StartupWMClass=Cursor
X-AppImage-Version=latest
Comment=Cursor is an AI-first coding environment.
MimeType=x-scheme-handler/cursor;
[Desktop Action new-empty-window]
Exec=/home/lelgenio/.local/bin/cursor --enable-features=UseOzonePlatformc --ozone-platform-hint --new-window %F

20
user/cursor/default.nix Normal file
View file

@ -0,0 +1,20 @@
{
pkgs,
lib,
...
}:
{
options.cursor = {
enable = lib.mkEnableOption { };
};
config = lib.mkIf config.cursor.enable {
home.file = {
"${config.home.homeDirectory}/.local/share/applications/cursor.desktop".source = ./cursor.desktop;
"${config.home.homeDirectory}/.config/Cusor/User/keybindings.json".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/cursor/keybindings.json";
"${config.home.homeDirectory}/.config/Cursor/User/settings.json".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/cursor/settings.json";
};
};
}

View file

@ -0,0 +1 @@
[]

34
user/cursor/settings.json Normal file
View file

@ -0,0 +1,34 @@
{
"terminal.integrated.sendKeybindingsToShell": true,
"window.titleBarStyle": "custom",
"workbench.preferredDarkColorTheme": "GitHub Dark",
"workbench.preferredLightColorTheme": "GitHub Light",
"window.autoDetectColorScheme": true,
"workbench.colorTheme": "GitHub Dark",
"git.autofetch": true,
"git.confirmSync": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"update.mode": "none",
"intelephense.files.exclude": [
"**/.git/**",
"**/.svn/**",
"**/.hg/**",
"**/CVS/**",
"**/.DS_Store/**",
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**/{Tests,tests}/**",
"**/.history/**",
"**/vendor/**/vendor/**",
"**/.direnv/**"
],
"intelephense.format.braces": "k&r",
"window.commandCenter": 1,
"files.exclude": {
"**/.deps": true,
"**/.direnv": true
},
"diffEditor.renderSideBySide": false,
"laravel-pint.enable": true,
"editor.formatOnSave": true
}

View file

@ -2,22 +2,15 @@
config,
pkgs,
lib,
font,
...
}:
let
inherit (config.my) desktop;
inherit (config.my.theme) color;
inherit (config.my) desktop browser;
bugfixedFirefox = pkgs.firefox-devedition-unwrapped // {
requireSigning = false;
allowAddonSideload = true;
};
swayCustomization = ''
#titlebar { display: none !important; }
#TabsToolbar { display: none !important; }
#sidebar-header { display: none !important; }
'';
in
{
config = {
@ -126,17 +119,15 @@ in
"devtools.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true;
};
userChrome = ''
${lib.optionalString (desktop == "sway") swayCustomization}
#sidebar-main {
background-color: ${color.bg};
}
#tabbrowser-tabbox {
outline-width: 0 !important;
}
'';
userChrome =
if desktop == "sway" then
''
#titlebar { display: none !important; }
#TabsToolbar { display: none !important; }
#sidebar-header { display: none !important; }
''
else
"";
};
};
};

View file

@ -43,7 +43,7 @@ lib.mkIf (config.my.desktop == "gnome") {
qt6Packages.qtstyleplugin-kvantum
];
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome;
services.gpg-agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
xdg.defaultApplications = {
enable = lib.mkForce false;

View file

@ -15,14 +15,6 @@ hook global WinSetOption filetype=nix %{
set buffer formatcmd 'nixfmt'
}
hook global BufCreate .*\.json %{
set buffer formatcmd 'prettier --parser json'
}
hook global BufCreate .*\.ya?ml %{
set buffer formatcmd 'prettier --parser yaml'
}
hook global BufCreate .*\.html %{
set buffer formatcmd 'prettier --parser html'
}

View file

@ -20,7 +20,6 @@ in
./swayidle.nix
./swaylock.nix
./theme.nix
./gammastep.nix
];
options.my.sway.enable = lib.mkEnableOption { };
@ -33,7 +32,6 @@ in
my.mpd.enable = true;
my.zathura.enable = true;
my.waybar.enable = true;
my.gammastep.enable = true;
wayland.windowManager.sway = {
enable = true;
@ -117,6 +115,10 @@ in
exec_always systemctl --user restart waybar.service
'';
};
services.gammastep = {
enable = true;
provider = "geoclue2";
};
services.kdeconnect = {
enable = true;

View file

@ -1,19 +0,0 @@
{ config, lib, ... }:
let
cfg = config.my.gammastep;
in
{
options.my.gammastep.enable = lib.mkEnableOption { };
config = lib.mkIf cfg.enable {
services.gammastep = {
enable = true;
dawnTime = "6:00-7:45";
duskTime = "18:35-20:15";
temperature = {
day = 6500;
night = 4500;
};
};
};
}

View file

@ -115,7 +115,7 @@ rec {
};
dmenu = "bmenu";
desktop = "sway";
desktop = "gnome";
browser = "firefox";
editor = "kakoune";
}