2024-10-20 00:53:35 +00:00
|
|
|
{ config, pkgs, hyprland, nixgl, ... }:
|
2023-05-18 22:52:05 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# Home Manager needs a bit of information about you and the paths it should
|
|
|
|
# manage.
|
|
|
|
home.username = "ryan";
|
|
|
|
home.homeDirectory = "/home/ryan";
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your configuration is
|
|
|
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
|
|
|
# introduces backwards incompatible changes.
|
|
|
|
#
|
|
|
|
# You should not change this value, even if you update Home Manager. If you do
|
|
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
|
|
# release notes.
|
2024-02-17 01:10:31 +00:00
|
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
2024-02-15 18:22:50 +00:00
|
|
|
|
2023-05-18 22:52:05 +00:00
|
|
|
# This value will set some environment variables to allow home-manager to
|
|
|
|
# function better outside of NixOS
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-02-17 01:10:31 +00:00
|
|
|
#targets.genericLinux.enable = true;
|
2023-05-18 22:52:05 +00:00
|
|
|
fonts.fontconfig.enable = true;
|
2024-10-29 02:55:28 +00:00
|
|
|
fonts.fontconfig.defaultFonts = {
|
|
|
|
monospace = [ "DejaVu Sans Mono" ];
|
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
|
|
|
serif = [ "DejaVu Serif" ];
|
|
|
|
};
|
2023-05-18 22:52:05 +00:00
|
|
|
|
2024-10-11 20:54:40 +00:00
|
|
|
# wayland.windowManager.hyprland.enable = true;
|
|
|
|
|
2023-05-18 22:52:05 +00:00
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
|
|
|
# # "Hello, world!" when run.
|
|
|
|
# pkgs.hello
|
2023-05-29 05:32:56 +00:00
|
|
|
yt-dlp
|
2023-10-03 14:36:12 +00:00
|
|
|
#pass
|
2023-09-21 21:08:39 +00:00
|
|
|
rustup
|
2024-02-15 18:22:50 +00:00
|
|
|
zoxide
|
2023-10-26 18:55:39 +00:00
|
|
|
nodePackages.pnpm
|
2023-09-21 21:08:39 +00:00
|
|
|
gcc
|
2024-03-29 19:19:07 +00:00
|
|
|
aerc
|
2023-09-21 21:08:39 +00:00
|
|
|
pkg-config
|
2023-10-12 14:40:43 +00:00
|
|
|
wttrbar
|
2023-11-07 01:00:12 +00:00
|
|
|
wl-clip-persist
|
2023-11-07 03:33:10 +00:00
|
|
|
gifski
|
2023-11-08 06:16:39 +00:00
|
|
|
waypaper
|
2023-11-18 05:03:46 +00:00
|
|
|
gdu
|
2024-01-14 04:55:15 +00:00
|
|
|
spotify-player
|
2024-02-17 01:10:31 +00:00
|
|
|
hyprpicker
|
2024-10-20 00:53:35 +00:00
|
|
|
xwayland
|
|
|
|
xdg-desktop-portal
|
|
|
|
xdg-desktop-portal-gtk
|
2024-10-20 01:55:55 +00:00
|
|
|
mpv
|
|
|
|
imv
|
|
|
|
libva
|
|
|
|
libvdpau
|
2024-10-20 03:03:36 +00:00
|
|
|
wpaperd
|
2024-10-21 18:48:05 +00:00
|
|
|
hypridle
|
2024-10-29 03:57:03 +00:00
|
|
|
latest.firefox-nightly-bin
|
2024-10-29 02:55:28 +00:00
|
|
|
eza
|
2024-10-21 18:48:05 +00:00
|
|
|
|
|
|
|
# Wrapped programs for some env variables
|
|
|
|
(pkgs.writeScriptBin "hyprlock" ''
|
|
|
|
#! ${pkgs.bash}/bin/bash
|
2024-10-21 20:10:27 +00:00
|
|
|
export LD_PRELOAD="/run/current-system/profile/lib/libpam.so.0:/run/current-system/profile/lib/libfontconfig.so:$LD_PRELOAD"
|
2024-10-21 18:48:05 +00:00
|
|
|
exec ${pkgs.hyprlock}/bin/hyprlock "$@"
|
|
|
|
'')
|
2023-05-18 22:52:05 +00:00
|
|
|
|
2024-10-19 04:11:58 +00:00
|
|
|
# Flakes specific things defined in flake.nix
|
|
|
|
hyprland.packages.${pkgs.system}.default
|
2024-10-20 00:53:35 +00:00
|
|
|
hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
|
2024-10-19 04:11:58 +00:00
|
|
|
nixgl.packages.${pkgs.system}.nixGLIntel
|
|
|
|
|
|
|
|
# Fonts!
|
|
|
|
noto-fonts
|
2024-10-21 20:10:27 +00:00
|
|
|
dejavu_fonts
|
2024-10-19 04:11:58 +00:00
|
|
|
liberation_ttf
|
2024-10-20 01:55:55 +00:00
|
|
|
noto-fonts-cjk-sans
|
2024-10-19 04:11:58 +00:00
|
|
|
noto-fonts-emoji
|
|
|
|
|
2023-05-18 22:52:05 +00:00
|
|
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
|
|
|
# # overrides. You can do that directly here, just don't forget the
|
|
|
|
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
|
|
|
# # fonts?
|
|
|
|
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
|
|
|
|
|
|
# # You can also create simple shell scripts directly inside your
|
|
|
|
# # configuration. For example, this adds a command 'my-hello' to your
|
|
|
|
# # environment:
|
|
|
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
|
|
# echo "Hello, ${config.home.username}!"
|
|
|
|
# '')
|
|
|
|
];
|
|
|
|
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
|
|
|
home.file = {
|
|
|
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
|
|
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
|
|
|
# # symlink to the Nix store copy.
|
|
|
|
# ".screenrc".source = dotfiles/screenrc;
|
|
|
|
|
|
|
|
# # You can also set the file content immediately.
|
|
|
|
# ".gradle/gradle.properties".text = ''
|
|
|
|
# org.gradle.console=verbose
|
|
|
|
# org.gradle.daemon.idletimeout=3600000
|
|
|
|
# '';
|
|
|
|
};
|
|
|
|
|
|
|
|
# You can also manage environment variables but you will have to manually
|
|
|
|
# source
|
|
|
|
#
|
|
|
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# /etc/profiles/per-user/ryan/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# if you don't want to manage your shell through Home Manager.
|
|
|
|
home.sessionVariables = {
|
|
|
|
# EDITOR = "emacs";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
}
|