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

9672616f431c8c4161238fe7ad1e2b4cf3040320 · 3.0 KB · 96 lines raw

1 { config, pkgs, ... }:
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 = "22.11"; # Please read the comment before changing.
17
18 # Enable nix flakes
19 nix = {
20 package = pkgs.nix;
21 settings.experimental-features = [ "nix-command" "flakes" ];
22 };
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
30 # The home.packages option allows you to install Nix packages into your
31 # environment.
32 home.packages = with pkgs; [
33 # # Adds the 'hello' command to your environment. It prints a friendly
34 # # "Hello, world!" when run.
35 # pkgs.hello
36 yt-dlp
37 #pass
38 rustup
39 zoxide
40 nodePackages.pnpm
41 gcc
42 pkg-config
43 wttrbar
44 swww
45 wl-clip-persist
46 gifski
47 waypaper
48 gdu
49 spotify-player
50
51 # # It is sometimes useful to fine-tune packages, for example, by applying
52 # # overrides. You can do that directly here, just don't forget the
53 # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
54 # # fonts?
55 # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
56
57 # # You can also create simple shell scripts directly inside your
58 # # configuration. For example, this adds a command 'my-hello' to your
59 # # environment:
60 # (pkgs.writeShellScriptBin "my-hello" ''
61 # echo "Hello, ${config.home.username}!"
62 # '')
63 ];
64
65 # Home Manager is pretty good at managing dotfiles. The primary way to manage
66 # plain files is through 'home.file'.
67 home.file = {
68 # # Building this configuration will create a copy of 'dotfiles/screenrc' in
69 # # the Nix store. Activating the configuration will then make '~/.screenrc' a
70 # # symlink to the Nix store copy.
71 # ".screenrc".source = dotfiles/screenrc;
72
73 # # You can also set the file content immediately.
74 # ".gradle/gradle.properties".text = ''
75 # org.gradle.console=verbose
76 # org.gradle.daemon.idletimeout=3600000
77 # '';
78 };
79
80 # You can also manage environment variables but you will have to manually
81 # source
82 #
83 # ~/.nix-profile/etc/profile.d/hm-session-vars.sh
84 #
85 # or
86 #
87 # /etc/profiles/per-user/ryan/etc/profile.d/hm-session-vars.sh
88 #
89 # if you don't want to manage your shell through Home Manager.
90 home.sessionVariables = {
91 # EDITOR = "emacs";
92 };
93
94 # Let Home Manager install and manage itself.
95 programs.home-manager.enable = true;
96 }