Remove with antipatter and aggregate google-chrome override

This commit is contained in:
Filippo Berto 2023-02-15 10:41:52 +01:00
parent a4b29ec259
commit 93b0ccf178
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
46 changed files with 264 additions and 452 deletions

View file

@ -20,7 +20,8 @@ with lib; {
environment = { environment = {
pathsToLink = [ "/share/zsh" ]; pathsToLink = [ "/share/zsh" ];
systemPackages = with pkgs; [ helix kitty tmux vim ]; systemPackages =
builtins.attrValues { inherit (pkgs) helix kitty tmux vim; };
}; };
i18n.defaultLocale = "it_IT.UTF-8"; i18n.defaultLocale = "it_IT.UTF-8";

View file

@ -5,7 +5,7 @@
layout = "it"; layout = "it";
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ]; options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ];
}; };
packages = with pkgs; [ nix-prefetch-scripts ]; packages = builtins.attrValues { inherit (pkgs) nix-prefetch-scripts; };
}; };
imports = [ imports = [
../hm_modules/__basic.nix ../hm_modules/__basic.nix

View file

@ -1,11 +1,11 @@
{ pkgs ? import <nixos> { inherit system; }, system ? builtins.currentSystem }: { pkgs ? import <nixos> { inherit system; }, system ? builtins.currentSystem }:
let let
self = with pkgs; { self = {
clipedit = callPackage ./clipedit { }; clipedit = pkgs.callPackage ./clipedit { };
cocktail-bar-cli = callPackage ./cocktail-bar-cli { }; cocktail-bar-cli = pkgs.callPackage ./cocktail-bar-cli { };
lockscreen = callPackage ./lockscreen { }; lockscreen = pkgs.callPackage ./lockscreen { };
sddm-theme-clairvoyance = callPackage ./sddm-theme-clairvoyance { }; sddm-theme-clairvoyance = pkgs.callPackage ./sddm-theme-clairvoyance { };
update-background = callPackage ./update-background { }; update-background = pkgs.callPackage ./update-background { };
vital-synth = callPackage ./vital-synth { }; vital-synth = pkgs.callPackage ./vital-synth { };
}; };
in self in self

View file

@ -87,6 +87,9 @@
self.callPackage ./custom/sddm-theme-clairvoyance { self.callPackage ./custom/sddm-theme-clairvoyance {
wallpaper = ./wallpapers/comfy_waves.jpg; wallpaper = ./wallpapers/comfy_waves.jpg;
}; };
google-chrome = self.google-chrome.override {
commandLineArgs = [ "--password-store=gnome" "--force-dark-mode" ];
};
}) })
]; ];

View file

