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

aa1a1e82efa8921fa120662da960cdaf381c4680 · 4.6 KB · 159 lines raw

1 { config, pkgs, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, ... }:
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.enable = true;
36
37 programs.starship = {
38 enable = true;
39 settings = {
40 add_newline = false;
41 character = {
42 success_symbol = "[➜](bold green)";
43 error_symbol = "[➜](bold red)";
44 };
45 time = {
46 disabled = false;
47 format = "\[ $time \]($style)";
48 time_format = "%T";
49 };
50 };
51 };
52
53 # The home.packages option allows you to install Nix packages into your
54 # environment.
55 home.packages = with pkgs; [
56 # # Adds the 'hello' command to your environment. It prints a friendly
57 # # "Hello, world!" when run.
58 # pkgs.hello
59 yt-dlp
60 #pass
61 rustup
62 zoxide
63 nodePackages.pnpm
64 gcc
65 aerc
66 pkg-config
67 wttrbar
68 wl-clip-persist
69 gifski
70 waypaper
71 gdu
72 spotify-player
73 #hyprpicker
74 xwayland
75 xdg-desktop-portal
76 xdg-desktop-portal-gtk
77 mpv
78 imv
79 libva
80 libvdpau
81 #wpaperd
82 hypridle
83 #latest.firefox-nightly-bin
84 eza
85 wl-mirror
86 starship
87 taskwarrior3
88 delta
89
90 # Here until i can fix firefox's stupid devtools issue
91 chromium
92
93 # Wrapped programs for some env variables
94 (pkgs.writeScriptBin "hyprlock" ''
95 #! ${pkgs.bash}/bin/bash
96 export LD_PRELOAD="/run/current-system/profile/lib/libpam.so.0:/run/current-system/profile/lib/libfontconfig.so:$LD_PRELOAD"
97 exec ${hyprlock.packages.${pkgs.system}.hyprlock}/bin/hyprlock "$@"
98 '')
99
100 # Flakes specific things defined in flake.nix
101 hyprland.packages.${pkgs.system}.default
102 hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
103 nixgl.packages.${pkgs.system}.nixGLIntel
104 wpaperd.packages.${pkgs.system}.wpaperd
105 hyprpicker-git.packages.${pkgs.system}.hyprpicker
106
107 # Fonts!
108 noto-fonts
109 dejavu_fonts
110 liberation_ttf
111 noto-fonts-cjk-sans
112 noto-fonts-emoji
113
114 # # It is sometimes useful to fine-tune packages, for example, by applying
115 # # overrides. You can do that directly here, just don't forget the
116 # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
117 # # fonts?
118 # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
119
120 # # You can also create simple shell scripts directly inside your
121 # # configuration. For example, this adds a command 'my-hello' to your
122 # # environment:
123 # (pkgs.writeShellScriptBin "my-hello" ''
124 # echo "Hello, ${config.home.username}!"
125 # '')
126 ];
127
128 # Home Manager is pretty good at managing dotfiles. The primary way to manage
129 # plain files is through 'home.file'.
130 home.file = {
131 # # Building this configuration will create a copy of 'dotfiles/screenrc' in
132 # # the Nix store. Activating the configuration will then make '~/.screenrc' a
133 # # symlink to the Nix store copy.
134 # ".screenrc".source = dotfiles/screenrc;
135
136 # # You can also set the file content immediately.
137 # ".gradle/gradle.properties".text = ''
138 # org.gradle.console=verbose
139 # org.gradle.daemon.idletimeout=3600000
140 # '';
141 };
142
143 # You can also manage environment variables but you will have to manually
144 # source
145 #
146 # ~/.nix-profile/etc/profile.d/hm-session-vars.sh
147 #
148 # or
149 #
150 # /etc/profiles/per-user/ryan/etc/profile.d/hm-session-vars.sh
151 #
152 # if you don't want to manage your shell through Home Manager.
153 home.sessionVariables = {
154 # EDITOR = "emacs";
155 };
156
157 # Let Home Manager install and manage itself.
158 programs.home-manager.enable = true;
159 }