2024-02-23 13:08:52 +01:00
|
|
|
|
{ config, pkgs, lib, inputs, ... }:
|
2024-01-12 15:59:57 +01:00
|
|
|
|
{
|
2024-02-23 13:08:52 +01:00
|
|
|
|
|
2024-02-13 22:04:37 +01:00
|
|
|
|
imports = [
|
|
|
|
|
./modules/nixvim.nix
|
2024-02-22 19:01:16 +01:00
|
|
|
|
./modules/firefox.nix
|
2024-03-03 12:34:10 +01:00
|
|
|
|
#./modules/ssh.nix
|
2024-02-13 22:04:37 +01:00
|
|
|
|
];
|
2024-01-26 19:31:00 +01:00
|
|
|
|
home.username = "xqtc";
|
|
|
|
|
home.homeDirectory = "/home/xqtc";
|
|
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
|
enable = true;
|
|
|
|
|
userName = "xqtc161";
|
|
|
|
|
userEmail = "xqtc@tutanota.com";
|
|
|
|
|
};
|
|
|
|
|
programs.wezterm = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraConfig = builtins.readFile ./config-files/wezterm.lua;
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-26 22:28:50 +01:00
|
|
|
|
programs.joshuto = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-19 12:02:16 +01:00
|
|
|
|
programs = {
|
2024-02-20 21:02:36 +01:00
|
|
|
|
zsh.enable = true;
|
2024-01-12 15:59:57 +01:00
|
|
|
|
atuin = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableNushellIntegration = true;
|
|
|
|
|
};
|
2024-02-13 22:04:37 +01:00
|
|
|
|
eza.enable = true;
|
|
|
|
|
nushell = {
|
|
|
|
|
enable = true;
|
|
|
|
|
shellAliases = {
|
|
|
|
|
ls = "eza -l --icons --group-directories-first";
|
|
|
|
|
};
|
|
|
|
|
extraConfig = "uwufetch --image";
|
|
|
|
|
configFile = { text = ''
|
|
|
|
|
$env.config = {
|
|
|
|
|
show_banner: false
|
|
|
|
|
}
|
|
|
|
|
'';
|
|
|
|
|
};
|
2024-01-12 15:59:57 +01:00
|
|
|
|
};
|
|
|
|
|
carapace.enable = true;
|
|
|
|
|
carapace.enableNushellIntegration = true;
|
2024-02-10 22:24:36 +01:00
|
|
|
|
starship =
|
2024-02-19 12:02:16 +01:00
|
|
|
|
let
|
|
|
|
|
flavour = "mocha";
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
enable = true;
|
|
|
|
|
enableNushellIntegration = true;
|
2024-02-20 21:02:36 +01:00
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
enableZshIntegration = true;
|
2024-02-19 12:02:16 +01:00
|
|
|
|
settings = {
|
|
|
|
|
# Other config here
|
|
|
|
|
character = {
|
|
|
|
|
success_symbol = "[λ::](bold green)";
|
|
|
|
|
error_symbol = "[λ::](bold red)";
|
|
|
|
|
};
|
2024-02-20 21:02:36 +01:00
|
|
|
|
username = {
|
|
|
|
|
style_user = "bold pink";
|
|
|
|
|
format = "[$user]($style)";
|
|
|
|
|
show_always = true;
|
|
|
|
|
disabled = false;
|
|
|
|
|
};
|
|
|
|
|
hostname = {
|
|
|
|
|
ssh_only = false;
|
|
|
|
|
format = "[ 🏳️⚧️ ](bold pink)[$hostname](bold flamingo)";
|
|
|
|
|
disabled = false;
|
|
|
|
|
};
|
|
|
|
|
right_format = "$all";
|
|
|
|
|
format = ''$username$hostname in $directory
|
|
|
|
|
$character'';
|
2024-02-19 12:02:16 +01:00
|
|
|
|
palette = "catppuccin_${flavour}";
|
|
|
|
|
} // builtins.fromTOML (builtins.readFile
|
|
|
|
|
(pkgs.fetchFromGitHub
|
|
|
|
|
{
|
|
|
|
|
owner = "catppuccin";
|
|
|
|
|
repo = "starship";
|
|
|
|
|
rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f"; # Replace with the latest commit hash
|
|
|
|
|
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
|
|
|
|
|
} + /palettes/${flavour}.toml));
|
|
|
|
|
};
|
2024-01-12 15:59:57 +01:00
|
|
|
|
};
|
2024-02-08 18:16:57 +01:00
|
|
|
|
dconf.enable = true;
|
|
|
|
|
dconf.settings = {
|
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
|
color-scheme = "prefer-dark";
|
2024-02-19 12:02:16 +01:00
|
|
|
|
cursor-theme = "Adwaita";
|
2024-02-08 18:16:57 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
|
enable = true;
|
|
|
|
|
theme = {
|
|
|
|
|
name = "Catppuccin-Mocha-Compact-Pink-Dark";
|
|
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
|
accents = [ "pink" ];
|
|
|
|
|
size = "compact";
|
2024-02-11 02:01:29 +01:00
|
|
|
|
tweaks = [ "rimless" ];
|
2024-02-08 18:16:57 +01:00
|
|
|
|
variant = "mocha";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-01-28 22:51:43 +01:00
|
|
|
|
|
2024-02-12 20:08:44 +01:00
|
|
|
|
home.sessionVariables.DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
|
|
|
|
|
|
2024-02-20 21:02:36 +01:00
|
|
|
|
home.file."~/.local/share/fonts/AppleColorEmoji.ttf".source = ./config-files/AppleColorEmoji.ttf;
|
|
|
|
|
|
2024-02-26 22:28:50 +01:00
|
|
|
|
|
2024-02-22 19:01:16 +01:00
|
|
|
|
#programs.firefox = {
|
|
|
|
|
# enable = true;
|
|
|
|
|
# package = pkgs.firefox.override {
|
|
|
|
|
# cfg = {
|
|
|
|
|
# enableGnomeExtensions = true;
|
|
|
|
|
# };
|
|
|
|
|
# };
|
|
|
|
|
#};
|
2024-02-10 14:52:08 +01:00
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.hyprland;
|
2024-01-12 15:59:57 +01:00
|
|
|
|
|
2024-02-20 21:02:36 +01:00
|
|
|
|
#xwayland.enable = true;
|
2024-01-12 15:59:57 +01:00
|
|
|
|
|
2024-02-10 14:52:08 +01:00
|
|
|
|
#enableNvidiaPatches = true;
|
|
|
|
|
extraConfig = builtins.readFile ./config-files/hyprland.conf;
|
|
|
|
|
};
|
2024-02-25 14:51:19 +01:00
|
|
|
|
|
|
|
|
|
programs.waybar = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
mainBar = {
|
|
|
|
|
layer = "top";
|
|
|
|
|
position = "top";
|
|
|
|
|
height = 30;
|
|
|
|
|
modules-left = [ "hyprland/workspaces" ];
|
|
|
|
|
#modules-center = [ "hyprland/window" ];
|
2024-03-03 14:27:47 +01:00
|
|
|
|
modules-right = [ "tray" "network" "battery" "battery#bat2" "clock" ];
|
2024-02-26 22:28:50 +01:00
|
|
|
|
"tray" = {
|
|
|
|
|
"icon-size" = 21;
|
|
|
|
|
};
|
2024-02-25 14:51:19 +01:00
|
|
|
|
"network" = {
|
|
|
|
|
"format-wifi"= "NET: {essid} ({signalStrength}%) ";
|
|
|
|
|
"format-ethernet" = "{ifname} ";
|
|
|
|
|
"format-disconnected" = "";
|
|
|
|
|
"max-length" = 50;
|
|
|
|
|
};
|
|
|
|
|
"battery" = {
|
2024-03-03 14:27:47 +01:00
|
|
|
|
"bat" = "BAT0";
|
|
|
|
|
"interval" = 10;
|
|
|
|
|
"states" = {
|
|
|
|
|
"warning" = 30;
|
|
|
|
|
"critical" = 15;
|
|
|
|
|
};
|
|
|
|
|
"format" = " BAT IN: {capacity}%";
|
|
|
|
|
#"format-icons" = ''["", "", "", "", ""]'';
|
|
|
|
|
"max-length" = 25;
|
|
|
|
|
};
|
|
|
|
|
"battery#bat2" = {
|
2024-02-25 14:51:19 +01:00
|
|
|
|
"bat" = "BAT1";
|
2024-03-03 14:27:47 +01:00
|
|
|
|
"interval" = 10;
|
2024-02-25 14:51:19 +01:00
|
|
|
|
"states" = {
|
|
|
|
|
"warning" = 30;
|
|
|
|
|
"critical" = 15;
|
|
|
|
|
};
|
2024-03-03 14:27:47 +01:00
|
|
|
|
"format" = " BAT EX: {capacity}%";
|
2024-02-25 14:51:19 +01:00
|
|
|
|
#"format-icons" = ''["", "", "", "", ""]'';
|
|
|
|
|
"max-length" = 25;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
style = builtins.readFile ./config-files/waybar-mocha.css;
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-12 20:08:44 +01:00
|
|
|
|
services.mako = {
|
|
|
|
|
enable = true;
|
|
|
|
|
font = "Hack Nerd Font 15";
|
2024-02-13 22:04:37 +01:00
|
|
|
|
backgroundColor = "#1e1e2e";
|
|
|
|
|
textColor = "#cdd6f4";
|
2024-02-12 20:08:44 +01:00
|
|
|
|
};
|
2024-01-12 15:59:57 +01:00
|
|
|
|
|
2024-03-06 17:19:49 +01:00
|
|
|
|
services.easyeffects = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-13 22:04:37 +01:00
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
|
neofetch
|
|
|
|
|
uwufetch
|
|
|
|
|
btop
|
|
|
|
|
iftop
|
2024-02-26 22:28:50 +01:00
|
|
|
|
ranger
|
|
|
|
|
|
|
|
|
|
obsidian
|
|
|
|
|
|
|
|
|
|
moodle-dl
|
2024-02-05 18:59:12 +01:00
|
|
|
|
|
2024-02-13 22:04:37 +01:00
|
|
|
|
brightnessctl
|
2024-03-03 12:34:10 +01:00
|
|
|
|
pavucontrol
|
2024-02-13 22:04:37 +01:00
|
|
|
|
|
|
|
|
|
bitwarden
|
|
|
|
|
bitwarden-cli
|
2024-02-20 21:02:36 +01:00
|
|
|
|
|
2024-02-13 22:04:37 +01:00
|
|
|
|
sway-contrib.grimshot
|
|
|
|
|
|
|
|
|
|
libnotify
|
|
|
|
|
|
|
|
|
|
strace
|
|
|
|
|
ltrace
|
|
|
|
|
|
|
|
|
|
nodejs
|
|
|
|
|
|
|
|
|
|
nerdfonts
|
|
|
|
|
vivaldi
|
|
|
|
|
vivaldi-ffmpeg-codecs
|
|
|
|
|
|
|
|
|
|
signal-desktop
|
|
|
|
|
vesktop
|
|
|
|
|
discord
|
|
|
|
|
telegram-desktop
|
|
|
|
|
webex
|
2024-02-25 14:51:19 +01:00
|
|
|
|
element-desktop
|
2024-02-13 22:04:37 +01:00
|
|
|
|
|
|
|
|
|
qbittorrent
|
|
|
|
|
nicotine-plus
|
|
|
|
|
|
|
|
|
|
neovide
|
2024-02-25 14:51:19 +01:00
|
|
|
|
|
2024-02-13 22:04:37 +01:00
|
|
|
|
yubioath-flutter
|
|
|
|
|
|
|
|
|
|
steam
|
|
|
|
|
protonup-qt
|
|
|
|
|
|
|
|
|
|
spotify
|
|
|
|
|
sayonara
|
|
|
|
|
mpv
|
2024-03-06 17:19:49 +01:00
|
|
|
|
feishin
|
2024-02-13 22:04:37 +01:00
|
|
|
|
|
|
|
|
|
nixos-icons
|
|
|
|
|
swww
|
2024-02-26 22:28:50 +01:00
|
|
|
|
];
|
2024-02-13 22:04:37 +01:00
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
2024-01-12 15:59:57 +01:00
|
|
|
|
}
|