home-config/nix-home-manager/home.nix
ebc322922f66f567ec06595026cf26fe3fa28b32
· 3.7 KB · 121 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 | |
| 24 | # wayland.windowManager.hyprland.enable = true; |
| 25 | |
| 26 | # The home.packages option allows you to install Nix packages into your |
| 27 | # environment. |
| 28 | home.packages = with pkgs; [ |
| 29 | # # Adds the 'hello' command to your environment. It prints a friendly |
| 30 | # # "Hello, world!" when run. |
| 31 | # pkgs.hello |
| 32 | yt-dlp |
| 33 | #pass |
| 34 | rustup |
| 35 | zoxide |
| 36 | nodePackages.pnpm |
| 37 | gcc |
| 38 | aerc |
| 39 | pkg-config |
| 40 | wttrbar |
| 41 | wl-clip-persist |
| 42 | gifski |
| 43 | waypaper |
| 44 | gdu |
| 45 | spotify-player |
| 46 | hyprpicker |
| 47 | xwayland |
| 48 | xdg-desktop-portal |
| 49 | xdg-desktop-portal-gtk |
| 50 | mpv |
| 51 | imv |
| 52 | libva |
| 53 | libvdpau |
| 54 | wpaperd |
| 55 | hypridle |
| 56 | |
| 57 | # Wrapped programs for some env variables |
| 58 | (pkgs.writeScriptBin "hyprlock" '' |
| 59 | #! ${pkgs.bash}/bin/bash |
| 60 | export LD_PRELOAD="/run/current-system/profile/lib/libpam.so.0:/run/current-system/profile/lib/libfontconfig.so:$LD_PRELOAD" |
| 61 | exec ${pkgs.hyprlock}/bin/hyprlock "$@" |
| 62 | '') |
| 63 | |
| 64 | # Flakes specific things defined in flake.nix |
| 65 | hyprland.packages.${pkgs.system}.default |
| 66 | hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland |
| 67 | nixgl.packages.${pkgs.system}.nixGLIntel |
| 68 | |
| 69 | # Fonts! |
| 70 | noto-fonts |
| 71 | dejavu_fonts |
| 72 | liberation_ttf |
| 73 | noto-fonts-cjk-sans |
| 74 | noto-fonts-emoji |
| 75 | |
| 76 | # # It is sometimes useful to fine-tune packages, for example, by applying |
| 77 | # # overrides. You can do that directly here, just don't forget the |
| 78 | # # parentheses. Maybe you want to install Nerd Fonts with a limited number of |
| 79 | # # fonts? |
| 80 | # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) |
| 81 | |
| 82 | # # You can also create simple shell scripts directly inside your |
| 83 | # # configuration. For example, this adds a command 'my-hello' to your |
| 84 | # # environment: |
| 85 | # (pkgs.writeShellScriptBin "my-hello" '' |
| 86 | # echo "Hello, ${config.home.username}!" |
| 87 | # '') |
| 88 | ]; |
| 89 | |
| 90 | # Home Manager is pretty good at managing dotfiles. The primary way to manage |
| 91 | # plain files is through 'home.file'. |
| 92 | home.file = { |
| 93 | # # Building this configuration will create a copy of 'dotfiles/screenrc' in |
| 94 | # # the Nix store. Activating the configuration will then make '~/.screenrc' a |
| 95 | # # symlink to the Nix store copy. |
| 96 | # ".screenrc".source = dotfiles/screenrc; |
| 97 | |
| 98 | # # You can also set the file content immediately. |
| 99 | # ".gradle/gradle.properties".text = '' |
| 100 | # org.gradle.console=verbose |
| 101 | # org.gradle.daemon.idletimeout=3600000 |
| 102 | # ''; |
| 103 | }; |
| 104 | |
| 105 | # You can also manage environment variables but you will have to manually |
| 106 | # source |
| 107 | # |
| 108 | # ~/.nix-profile/etc/profile.d/hm-session-vars.sh |
| 109 | # |
| 110 | # or |
| 111 | # |
| 112 | # /etc/profiles/per-user/ryan/etc/profile.d/hm-session-vars.sh |
| 113 | # |
| 114 | # if you don't want to manage your shell through Home Manager. |
| 115 | home.sessionVariables = { |
| 116 | # EDITOR = "emacs"; |
| 117 | }; |
| 118 | |
| 119 | # Let Home Manager install and manage itself. |
| 120 | programs.home-manager.enable = true; |
| 121 | } |