@ -15,7 +15,7 @@ with lib; {
environment = { environment = {
pathsToLink = [ "/share/zsh" ]; pathsToLink = [ "/share/zsh" ];
systemPackages = with pkgs; [ kakoune tmux vim ]; systemPackages = builtins.attrValues { inherit (pkgs) kakoune tmux vim; };
}; };
i18n.defaultLocale = "it_IT.UTF-8"; i18n.defaultLocale = "it_IT.UTF-8";
@ -59,7 +59,7 @@ with lib; {
}; };
# bazarr = { enable = true; openFirewall = true; group = "users"; }; # bazarr = { enable = true; openFirewall = true; group = "users"; };
# blueman.enable = true; # blueman.enable = true;
dbus.packages = with pkgs; [ dconf ]; dbus.packages = [ pkgs.dconf ];
# fail2ban = { enable = true; bantime-increment.enable = true; }; # fail2ban = { enable = true; bantime-increment.enable = true; };
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
# gvfs = { enable = true; package = mkForce pkgs.gnome3.gvfs; }; # gvfs = { enable = true; package = mkForce pkgs.gnome3.gvfs; };
@ -235,51 +235,6 @@ with lib; {
# }; # };
# }; # };
# systemd.packages = with pkgs; [ syncthing ];
# systemd.services =
# let
# common = {
# documentation = [ "man:syncthing(1)" ];
# startLimitIntervalSec = 60;
# startLimitBurst = 4;
# after = [ "network.target" ];
# environment = { STNORESTART = "yes"; STNOUPGRADE = "yes"; };
# wantedBy = [ "default.target" ];
# serviceConfig = {
# Restart = "on-failure";
# RestartSec = 1;
# SuccessExitStatus = "3 4";
# RestartForceExitStatus = "3 4";
# Group = config.ids.gids.users;
# MemoryDenyWriteExecute = true;
# NoNewPrivileges = true;
# PrivateDevices = true;
# PrivateMounts = true;
# PrivateTmp = true;
# PrivateUsers = true;
# ProtectControlGroups = true;
# ProtectHostname = true;
# ProtectKernelModules = true;
# ProtectKernelTunables = true;
# RestrictNamespaces = true;
# RestrictRealtime = true;
# RestrictSUIDSGID = true;
# CapabilityBoundingSet = [ "~CAP_SYS_PTRACE" "~CAP_SYS_ADMIN" "~CAP_SETGID" "~CAP_SETUID" "~CAP_SETPCAP" "~CAP_SYS_TIME" "~CAP_KILL" ];
# };
# };
# in
# {
# syncthing-bertof = recursiveUpdate common {
# description = "Syncthing service bertof";
# serviceConfig = { User = "bertof"; ExecStart = "${pkgs.syncthing}/bin/syncthing -no-browser -gui-address=0.0.0.0:8384 -home=/mnt/raid0/bertof/Syncthing/.config"; };
# };
# syncthing-tiziano = recursiveUpdate common {
# description = "Syncthing service tiziano";
# serviceConfig = { User = "tiziano"; ExecStart = "${pkgs.syncthing}/bin/syncthing -no-browser -gui-address=0.0.0.0:8385 -home=/mnt/raid0/tiziano/Syncthing/.config"; };
# };
# };
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
Defaults pwfeedback Defaults pwfeedback
''; '';

View file

@ -24,22 +24,16 @@
layout = "it"; layout = "it";
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" ]; options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" ];
}; };
packages = with pkgs; [ packages = builtins.attrValues {
file inherit (pkgs)
htop file htop neofetch nix-prefetch-scripts ripgrep wget xclip yq;
neofetch };
nix-prefetch-scripts
ripgrep
wget
xclip
yq
];
}; };
imports = [ imports = [
../hm_modules/__basic.nix ../hm_modules/__basic.nix
../hm_modules/configurations.nix ../hm_modules/configurations.nix
../hm_modules/fonts.nix # ../hm_modules/fonts.nix
../hm_modules/bash.nix ../hm_modules/bash.nix
../hm_modules/bat.nix ../hm_modules/bat.nix
../hm_modules/bottom.nix ../hm_modules/bottom.nix

View file

@ -1,23 +1,11 @@
{ pkgs, ... }: { { pkgs, ... }: {
home = { home = {
language.base = "it_IT.UTF-8"; language.base = "it_IT.UTF-8";
packages = with pkgs; [ packages = builtins.attrValues {
fd inherit (pkgs)
file fd file htop lf mmv-go neofetch nixos-option pv ripgrep unrar unzip wget
htop xclip yq zip;
lf };
mmv-go
neofetch
nixos-option
pv
ripgrep
unrar
unzip
wget
xclip
yq
zip
];
}; };
imports = [ imports = [

View file

@ -1 +1,3 @@
{ pkgs, ... }: { home.packages = with pkgs; [ calibre mangal ]; } { pkgs, ... }: {
home.packages = builtins.attrValues { inherit (pkgs) calibre mangal; };
}

View file

@ -1 +1 @@
{ pkgs, ... }: { home.packages = with pkgs; [ blender ]; } { pkgs, ... }: { home.packages = [ pkgs.blender ]; }

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ (blender.override { cudaSupport = true; }) ]; home.packages = [ (pkgs.blender.override { cudaSupport = true; }) ];
} }

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let tomlGenerate = (pkgs.formats.toml { }).generate "bottom-toml"; let tomlGenerate = (pkgs.formats.toml { }).generate "bottom-toml";
in { in {
home.packages = with pkgs; [ bottom ]; home.packages = [ pkgs.bottom ];
xdg.configFile."bottom/bottom.toml".source = tomlGenerate { xdg.configFile."bottom/bottom.toml".source = tomlGenerate {
"flags" = { "flags" = {
"left_legend" = true; "left_legend" = true;

View file

@ -43,5 +43,5 @@ in {
network-manager-applet.enable = true; network-manager-applet.enable = true;
blueman-applet.enable = true; blueman-applet.enable = true;
}; };
home.packages = with pkgs; [ blueman ]; home.packages = [ pkgs.blueman ];
} }

View file

@ -1,12 +1,8 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = with pkgs; home.packages =
[ lib.optionals config.programs.helix.enable builtins.attrValues {
inherit (pkgs) clang-tools cmake-language-server;
] ++ lib.optionals config.programs.helix.enable [ } ++ lib.optionals config.programs.kakoune.enable builtins.attrValues {
clang-tools # C, CPP inherit (pkgs) clang-tools cmake-language-server;
cmake-language-server # CMAKE };
] ++ lib.optionals config.programs.kakoune.enable [
clang-tools # C, CPP
cmake-language-server # CMAKE
];
} }

View file

@ -1,11 +1,10 @@
{ config, pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
home.packages = with pkgs; home.packages =
lib.optionals config.programs.helix.enable [ lib.optionals config.programs.helix.enable builtins.attrValues {
nodePackages.vscode-langservers-extracted # CSS, HTML, JSON, SCSS inherit (pkgs) yaml-language-server taplo-cli;
yaml-language-server # YAML inherit (pkgs.nodePackages) vscode-langservers-extracted;
taplo-cli # TOML } ++ lib.optionals config.programs.kakoune.enable builtins.attrValues {
] ++ lib.optionals config.programs.kakoune.enable [ inherit (pkgs) yaml-language-server;
nodePackages.vscode-langservers-extracted # CSS, HTML, JSON, SCSS inherit (pkgs.nodePackages) vscode-langservers-extracted;
yaml-language-server # YAML };
];
} }

View file

@ -1,8 +1,9 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = with pkgs; home.packages =
[ docker-compose docker-machine ] builtins.attrValues { inherit (pkgs) docker-compose docker-machine; }
++ lib.optionals config.programs.helix.enable ++ lib.optionals config.programs.helix.enable builtins.attrValues {
[ nodePackages.dockerfile-language-server-nodejs ]; inherit (pkgs.nodePackages) dockerfile-language-server-nodejs;
};
home.shellAliases = { home.shellAliases = {
"dkcd" = "docker-compose down"; "dkcd" = "docker-compose down";
"dkc" = "docker-compose"; "dkc" = "docker-compose";

View file

@ -4,7 +4,6 @@
goPath = ".go"; goPath = ".go";
}; };
home.packages = with pkgs; home.packages = lib.optionals config.programs.helix.enable [ pkgs.gopls ]
lib.optionals config.programs.helix.enable [ gopls ] ++ (lib.optionals config.programs.kakoune.enable [ pkgs.gopls ]);
++ (lib.optionals config.programs.kakoune.enable [ gopls ]);
} }

View file

@ -1,11 +1,10 @@
{ pkgs, lib, config, ... }: { { pkgs, lib, config, ... }: {
home.packages = with pkgs; home.packages =
[ lib.optionals config.programs.helix.enable builtins.attrValues {
inherit (pkgs.nodePackages) typescript-language-server;
] ++ lib.optionals config.programs.helix.enable } ++ lib.optionals config.programs.kakoune.enable builtins.attrValues {
[ nodePackages.typescript-language-server ] inherit (pkgs.nodePackages) typescript-language-server;
++ lib.optionals config.programs.kakoune.enable };
[ nodePackages.typescript-language-server ];
programs.neovim.withNodeJs = true; programs.neovim.withNodeJs = true;
} }

View file

@ -1 +1,4 @@
{ pkgs, ... }: { home.packages = with pkgs; [ kubectl kubernetes-helm lens ]; } { pkgs, ... }: {
home.packages =
builtins.attrValues { inherit (pkgs) kubectl kubernetes-helm lens; };
}

View file

@ -1,13 +1,8 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = with pkgs; home.packages = [ pkgs.bibtool pkgs.texlive.combined.scheme-medium ]
[ bibtool texlive.combined.scheme-medium ] ++ lib.optionals config.programs.helix.enable [ pkgs.texlab ]
++ lib.optionals config.programs.helix.enable [ texlab ] ++ lib.optionals config.programs.kakoune.enable (builtins.attrValues {
++ lib.optionals config.programs.kakoune.enable [ inherit (pkgs) texlab aspell;
texlab inherit (pkgs.aspellDicts) en en-computers en-science it;
aspell });
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
aspellDicts.it
];
} }

View file

@ -1,7 +1,7 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = with pkgs; home.packages = builtins.attrValues {
[ nixpkgs-fmt nixfmt nix-prefetch-scripts nix-review nix-tree ] inherit (pkgs) nixpkgs-fmt nixfmt nix-prefetch-scripts nix-review nix-tree;
++ lib.optionals config.programs.helix.enable [ nil ] } ++ lib.optionals config.programs.helix.enable [ pkgs.nil ]
++ lib.optionals config.programs.kakoune.enable [ rnix-lsp ]; ++ lib.optionals config.programs.kakoune.enable [ pkgs.rnix-lsp ];
programs.neovim.plugins = with pkgs.vimPlugins; [ vim-nix ]; programs.neovim.plugins = [ pkgs.vimPlugins.vim-nix ];
} }

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = {
jetbrains.pycharm-professional inherit (pkgs) python3;
python3 inherit (pkgs.jetbrains) pycharm-professional;
# pypy3 # pypy3
]; };
} }

