home-config/nix-home-manager/home.nix

c23b60f866a687aa6ae3618265f47ae63c9c5b64 · 3.8 KB · 128 lines raw

1 { config, pkgs, hyprland, nixgl, ... }:
2
3 {
4 # Home Manager needs a bit of information about you and the paths it should
5 # manage.
6 home.username = "ryan";
7 home.homeDirectory = "/home/ryan";
8
9 # This value determines the Home Manager release that your configuration is
10 # compatible with. This helps avoid breakage when a new Home Manager release
11 # introduces backwards incompatible changes.
12 #
13 # You should not change this value, even if you update Home Manager. If you do
14 # want to update the value, then make sure to first check the Home Manager
15 # release notes.
16 home.stateVersion = "23.11"; # Please read the comment before changing.
17
18 # This value will set some environment variables to allow home-manager to
19 # function better outside of NixOS
20 nixpkgs.config.allowUnfree = true;
21 #targets.genericLinux.enable = true;
22 fonts.fontconfig.enable = true;
23 fonts.fontconfig.defaultFonts = {
24 monospace = [ "DejaVu Sans Mono" ];
25 sansSerif = [ "DejaVu Sans" ];
26 serif = [ "DejaVu Serif" ];
27 };
28
29 # wayland.windowManager.hyprland.enable = true;
30
31 # The home.packages option allows you to install Nix packages into your
32 # environment.
33 home.packages = with pkgs; [
34 # # Adds the 'hello' command to your environment. It prints a friendly
35 # # "Hello, world!" when run.
36 # pkgs.hello
37 yt-dlp
38 #pass
39 rustup
40 zoxide
41 nodePackages.pnpm
42 gcc
43 aerc
44 pkg-config
45 wttrbar
46 wl-clip-persist
47 gifski
48 waypaper
49 gdu
50 spotify-player
51 hyprpicker
52 xwayland
53 xdg-desktop-portal
54 xdg-desktop-portal-gtk
55 mpv
56 imv
57 libva
58 libvdpau
59 wpaperd
60 hypridle
61 firefox
62 eza
63
64 # Wrapped programs for some env variables
65 (pkgs.writeScriptBin "hyprlock" ''
66 #! ${pkgs.bash}/bin/bash
67 export LD_PRELOAD="/run/current-system/profile/lib/libpam.so.0:/run/current-system/profile/lib/libfontconfig.so:$LD_PRELOAD"
68 exec ${pkgs.hyprlock}/bin/hyprlock "$@"
69 '')
70
71 # Flakes specific things defined in flake.nix
72 hyprland.packages.${pkgs.system}.default
73 hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
74 nixgl.packages.${pkgs.system}.nixGLIntel
75
76 # Fonts!
77 noto-fonts
78 dejavu_fonts
79 liberation_ttf
80 noto-fonts-cjk-sans
81 noto-fonts-emoji
82
83 # # It is sometimes useful to fine-tune packages, for example, by applying
84 # # overrides. You can do that directly here, just don't forget the
85 # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
86 # # fonts?
87 # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
88
89 # # You can also create simple shell scripts directly inside your
90 # # configuration. For example, this adds a command 'my-hello' to your
91 # # environment:
92 # (pkgs.writeShellScriptBin "my-hello" ''
93 # echo "Hello, ${config.home.username}!"
94 # '')
95 ];
96
97 # Home Manager is pretty good at managing dotfiles. The primary way to manage
98 # plain files is through 'home.file'.
99 home.file = {
100 # # Building this configuration will create a copy of 'dotfiles/screenrc' in
101 # # the Nix store. Activating the configuration will then make '~/.screenrc' a
102 # # symlink to the Nix store copy.
103 # ".screenrc".source = dotfiles/screenrc;
104
105 # # You can also set the file content immediately.
106 # ".gradle/gradle.properties".text = ''
107 # org.gradle.console=verbose
108 # org.gradle.daemon.idletimeout=3600000
109 # '';
110 };
111
112 # You can also manage environment variables but you will have to manually
113 # source
114 #
115 # ~/.nix-profile/etc/profile.d/hm-session-vars.sh
116 #
117 # or
118 #
119 # /etc/profiles/per-user/ryan/etc/profile.d/hm-session-vars.sh
120 #
121 # if you don't want to manage your shell through Home Manager.
122 home.sessionVariables = {
123 # EDITOR = "emacs";
124 };
125
126 # Let Home Manager install and manage itself.
127 programs.home-manager.enable = true;
128 }