Skip to content

Commit

Permalink
feat(modules/home): spotify and comma
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Jun 13, 2024
1 parent 3858a0c commit 529e737
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 1 deletion.
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

stylix.url = "github:danth/stylix";
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.inputs.home-manager.follows = "home-manager";
Expand Down
11 changes: 11 additions & 0 deletions modules/home/comma/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
inputs,
pkgs,
...
}: let
inherit (inputs.nix-index-database.hmModules) nix-index;
in {
imports = [nix-index];

home.packages = with pkgs; [comma];
}
2 changes: 2 additions & 0 deletions modules/home/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
comma = import ./comma;
dev = import ./dev;
firefox = import ./firefox;
fish = import ./fish;
Expand All @@ -12,6 +13,7 @@
kitty = import ./kitty;
opencomposite = import ./opencomposite;
starship = import ./starship;
spotify = import ./spotify;
steam = import ./steam;
stylix = import ./stylix;
vesktop = import ./vesktop;
Expand Down
3 changes: 2 additions & 1 deletion modules/home/helix/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{pkgs, ...} @ args: {
programs.helix = {
enable = true;
defaultEditor = true;

languages = import ./languages.nix args;
settings = import ./settings.nix args;

defaultEditor = true;
extraPackages = with pkgs;
[
buf-language-server
Expand Down
28 changes: 28 additions & 0 deletions modules/home/helix/settings.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{...}: {
editor = {
scrolloff = 8;
line-number = "relative";
bufferline = "multiple";

cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};

statusline = {
left = ["mode" "spinner" "diagnostics"];
center = ["file-name" "read-only-indicator" "file-modification-indicator"];
right = ["version-control" "selections" "register" "position" "position-percentage" "file-encoding"];
};

lsp = {
display-messages = true;
display-inlay-hints = true;
};

file-picker.hidden = false;
indent-guides.render = true;
soft-wrap.enable = true;
};
}
10 changes: 10 additions & 0 deletions modules/home/spotify/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{pkgs, ...}: {
home = {
packages = with pkgs; [spotify-player];

persistence."/persist/home/bddvlpr".directories = [
".config/spotify-player"
".cache/spotify-player"
];
};
}
1 change: 1 addition & 0 deletions modules/home/stylix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ in {
imports = [stylix];

stylix = {
enable = true;
image = ./wallpaper.jpeg;

polarity = "dark";
Expand Down

0 comments on commit 529e737

Please sign in to comment.