modularize config

This commit is contained in:
DashieTM 2024-07-10 17:03:31 +02:00
parent 09c4625fbb
commit 7a4e46e04f
33 changed files with 230 additions and 168 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, username, ... }: {
{ pkgs, config, ... }: {
programs.firefox = {
enable = true;
@ -13,7 +13,7 @@
DisplayBookmarksToolbar = "never";
DisplayMenuBar = "default-off";
};
profiles.${username} = {
profiles.${config.conf.username} = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
darkreader

View file

@ -1,4 +1,4 @@
{ username, ... }: {
{ config, ... }: {
xdg.configFile."fish/config.fish" = {
text =
''
@ -15,7 +15,7 @@
set EDITOR "neovide --no-fork"
alias rebuild='sudo nixos-rebuild switch --flake /home/${username}/gits/dotFiles/nix/.'
alias rebuild='sudo nixos-rebuild switch --flake /home/${config.conf.username}/gits/dotFiles/nix/.'
abbr --add ls 'lsd'
abbr --add :q 'exit'
abbr --add gh 'git push origin'