2024-02-05 22:22:40 +01:00
|
|
|
{ config, pkgs, lib, inputs, ... }: {
|
|
|
|
imports = [
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2024-02-14 19:42:25 +01:00
|
|
|
inputs.stylix.nixosModules.stylix
|
2024-06-21 00:35:34 +02:00
|
|
|
./files.nix
|
|
|
|
./hyprland.nix
|
2024-02-14 21:40:07 +01:00
|
|
|
./nixvim.nix
|
2024-06-21 00:35:34 +02:00
|
|
|
./waybar.nix
|
2024-02-05 22:22:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
kyouma.machine-type.graphical = true;
|
|
|
|
|
2024-02-28 22:43:20 +01:00
|
|
|
boot.plymouth.enable = true;
|
2024-02-22 20:20:07 +01:00
|
|
|
|
2024-05-29 21:10:12 +02:00
|
|
|
security.pam.services.hyprlock = {};
|
2024-02-29 21:24:55 +01:00
|
|
|
|
2024-03-27 23:39:09 +01:00
|
|
|
services.dbus.packages = [ pkgs.gcr ];
|
2024-02-05 22:22:40 +01:00
|
|
|
services.geoclue2.enable = true;
|
2024-02-14 19:42:25 +01:00
|
|
|
|
2024-02-05 22:22:40 +01:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
2024-02-29 21:24:55 +01:00
|
|
|
|
|
|
|
services.udisks2.enable = true;
|
|
|
|
|
2024-02-05 22:22:40 +01:00
|
|
|
environment.variables = {
|
2024-06-12 15:10:04 +02:00
|
|
|
CLUTTER_BACKEND = "wayland";
|
2024-02-05 22:22:40 +01:00
|
|
|
GDK_BACKEND = "wayland,x11";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
2024-06-12 15:10:04 +02:00
|
|
|
QT_QPA_PLATFORM = "wayland;xcb";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
LIBVA_DRIVER_NAME = "radeonsi";
|
|
|
|
MESA_VK_DEVICE_SELECT = "1002:73df";
|
|
|
|
WLR_DRM_DEVICES = "$HOME/.config/hypr/external-gpu:$HOME/.config/hypr/internal-gpu";
|
2024-02-05 22:22:40 +01:00
|
|
|
};
|
2024-03-24 19:57:02 +01:00
|
|
|
xdg.icons.enable = true;
|
2024-02-28 22:43:20 +01:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
|
|
|
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
|
|
|
|
};
|
2024-02-05 22:22:40 +01:00
|
|
|
|
2024-02-14 19:42:25 +01:00
|
|
|
stylix= {
|
2024-02-22 20:20:07 +01:00
|
|
|
image = pkgs.fetchurl {
|
|
|
|
url = "https://kyouma.net/wallpaper.png";
|
|
|
|
sha256 = "1f46b439a864cd28b8ea93563b4762f1efb2648bae0148fd6b45f3033b10b0e8";
|
|
|
|
};
|
|
|
|
polarity = "dark";
|
|
|
|
#base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
|
2024-02-14 19:42:25 +01:00
|
|
|
fonts = {
|
|
|
|
sansSerif = {
|
|
|
|
package = pkgs.noto-fonts;
|
|
|
|
name = "Noto Sans";
|
|
|
|
};
|
|
|
|
serif = config.stylix.fonts.sansSerif;
|
|
|
|
monospace = {
|
|
|
|
package = pkgs.jetbrains-mono;
|
2024-02-28 22:43:20 +01:00
|
|
|
name = "JetBrains Mono Regular";
|
2024-02-14 19:42:25 +01:00
|
|
|
};
|
|
|
|
sizes.terminal = 11;
|
|
|
|
};
|
|
|
|
cursor = {
|
|
|
|
package = pkgs.capitaine-cursors;
|
|
|
|
name = "capitaine";
|
|
|
|
size = 24;
|
|
|
|
};
|
2024-02-22 20:20:07 +01:00
|
|
|
targets = {
|
|
|
|
console.enable = false;
|
2024-02-28 22:43:20 +01:00
|
|
|
gnome.enable = true;
|
2024-02-22 20:20:07 +01:00
|
|
|
fish.enable = false;
|
|
|
|
};
|
2024-02-14 19:42:25 +01:00
|
|
|
};
|
|
|
|
|
2024-02-05 22:22:40 +01:00
|
|
|
home-manager.users.emily = {
|
2024-02-22 20:20:07 +01:00
|
|
|
stylix.targets = {
|
2024-02-14 19:42:25 +01:00
|
|
|
hyprland.enable = false;
|
|
|
|
kitty.enable = false;
|
|
|
|
mako.enable = false;
|
|
|
|
rofi.enable = false;
|
2024-02-22 20:20:07 +01:00
|
|
|
swaylock.enable = false;
|
2024-02-14 19:42:25 +01:00
|
|
|
waybar.enable = false;
|
|
|
|
nixvim.enable = false;
|
2024-02-22 20:20:07 +01:00
|
|
|
fish.enable = false;
|
2024-02-14 19:42:25 +01:00
|
|
|
};
|
2024-02-05 22:22:40 +01:00
|
|
|
home.keyboard = {
|
|
|
|
layout = "de";
|
|
|
|
variant = "neo_qwerty";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.imv.enable = true;
|
2024-02-28 22:43:20 +01:00
|
|
|
|
2024-02-05 22:22:40 +01:00
|
|
|
programs.wpaperd = {
|
|
|
|
enable = true;
|
|
|
|
settings.default = {
|
|
|
|
path = "/home/emily/Pictures/wallpapers/sylviaritter/";
|
|
|
|
duration = "60m";
|
|
|
|
sorting = "random";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
2024-03-24 19:57:02 +01:00
|
|
|
font.size = 13;
|
2024-02-05 22:22:40 +01:00
|
|
|
font.name = "JetBrains Mono";
|
|
|
|
settings = {
|
|
|
|
enable_audio_bell = false;
|
|
|
|
scrollback_lines = 65536;
|
|
|
|
remember_window_size = false;
|
|
|
|
initial_window_width = 1200;
|
|
|
|
initial_window_height = 800;
|
|
|
|
|
|
|
|
bold_font = "auto";
|
|
|
|
italic_font = "auto";
|
|
|
|
bold_italic_font = "auto";
|
|
|
|
|
|
|
|
background = "#090312";
|
|
|
|
background_opacity = "0.7";
|
|
|
|
};
|
|
|
|
keybindings = {
|
|
|
|
"shift+right" = "next_tab";
|
|
|
|
"ctrl+l" = "next_tab";
|
|
|
|
"shift+left" = "previous_tab";
|
|
|
|
"ctrl+h" = "previous_tab";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.rofi-wayland;
|
|
|
|
};
|
2024-03-24 19:57:02 +01:00
|
|
|
|
|
|
|
programs.zoxide = {
|
|
|
|
enable = true;
|
|
|
|
options = [ "--cmd cd" ];
|
|
|
|
};
|
|
|
|
programs.fzf.enable = true;
|
2024-02-29 21:24:55 +01:00
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-05-10 15:37:02 +02:00
|
|
|
platformTheme.name = "qtct";
|
2024-02-29 21:24:55 +01:00
|
|
|
style.name = "kvantum-dark";
|
|
|
|
style.package = with pkgs; [
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
2024-03-24 19:57:02 +01:00
|
|
|
qt6Packages.qtstyleplugin-kvantum
|
2024-02-29 21:24:55 +01:00
|
|
|
(catppuccin-kvantum.override { accent = "Mauve"; variant = "Macchiato"; })
|
|
|
|
];
|
|
|
|
};
|
2024-03-24 19:57:02 +01:00
|
|
|
gtk.iconTheme.name = "Adwaita";
|
|
|
|
gtk.iconTheme.package = pkgs.gnome.adwaita-icon-theme;
|
2024-02-29 21:24:55 +01:00
|
|
|
|
2024-02-05 22:22:40 +01:00
|
|
|
services.gammastep = {
|
|
|
|
enable = true;
|
|
|
|
provider = "geoclue2";
|
2024-02-22 20:20:07 +01:00
|
|
|
temperature.day = 6500;
|
|
|
|
temperature.night = 3700;
|
2024-02-05 22:22:40 +01:00
|
|
|
settings.general.adjustment-method = "wayland";
|
|
|
|
};
|
|
|
|
services.mako = {
|
|
|
|
enable = true;
|
|
|
|
anchor = "top-right";
|
|
|
|
backgroundColor = "#24273a";
|
|
|
|
borderColor = "#c6a0f6";
|
|
|
|
borderRadius = 15;
|
|
|
|
borderSize = 2;
|
|
|
|
defaultTimeout = 5000;
|
|
|
|
layer = "overlay";
|
|
|
|
maxIconSize = 48;
|
|
|
|
padding = "15";
|
|
|
|
progressColor = "over #B4A1DB";
|
|
|
|
sort = "-time";
|
|
|
|
textColor = "#cad3f5";
|
|
|
|
extraConfig = ''
|
|
|
|
max-history=100
|
|
|
|
on-button-left=dismiss
|
|
|
|
on-button-right=dismiss-all
|
|
|
|
on-notify=exec ${pkgs.mpv}/bin/mpv /usr/share/sounds/freedesktop/stereo/message.oga
|
|
|
|
|
|
|
|
[urgency=low]
|
|
|
|
border-color=#B4A1DB
|
|
|
|
default-timeout=2000
|
|
|
|
|
|
|
|
[urgency=normal]
|
|
|
|
border-color=#B4A1DB
|
|
|
|
default-timeout=5000
|
|
|
|
|
|
|
|
[urgency=high]
|
|
|
|
border-color=#D04E9D
|
|
|
|
text-color=#D04E9D
|
|
|
|
default-timeout=0
|
|
|
|
|
|
|
|
[category=mpd]
|
|
|
|
border-color=#E49186
|
|
|
|
default-timeout=2000
|
|
|
|
group-by=category
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
2024-03-27 23:39:09 +01:00
|
|
|
pinentryPackage = pkgs.pinentry-gnome3;
|
2024-02-05 22:22:40 +01:00
|
|
|
};
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
tray.enable = true;
|
2024-02-29 21:24:55 +01:00
|
|
|
tray.command = "syncthingtray --replace";
|
2024-02-28 22:43:20 +01:00
|
|
|
};
|
|
|
|
services.udiskie = {
|
|
|
|
enable = true;
|
|
|
|
automount = false;
|
|
|
|
};
|
2024-02-29 21:24:55 +01:00
|
|
|
systemd.user.services.syncthingtray.Service = {
|
|
|
|
ExecStartPre = "${pkgs.coreutils-full}/bin/sleep 2";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = "1s";
|
|
|
|
};
|
2024-02-05 22:22:40 +01:00
|
|
|
};
|
|
|
|
}
|