cleanup + added special options for packages

- gitkraken only on linux and nvtop only on linux
This commit is contained in:
foglar 2025-01-01 12:12:40 +01:00
parent 2d58fc9151
commit cab60bff45
3 changed files with 36 additions and 145 deletions

View File

@ -1,121 +0,0 @@
// Config //
configuration {
modi: "drun";
show-icons: false;
}
* {
main-bg : #11111be6;
main-fg : #cdd6f4ff;
main-br : #cba6f7ff;
main-ex : #f5e0dcff;
select-bg : #b4befeff;
select-fg : #11111bff;
separatorcolor : transparent;
border-color : transparent;
}
// Main //
window {
width: 23em;
height: 30em;
transparency: "real";
fullscreen: false;
enabled: true;
cursor: "default";
spacing: 0em;
padding: 0em;
border-color: @main-br;
background-color: @main-bg;
}
mainbox {
enabled: true;
spacing: 0em;
padding: 0.5em;
orientation: vertical;
children: [ "wallbox" , "listbox" ];
background-color: transparent;
}
wallbox {
spacing: 0em;
padding: 0em;
expand: false;
orientation: horizontal;
background-color: transparent;
background-image: url("~/.dotfiles/config/backgrounds/aurora_borealis.png", width);
children: [ "wallframe" , "inputbar" ];
}
wallframe {
width: 5em;
spacing: 0em;
padding: 0em;
expand: false;
background-color: @main-bg;
background-image: url("~/.dotfiles/config/backgrounds/aurora_borealis.png", height);
}
// Inputs //
inputbar {
enabled: true;
padding: 0em;
children: [ "entry" ];
background-color: @main-bg;
expand: true;
}
entry {
enabled: true;
padding: 1.8em;
text-color: @main-fg;
background-color: transparent;
}
// Lists //
listbox {
spacing: 0em;
padding: 0em;
orientation: vertical;
children: [ "dummy" , "listview" , "dummy" ];
background-color: transparent;
}
listview {
enabled: true;
padding: 0.5em;
columns: 1;
lines: 11;
cycle: true;
fixed-height: true;
fixed-columns: false;
expand: false;
cursor: "default";
background-color: transparent;
text-color: @main-fg;
}
dummy {
spacing: 0em;
padding: 0em;
background-color: transparent;
}
// Elements //
element {
enabled: true;
padding: 0.5em;
cursor: pointer;
background-color: transparent;
text-color: @main-fg;
}
element selected.normal {
background-color: @select-bg;
text-color: @select-fg;
}
element-text {
vertical-align: 0.0;
horizontal-align: 0.0;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}

View File

@ -10,21 +10,28 @@
};
config = lib.mkIf config.app_list.terminal_tools.enable {
home.packages = with pkgs; [
btop
cmatrix
entr
figlet
jp2a
yt-dlp
#nvtopPackages.full
wget
curl
fzf
tldr
ranger
unzip
];
home.packages = with pkgs;
[
btop
cmatrix
entr
figlet
jp2a
yt-dlp
wget
curl
fzf
tldr
ranger
unzip
]
++ (
if pkgs.system == "x86_64-linux"
then [
nvtopPackages.full
]
else []
);
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [

View File

@ -16,15 +16,20 @@
userEmail = "kohout.fi.2023@skola.ssps.cz";
};
home.packages = with pkgs; [
git
github-cli
#gitkraken
];
home.packages = with pkgs;
[
git
github-cli
]
++ (
if pkgs.system == "x86_64-linux"
then [gitkraken]
else []
);
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"gitkraken"
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"gitkraken"
];
};
}