Refactor hosts folder

This commit is contained in:
2025-11-29 22:51:38 +01:00
parent 4e32e95eab
commit df731b0703
30 changed files with 214 additions and 1080 deletions

View File

@@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
imports = [
../variables.nix
./shell
./git.nix
];
}

View File

@@ -0,0 +1,97 @@
{
pkgs,
config,
inputs,
...
}:
{
imports = [
./common.nix
../../secrets
# Programs
./accounts
./nixCats
./aerc.nix
./bitwarden.nix
./direnv.nix
./discord.nix
./ghostty.nix
./gpg.nix
./khal.nix
./kitty.nix
./lazygit.nix
./nh.nix
./rclone.nix
./spicetify.nix
./ssh.nix
./thunar.nix
./thunderbird.nix
./todoman.nix
./vicinae.nix
./zathura.nix
# Scripts
./scripts
# System (Desktop environment like stuff)
./hyprland
./hyprpanel.nix
./hyprpaper.nix
./hyprsunset.nix
./mime.nix
./udiskie.nix
];
home = {
packages = with pkgs; [
dotnet-runtime
dafny
gemini-cli
# Apps
bitwarden-desktop # Password manager
vlc # Video player
blanket # White-noise app
obsidian # Note taking app
planify # Todolists
textpieces # Manipulate texts
curtail # Compress images
resources # Ressource monitor
gnome-clocks # Clocks app
gnome-text-editor # Basic graphic text editor
mpv # Video player
brave # Web browser
# Privacy
session-desktop # Session app, private messages
signal-desktop # Signal app, private messages
protonvpn-gui
proton-pass
proton-authenticator
ticktick # Privacy friendly todo app
# Utils
zip
unzip
optipng
jpegoptim
pfetch
btop
fastfetch
# Just cool
peaclock
cbonsai
pipes
cmatrix
# Backup
vscode
libreoffice-qt6-fresh
];
};
}

View File

@@ -1,3 +1,4 @@
{ config, ... }:
{
services = {
hyprsunset = {
@@ -12,7 +13,7 @@
}
{
time = "23:00";
temperature = 2000;
temperature = config.var.hyprsunset.temperature;
gamma = 0.8;
}
];

View File

@@ -1,102 +0,0 @@
# Wofi is a launcher for Wayland, inspired by rofi.
{
config,
pkgs,
lib,
...
}:
let
accent = "#${config.lib.stylix.colors.base0D}";
background = "#${config.lib.stylix.colors.base00}";
background-alt = "#${config.lib.stylix.colors.base01}";
foreground = "#${config.lib.stylix.colors.base05}";
font = config.stylix.fonts.serif.name;
rounding = config.theme.rounding;
font-size = config.stylix.fonts.sizes.popups;
in
{
home.packages = with pkgs; [ wofi-emoji ];
programs.wofi = {
enable = true;
settings = {
allow_markup = true;
width = 450;
show = "drun";
prompt = "Apps";
normal_window = true;
height = 305;
allow_images = true;
image_size = 24;
insensitive = true;
hide_scroll = true;
no_actions = true;
gtk_dark = true;
};
style =
lib.mkForce
# css
''
* {
font-family: "${font}";
font-weight: 500;
font-size: ${toString font-size}px;
}
#window {
background-color: ${background};
color: ${foreground};
border-radius: ${toString rounding}px;
}
#outer-box {
padding: 20px;
}
#input {
background-color: ${background-alt};
border: 0px solid ${accent};
color: ${foreground};
padding: 8px 12px;
}
#scroll {
margin-top: 20px;
}
#inner-box {}
#img {
padding-right: 8px;
}
#text {
color: ${foreground};
}
#text:selected {
color: ${foreground};
}
#entry {
padding: 6px;
}
#entry:selected {
background-color: ${accent};
color: ${foreground};
}
#unselected {}
#selected {}
#input,
#entry:selected {
border-radius: ${toString rounding}px;
}
'';
};
}