View file

@ -1,17 +1,9 @@
{ pkgs, lib, config, ... }: { { pkgs, lib, config, ... }: {
home.packages = with pkgs; home.packages = [ pkgs.black ]
[ black ] ++ lib.optionals config.programs.helix.enable [ ++ lib.optionals config.programs.helix.enable builtins.attrValues {
python3Packages.python-lsp-server # PYLSP inherit (pkgs.python3Packages) python-lsp-server pyls-flake8 pyls-isort;
# python3Packages.pyls-mypy # MYPY # NOT UPDATED } ++ lib.optionals config.programs.kakoune.enable builtins.attrValues {
python3Packages.pyls-flake8 # FLAKE8 inherit (pkgs.python3Packages) python-lsp-server pyls-flake8 pyls-isort;
# python3Packages.pyls-black # BLACK # NOT UPDATED };
python3Packages.pyls-isort # ISORT
] ++ lib.optionals config.programs.kakoune.enable [
python3Packages.python-lsp-server # PYLSP
# python3Packages.pyls-mypy # MYPY # NOT UPDATED
python3Packages.pyls-flake8 # FLAKE8
# python3Packages.pyls-black # BLACK # NOT UPDATED
python3Packages.pyls-isort # ISORT
];
programs.neovim.withPython3 = true; programs.neovim.withPython3 = true;
} }

View file

@ -1,35 +1,19 @@
{ pkgs, lib, config, ... }: { { pkgs, lib, config, ... }: {
home.packages = with pkgs; home.packages = builtins.attrValues {
[ inherit (pkgs)
bacon bacon cargo cargo-audit cargo-criterion cargo-deadlinks cargo-expand
cargo cargo-flamegraph cargo-fuzz cargo-hack cargo-hakari cargo-inspect
# cargo-about cargo-modules cargo-outdated cargo-profiler cargo-release cargo-show-asm
cargo-audit cargo-spellcheck cargo-tarpaulin cargo-udeps cargo-watch cargo-workspaces
# cargo-auditable clippy rustc rustfmt;
cargo-criterion # cargo-about
cargo-deadlinks # cargo-auditable
# cargo-deny # cargo-deny
# cargo-deps # cargo-deps
cargo-expand # cargo-feature
# cargo-feature
cargo-flamegraph } ++ lib.optionals config.programs.helix.enable
cargo-fuzz (builtins.attrValues { inherit (pkgs) lldb rust-analyzer; })
cargo-hack ++ lib.optionals config.programs.kakoune.enable
cargo-hakari (builtins.attrValues { inherit (pkgs) rust-analyzer; });
cargo-inspect
cargo-modules
cargo-outdated
cargo-profiler
cargo-release
cargo-show-asm
cargo-spellcheck
cargo-tarpaulin
cargo-udeps
cargo-watch
cargo-workspaces
clippy
rustc
rustfmt
] ++ lib.optionals config.programs.helix.enable [ lldb rust-analyzer ]
++ lib.optionals config.programs.kakoune.enable [ rust-analyzer ];
} }

View file

@ -2,7 +2,10 @@
with pkgs.lib.nix-rice; with pkgs.lib.nix-rice;
let strPalette = palette.toRGBHex pkgs.rice.colorPalette; let strPalette = palette.toRGBHex pkgs.rice.colorPalette;
in { in {
home.packages = with pkgs; [ dunst rice.font.normal.package ]; home.packages = builtins.attrValues {
inherit (pkgs) dunst;
inherit (pkgs.rice.font.normal) package;
};
services.dunst = { services.dunst = {
enable = true; enable = true;
iconTheme = { iconTheme = {

View file

@ -1,12 +1,9 @@
{ pkgs, ... }: { { pkgs, ... }: {
fonts.fontconfig = { enable = true; }; fonts.fontconfig = { enable = true; };
home.packages = with pkgs; [ home.packages = builtins.attrValues {
dejavu_fonts inherit (pkgs)
noto-fonts dejavu_fonts noto-fonts noto-fonts-extra noto-fonts-cjk-sans font-awesome
noto-fonts-extra corefonts # Microsoft fonts
noto-fonts-cjk-sans vistafonts;
font-awesome };
corefonts # Microsoft fonts
vistafonts
];
} }

View file

@ -118,5 +118,6 @@ in {
}; };
programs.bash.shellAliases = shellAliases; programs.bash.shellAliases = shellAliases;
programs.zsh.shellAliases = shellAliases; programs.zsh.shellAliases = shellAliases;
home.packages = with pkgs; [ gh git-secret glab meld ]; home.packages =
builtins.attrValues { inherit (pkgs) gh git-secret glab meld; };
} }

View file

@ -33,10 +33,10 @@ in {
EDITOR = "hx"; EDITOR = "hx";
VISUAL = "hx"; VISUAL = "hx";
}; };
home.packages = with pkgs; [ home.packages = builtins.attrValues {
nil # Nix language server inherit (pkgs) nil; # Nix language server
desktopItem inherit desktopItem;
]; };
programs.helix = { programs.helix = {
enable = true; enable = true;
package = pkgs.unstable_pkgs.helix; package = pkgs.unstable_pkgs.helix;

View file

@ -30,36 +30,36 @@ let
set-face global BufferPadding default,default set-face global BufferPadding default,default
''; '';
packages = with pkgs; [ desktopItem = pkgs.makeDesktopItem {
editorconfig-core-c name = "Kakoune";
exec = "kak %F";
(pkgs.makeDesktopItem { icon = "kakoune";
name = "Kakoune"; desktopName = "Kakoune";
exec = "kak %F"; comment = "Kakoune text editor";
icon = "kakoune"; terminal = true;
desktopName = "Kakoune"; categories = [ "Development" ];
comment = "Kakoune text editor"; mimeTypes = [
terminal = true; "text/english"
categories = [ "Development" ]; "text/plain"
mimeTypes = [ "text/x-makefile"
"text/english" "text/x-c++hdr"
"text/plain" "text/x-c++src"
"text/x-makefile" "text/x-chdr"
"text/x-c++hdr" "text/x-csrc"
"text/x-c++src" "text/x-java"
"text/x-chdr" "text/x-moc"
"text/x-csrc" "text/x-pascal"
"text/x-java" "text/x-tcl"
"text/x-moc" "text/x-tex"
"text/x-pascal" "application/x-shellscript"
"text/x-tcl" "text/x-c"
"text/x-tex" "text/x-c++"
"application/x-shellscript" ];
"text/x-c" };
"text/x-c++" packages = builtins.attrValues {
]; inherit (pkgs) editorconfig-core-c;
}) inherit desktopItem;
]; };
in { in {
programs.bash.shellAliases = { k = "kak"; }; programs.bash.shellAliases = { k = "kak"; };

View file

@ -1 +1 @@
{ pkgs, ... }: { home.packages = with pkgs; [ kicad ]; } { pkgs, ... }: { home.packages = [ pkgs.kicad ]; }

View file

@ -1 +1 @@
{ pkgs, ... }: { home.packages = with pkgs; [ gnome.nautilus ]; } { pkgs, ... }: { home.packages = [ pkgs.gnome.nautilus ]; }

View file

@ -1,10 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = builtins.attrValues {
libreoffice-fresh inherit (pkgs) hunspell libreoffice-fresh;
# onlyoffice-bin inherit (pkgs.hunspellDicts) en_GB-large en_US-large it_IT;
hunspellDicts.en_GB-large };
hunspellDicts.en_US-large
hunspellDicts.it_IT
hunspell.bin
];
} }

View file

@ -110,15 +110,13 @@ let
ramp = [ "" "" "" "" "" "" ]; ramp = [ "" "" "" "" "" "" ];
in { in {
home.packages = with pkgs; [ home.packages = builtins.attrValues {
pkgs.rice.font.monospace.package inherit (pkgs) noto-fonts material-design-icons noto-fonts-cjk-sans;
# emojione # emojione
# noto-fonts-emoji # noto-fonts-emoji
noto-fonts
material-design-icons
# font-awesome # font-awesome
noto-fonts-cjk-sans inherit (pkgs.rice.font.monospace) package;
]; };
services.polybar = { services.polybar = {
enable = true; enable = true;
package = pkgs.polybarFull; package = pkgs.polybarFull;

View file

@ -14,38 +14,25 @@ let
VST3_PATH = "$HOME/.vst3:${userLibFolder}/vst3:${systemLibFolder}/vst3"; VST3_PATH = "$HOME/.vst3:${userLibFolder}/vst3:${systemLibFolder}/vst3";
}; };
in { in {
home.packages = with pkgs; [ home.packages = builtins.attrValues {
carla inherit (pkgs)
rnnoise carla rnnoise ardour
ardour # zrythm
# zrythm breeze-icons mixxx
breeze-icons
mixxx
# Plugins # Plugins
artyFX artyFX autotalent boops cardinal geonkick
autotalent # helm
boops lsp-plugins
cardinal # noise-repellent
geonkick samplv1
# helm # speech-denoiser
lsp-plugins # stochas
# noise-repellent # sunvox
samplv1 surge giada surge-XT talentedhack
# speech-denoiser # tunefish
# stochas vocproc x42-plugins zita-at1 zynaddsubfx zyn-fusion;
# sunvox };
surge
giada
surge-XT
talentedhack
# tunefish
vocproc
x42-plugins
zita-at1
zynaddsubfx
zyn-fusion
];
home.sessionVariables = variables; home.sessionVariables = variables;
} }

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; home.packages = builtins.attrValues {
[ inherit (pkgs.unstable_pkgs)
# unstable.mendeley # Reference manager # mendeley # Reference manager
unstable_pkgs.obsidian # Note manager obsidian # Note manager
]; ;
};
} }

View file

@ -1,11 +1,8 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = builtins.attrValues {
rofimoji inherit (pkgs) rofimoji rofi-bluetooth rofi-power-menu rofi-vpn;
rofi-bluetooth };
rofi-power-menu
rofi-vpn
];
programs.rofi = { programs.rofi = {
enable = true; enable = true;
@ -13,7 +10,7 @@
font = "${pkgs.rice.font.monospace.name} ${ font = "${pkgs.rice.font.monospace.name} ${
toString pkgs.rice.font.monospace.size toString pkgs.rice.font.monospace.size
}"; }";
plugins = with pkgs; [ rofi-calc ]; plugins = [ pkgs.rofi-calc ];
extraConfig = { modi = "drun,run,ssh,window,calc"; }; extraConfig = { modi = "drun,run,ssh,window,calc"; };
terminal = "kitty"; terminal = "kitty";
theme = "onedark"; theme = "onedark";

View file

@ -1,20 +1,18 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = builtins.attrValues {
# RECOGNITION inherit (pkgs)
nmap nmap # RECOGNITION
# WEB # WEB
# altair httpie
# burpsuite # altair
httpie # burpsuite
# REVERSING bintools ghidra-bin radare2 # REVERSING
bintools # cutter
ghidra-bin
radare2
# cutter
# INFRASTRUCTURE # INFRASTRUCTURE
# cocktail-bar-cli # cocktail-bar-cli
]; ;
};
} }

View file

@ -3,14 +3,11 @@
# ./nautilus.nix # ./nautilus.nix
# ./thunar.nix # ./thunar.nix
]; ];
home.packages = with pkgs; [ home.packages = builtins.attrValues {
gnome.gnome-screenshot inherit (pkgs)
lockscreen # bc
terminator bsp-layout clipedit lockscreen terminator; # required by bsp-layout
bsp-layout };
bc # required by bsp-layout
clipedit
];
services.sxhkd = let services.sxhkd = let
primaryTerminal = "kitty"; primaryTerminal = "kitty";
secondaryTerminal = "terminator"; secondaryTerminal = "terminator";
@ -41,7 +38,7 @@
enable = true; enable = true;
keybindings = { keybindings = {
"alt + Tab" = "rofi -show window"; "alt + Tab" = "rofi -show window";
"Print" = "gnome-screenshot"; "Print" = "${pkgs.gnome.gnome-screenshot}/bin/gnome-screenshot";
"super + alt + {h,j,k,l}" = "super + alt + {h,j,k,l}" =
"bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}"; "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
"super + alt + m" = "lockscreen"; "super + alt + m" = "lockscreen";

View file

@ -27,7 +27,7 @@ let
bright.white bright.white
]; ];
in { in {
home.packages = with pkgs; [ terminator ]; home.packages = [ pkgs.terminator ];
xdg.configFile."terminator/config".text = with strPalette; '' xdg.configFile."terminator/config".text = with strPalette; ''
[global_config] [global_config]

View file

@ -1,5 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ nix-zsh-completions zsh-completions ]; home.packages =
builtins.attrValues { inherit (pkgs) nix-zsh-completions zsh-completions; };
programs.zsh = { programs.zsh = {
enable = true; enable = true;

View file

@ -16,7 +16,7 @@ with lib; {
environment = { environment = {
pathsToLink = [ "/share/zsh" ]; pathsToLink = [ "/share/zsh" ];
systemPackages = with pkgs; [ kakoune tmux vim ]; systemPackages = builtins.attrValues { inherit (pkgs) kakoune tmux vim; };
}; };
hardware = { hardware = {
@ -33,12 +33,9 @@ with lib; {
opengl = { opengl = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = builtins.attrValues {
intel-media-driver inherit (pkgs) intel-media-driver libvdpau-va-gl vaapiIntel vaapiVdpau;
libvdpau-va-gl };
vaapiIntel
vaapiVdpau
];
}; };
bluetooth.enable = true; bluetooth.enable = true;
@ -89,7 +86,7 @@ with lib; {
group = "users"; group = "users";
}; };
blueman.enable = true; blueman.enable = true;
dbus.packages = with pkgs; [ dconf ]; dbus.packages = [ pkgs.dconf ];
fail2ban = { fail2ban = {
enable = true; enable = true;
bantime-increment.enable = true; bantime-increment.enable = true;

View file

@ -297,7 +297,7 @@ in {
users.users.bertof.extraGroups = [ "hadoop" ]; users.users.bertof.extraGroups = [ "hadoop" ];
systemd.services.spark-history = { systemd.services.spark-history = {
path = with pkgs; [ procps openssh nettools ]; path = builtins.attrValues { inherit (pkgs) procps openssh nettools; };
description = "spark history service."; description = "spark history service.";
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];

View file

@ -6,7 +6,7 @@
''; '';
# XP-Pen tablet driver # XP-Pen tablet driver
environment.systemPackages = with pkgs; [ xp-pen-deco-01-v2-driver ]; environment.systemPackages = [ pkgs.xp-pen-deco-01-v2-driver ];
# hardware.opentabletdriver = { # hardware.opentabletdriver = {
# enable = true; # enable = true;

View file

@ -17,12 +17,9 @@ with lib; {
enable = true; enable = true;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = with pkgs; [ extraPackages = builtins.attrValues {
intel-media-driver inherit (pkgs) intel-media-driver vaapiIntel vaapiVdpau libvdpau-va-gl;
vaapiIntel };
vaapiVdpau
libvdpau-va-gl
];
}; };
# Use same ACPI identifier as Dell Ubuntu # Use same ACPI identifier as Dell Ubuntu
@ -77,11 +74,10 @@ with lib; {
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing = { services.printing = {
enable = true; enable = true;
drivers = with pkgs; drivers = [
[ pkgs.gutenprint
gutenprint # pkgs.cups-kyocera
# cups-kyocera ];
];
}; };
services.keybase.enable = true; services.keybase.enable = true;
@ -133,7 +129,8 @@ with lib; {
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ tmux helix vim git ntfs3g ]; environment.systemPackages =
builtins.attrValues { inherit (pkgs) tmux helix vim git ntfs3g; };
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
@ -195,7 +192,7 @@ with lib; {
}; };
services.dbus = { services.dbus = {
packages = with pkgs; [ dconf ]; packages = [ pkgs.dconf ];
implementation = "broker"; implementation = "broker";
}; };
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
@ -267,7 +264,7 @@ with lib; {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
packageOverrides = pkgs: { packageOverrides = pkgs: {
steam = pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ icu ]; }; steam = pkgs.steam.override { extraPkgs = pkgs: [ pkgs.icu ]; };
}; };
}; };

View file

@ -6,68 +6,35 @@
variant = ",,colemak"; variant = ",,colemak";
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ]; options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ];
}; };
packages = with pkgs; [ packages = builtins.attrValues {
arandr inherit (pkgs)
authy
bitwarden
cava
discord
dmenu
droidcam
easyeffects
# element-desktop # matrix client # element-desktop # matrix client
evince
# evolution # evolution
# freecad # freecad
gallery-dl
gnome.eog
gnome.file-roller
# gnome.geary
# gnome.gnome-boxes
# gnome.gnome-calendar
gnome.gnome-font-viewer
gnome.gnome-screenshot
# gnome.gnome-sound-recorder
gnome.gnome-system-monitor
# gnome.seahorse
gnome.totem
# (google-chrome.override { commandLineArgs = [ "--password-store=gnome" "--force-dark-mode" ]; })
gucharmap
handbrake
httpie
inkscape
jetbrains.datagrip
krita
# lutris # lutris
meld
# minecraft # minecraft
# mycrypto # mycrypto
openvpn
p7zip
pavucontrol
# pcmanfm # pcmanfm
pentablet-driver
postman
procps
# pulseaudio # pulseaudio
pulseaudio
# retroarchFull # retroarchFull
shotwell
# signal-desktop # signal-desktop
skypeforlinux
# slack # slack
spotify
tdesktop
teams
thunderbird
transmission-gtk
virt-manager
virt-viewer
# wineFull # wineFull
wireguard-tools arandr authy bitwarden cava discord dmenu droidcam easyeffects evince
xournalpp gallery-dl krita meld openvpn p7zip pavucontrol pentablet-driver postman
zoom-us procps pulseaudio shotwell skypeforlinux spotify tdesktop teams
]; thunderbird transmission-gtk virt-manager virt-viewer wireguard-tools
xournalpp zoom-us gucharmap handbrake httpie inkscape;
inherit (pkgs.gnome)
# geary
# gnome-boxes
# gnome-calendar
# gnome-sound-recorder
# seahorse
eog file-roller gnome-font-viewer gnome-screenshot gnome-system-monitor
totem;
inherit (pkgs.jetbrains) datagrip;
};
}; };
services = { gnome-keyring.enable = true; }; services = { gnome-keyring.enable = true; };
@ -107,7 +74,7 @@
../hm_modules/dwarf-fortress.nix ../hm_modules/dwarf-fortress.nix
../hm_modules/easyeffects.nix ../hm_modules/easyeffects.nix
../hm_modules/firefox.nix ../hm_modules/firefox.nix
../hm_modules/fonts.nix # ../hm_modules/fonts.nix
# ../hm_modules/gnome_shell.nix # ../hm_modules/gnome_shell.nix
# ../hm_modules/grobi.nix # ../hm_modules/grobi.nix
../hm_modules/gtk_theme.nix ../hm_modules/gtk_theme.nix

