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

365a13de3e19c66f6bb2ffb806e8086a068ffc25 · 5.0 KB · 168 lines raw

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