diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-07 22:57:54 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:49 -0700 |
| commit | f94a9071e7ccad349af26add593e855cd9f88f32 (patch) | |
| tree | c72506f139d9747c487d180ada054eafc86c1be2 /roles/home/desktop/default.nix | |
| parent | e11a0658b3c47459767ba49ccfe319a2b8c73456 (diff) | |
migration: gtk theme
Diffstat (limited to 'roles/home/desktop/default.nix')
| -rw-r--r-- | roles/home/desktop/default.nix | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/roles/home/desktop/default.nix b/roles/home/desktop/default.nix deleted file mode 100644 index 8e411ba..0000000 --- a/roles/home/desktop/default.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ config, lib, pkgs, ... }: -with lib; - -let cfg = config.home.roles.desktop; in { - imports = [ - ./theme.nix - - ./i3.nix - ./picom.nix - ./polybar.nix - ./rofi.nix - ./kitty.nix - - ./gtk.nix - ./fcitx5.nix - - ./discord.nix - ./eww.nix - ./mpv.nix - ./flameshot.nix - ./fastfetch.nix - ./cmus.nix - ]; - - options.home.roles.desktop = { - enable = mkEnableOption "desktop home role"; - - discord = mkOption { - type = types.bool; - default = cfg.enable; - }; - - eww = mkOption { - type = types.bool; - default = cfg.enable; - }; - - mpv = mkOption { - type = types.bool; - default = cfg.enable; - }; - - screenshot = mkOption { - type = types.bool; - default = cfg.enable; - }; - - fetch = mkOption { - type = types.bool; - default = cfg.enable; - }; - - music = mkOption { - type = types.bool; - default = cfg.enable; - }; - }; - - config = mkIf cfg.enable { - gtk.enable = true; - - 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 path:/etc/nixos - - i3-msg restart - '') - ]; - }; - }; -} |