aboutsummaryrefslogtreecommitdiff
path: root/home-manager/home.nix
blob: 9f468a6f0226d68ebaf341f74fea1b939af09c2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{ pkgs, lib, inputs, ... }:
{
    imports = [
        ./shells/bash.nix
        ./emacs
        #./hyprland
        ./i3
        ./YATwm
        ./kitty
        inputs.spicetify-nix.homeManagerModules.default
        inputs.nixcord.homeModules.nixcord
        #inputs.stylix.homeManagerModules.stylix
    ];

    home = {
        stateVersion = "24.05";
        username = "boss";
        homeDirectory = "/home/boss";
    };
    
    # The home.packages option allows you to install Nix packages into your
    # environment.
    # nixpkgs.config.allowUnfree = true;
    home.packages = with pkgs; [
        feh
        pass
        spotify
        playerctl
        libqalculate
        libreoffice
        logisim-evolution
        thunderbird
        xdotool
        discord
        # (discord.override {
        #     withOpenASAR = true;
        #     withVencord = true;
        # })
        # vesktop
        mumble
        gimp
        bottom
        xfce.thunar
        mpv
        man-pages
        man-pages-posix
        # (inputs.plover-flake.packages.${system}.plover.with-plugins (ps: with ps;[
        #     plover-dict-commands
        #     plover-console-ui
        #     plover-controller
        # ]))
        pavucontrol
        unzip
        appimage-run
        lunar-client
        libnotify
        xclip
        (python3.withPackages (ps: with ps; [
            python-lsp-server
        ]))
        alacritty
        nyxt
        wireguard-tools
        brightnessctl
        inputs.nil.packages.${system}.default
        #inputs.polymc.packages.${system}.default
        jre8
        #inputs.zen-browser.packages."${system}".default
        piper
        qbittorrent
        sbcl
        superTuxKart
        typst
        sops
        #adom
    ];
    
    nix = {
        #package = pkgs.nix;
        settings.experimental-features = [ "nix-command" "flakes" ];
    };
    
    home.sessionVariables = {
        EDITOR = "emacsclient -c";
        MAKEFLAGS = " -j16 ";
        MOZ_ENABLE_WAYLAND = 1;
    };

    
    programs.home-manager.enable = true;

    programs.direnv = {
        enable = true;
        enableBashIntegration = true;
        nix-direnv.enable = true;
    };

    services.gpg-agent.enable = true;

    services.dunst = {
        enable = true;
        settings = {
            global = {
                follow = "keyboard";
                frame_width = 0;
            };
        };
    };

    programs.obs-studio = {
        enable = true;

        # optional Nvidia hardware acceleration
        package = (
            pkgs.obs-studio.override {
                cudaSupport = true;
            }
        );

        plugins = with pkgs.obs-studio-plugins; [
            obs-pipewire-audio-capture
            input-overlay
        ];
    };
    

    programs.firefox.enable = true;

    # programs.nixcord = {
    #     enable = true;
    # };
    

    stylix.targets.spicetify.enable = false;
    stylix.targets.firefox.profileNames = [ "default"];
    # stylix.targets.nixcord.enable = true;
    
    programs.spicetify =
        let
            spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
        in
          {
              enable = false;
              enabledExtensions = with spicePkgs.extensions; [
                  fullAppDisplay
                  powerBar
                  addToQueueTop
              ];
              enabledCustomApps = with spicePkgs.apps; [
                  newReleases
                  lyricsPlus
                  betterLibrary
              ];
              theme = spicePkgs.themes.nightlight;
          };
    
    
    xsession.windowManager.command = lib.mkForce "$@";
}