diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-25 22:03:08 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-25 22:07:05 -0700 |
| commit | 45b550f25799231ab4a93a368ba911da02c743ee (patch) | |
| tree | 647297e0c1d50db5c419b9018836fed362f21a63 /hosts/phoenix/home.nix | |
| parent | 82b6a8d9f1814c74765681381afb61b1d569f9b7 (diff) | |
phoenix: home: setup home-manager for c
Diffstat (limited to 'hosts/phoenix/home.nix')
| -rw-r--r-- | hosts/phoenix/home.nix | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/hosts/phoenix/home.nix b/hosts/phoenix/home.nix new file mode 100644 index 0000000..f4911d8 --- /dev/null +++ b/hosts/phoenix/home.nix @@ -0,0 +1,105 @@ +{ lib, pkgs, inputs, config, ...}: + +{ + imports = [ + inputs.impermanence.nixosModules.home-manager.impermanence + + ../../home + ]; + + theme = import ../../theme.nix; + + home.persistence."/persist/home" = { + allowOther = true; + + directories = [ + "Downloads" + "Documents" + "Pictures" + "Videos" + "Music" + "Games" + "Persist" + + "code" + + ".gnupg" + ".ssh" + + ".local/bin" + ".local/share/applications" + + ".mozilla" + + ".config/discord" + ".config/Vencord" + ".config/vesktop" + + ".config/Obsidian" + + ".config/cmus" + + ".config/fcitx" + ".config/fcitx5" + + { + directory = ".local/share/Steam"; + method = "symlink"; + } + + ".config/qBittorrent" + ".local/share/qBittorrent" + ".cache/qBittorrent" + + ".local/share/lutris" + ".local/share/PrismLauncher" + ]; + + files = [ + ".Xresources" + ]; + }; + + programs = { + feh.enable = true; + btop.enable = true; + tmux.enable = true; + }; + + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "discord" + "obsidian" + ]; + + home.packages = with pkgs; [ + (writeShellScriptBin "switch-theme" '' + #!/usr/bin/env bash + + cd /etc/nixos + + rm theme.nix + ln -s ./themes/$1.nix theme.nix + + sudo nixos-rebuild switch --flake /etc/nixos + + i3-msg restart + '') + + pfetch + + kdePackages.breeze + + qbittorrent + jellyfin-media-player + + gimp + + obsidian + prismlauncher + + cloc + cmus + ]; + + home.stateVersion = "23.11"; +} |