diff options
Diffstat (limited to 'hosts/phoenix')
| -rw-r--r-- | hosts/phoenix/configuration.nix | 11 | ||||
| -rw-r--r-- | hosts/phoenix/home.nix | 105 |
2 files changed, 115 insertions, 1 deletions
diff --git a/hosts/phoenix/configuration.nix b/hosts/phoenix/configuration.nix index 18edb4c..f542ba4 100644 --- a/hosts/phoenix/configuration.nix +++ b/hosts/phoenix/configuration.nix @@ -46,8 +46,15 @@ }; }; + home-manager = { + extraSpecialArgs = { inherit inputs; }; + users = { + "c" = import ./home.nix; + }; + }; + roles = { - + desktop.enable = true; }; programs = { @@ -55,6 +62,8 @@ enable = true; enableSSHSupport = true; }; + + dconf.enable = true; }; services = { 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"; +} |