aboutsummaryrefslogtreecommitdiff
path: root/hosts/phoenix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-07-25 22:03:08 -0700
committerCaroline Larimore <caroline@larimo.re>2024-07-25 22:07:05 -0700
commit45b550f25799231ab4a93a368ba911da02c743ee (patch)
tree647297e0c1d50db5c419b9018836fed362f21a63 /hosts/phoenix
parent82b6a8d9f1814c74765681381afb61b1d569f9b7 (diff)
phoenix: home: setup home-manager for c
Diffstat (limited to 'hosts/phoenix')
-rw-r--r--hosts/phoenix/configuration.nix11
-rw-r--r--hosts/phoenix/home.nix105
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";
+}