View file

@ -28,7 +28,7 @@ with lib; {
environment = { environment = {
pathsToLink = [ "/share/zsh" ]; pathsToLink = [ "/share/zsh" ];
systemPackages = with pkgs; [ kakoune tmux vim ]; systemPackages = builtins.attrValues { inherit (pkgs) kakoune tmux vim; };
}; };
hardware = { hardware = {
@ -95,7 +95,7 @@ with lib; {
# daemon.enable = true; # daemon.enable = true;
# updater.enable = true; # updater.enable = true;
# }; # };
dbus.packages = with pkgs; [ dconf ]; dbus.packages = [ pkgs.dconf ];
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
gvfs = { gvfs = {
enable = true; enable = true;
@ -202,7 +202,7 @@ with lib; {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
packageOverrides = pkgs: { packageOverrides = pkgs: {
steam = pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ icu ]; }; steam = pkgs.steam.override { extraPkgs = pkgs: [ pkgs.icu ]; };
}; };
# cudaSupport = true; # cudaSupport = true;
}; };

View file

@ -6,72 +6,36 @@
variant = ",colemak,"; variant = ",colemak,";
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ]; options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ];
}; };
packages = with pkgs; [ packages = builtins.attrValues {
arandr inherit (pkgs)
authy
bitwarden
discord
dmenu
docker-compose
docker-machine
droidcam
easyeffects
# electrum # electrum
# element-desktop # matrix client # element-desktop # matrix client
evince
# evolution # evolution
filelight
# freecad # freecad
gallery-dl
gnome.eog
gnome.file-roller
# gnome.geary
# gnome.gnome-boxes
# gnome.gnome-calendar
gnome.gnome-font-viewer
gnome.gnome-screenshot
# gnome.gnome-sound-recorder
gnome.gnome-system-monitor
# gnome.seahorse
gnome.totem
# (google-chrome.override { commandLineArgs = [ "--password-store=gnome" "--force-dark-mode" ]; })
gucharmap
handbrake
httpie
inkscape
jetbrains.datagrip
krita
# lutris # lutris
meld
# minecraft # minecraft
# mycrypto # mycrypto
openvpn
p7zip
pavucontrol
# pcmanfm # pcmanfm
pcsx2
pentablet-driver
postman
procps
# pulseaudio # pulseaudio
pulseaudio
retroarchFull
shotwell
# signal-desktop # signal-desktop
skypeforlinux
# slack # slack
spotify
tdesktop
teams
thunderbird
transmission-gtk
virt-manager
virt-viewer
# wineFull # wineFull
wireguard-tools arandr authy bitwarden discord dmenu docker-compose docker-machine
xournalpp droidcam easyeffects evince filelight gallery-dl gucharmap handbrake
zoom-us httpie inkscape krita meld openvpn p7zip pavucontrol pcsx2
]; pentablet-driver postman procps pulseaudio retroarchFull shotwell
skypeforlinux spotify tdesktop teams thunderbird transmission-gtk
virt-manager virt-viewer wireguard-tools xournalpp zoom-us;
inherit (pkgs.gnome)
# geary
# gnome-boxes
# gnome-calendar
# gnome-sound-recorder
# seahorse
eog file-roller gnome-font-viewer gnome-screenshot gnome-system-monitor
totem;
inherit (pkgs.jetbrains) datagrip;
};
}; };
services = { gnome-keyring.enable = true; }; services = { gnome-keyring.enable = true; };