Skip to content

Commit

Permalink
refactor: nixvim
Browse files Browse the repository at this point in the history
  • Loading branch information
FredeHoey committed Feb 2, 2025
1 parent a6e5b08 commit 8b4363c
Show file tree
Hide file tree
Showing 9 changed files with 690 additions and 79 deletions.
5 changes: 4 additions & 1 deletion common/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
imports = [ inputs.home-manager.nixosModules.default ];

home-manager = {
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = {
inherit pkgs;
inherit (inputs) nixvim stylix;
};
users = { "bun" = import ../users/bun.nix; };
};

Expand Down
38 changes: 2 additions & 36 deletions common/desktop.nix
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
{ pkgs, inputs, ... }: {
{ pkgs, ... }: {

imports = [ ../modules/sway.nix inputs.stylix.nixosModules.stylix ];
imports = [ ../modules/sway.nix ];

fonts.packages = [ pkgs.nerd-fonts.iosevka ];

stylix = {
enable = true;
autoEnable = true;
image = ../assets/desktop.jpg;
polarity = "dark";
base16Scheme = "${pkgs.base16-schemes}/share/themes/kanagawa.yaml";

cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
};
fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};

sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};

monospace = {
package = pkgs.nerd-fonts.iosevka;
name = "Iosevka Nerd Font Mono";
};

emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
};

# Enable networking
networking.wireless.iwd.enable = true;
networking.firewall.enable = false;
Expand Down
Loading

0 comments on commit 8b4363c

Please sign in to comment.