refactor: Comment nix and hyprlang without spacing in between

This commit is contained in:
Ahmad Ansori Palembani 2024-07-24 10:59:51 +07:00
parent 5d6ab73544
commit acd513371b
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 9 additions and 9 deletions

View file

@ -189,7 +189,7 @@ env = __GL_GSYNC_ALLOWED,1
env = __GL_VRR_ALLOWED,1 env = __GL_VRR_ALLOWED,1
env = WLR_DRM_NO_ATOMIC,1 env = WLR_DRM_NO_ATOMIC,1
env = WLR_USE_LIBINPUT,1 env = WLR_USE_LIBINPUT,1
env = XWAYLAND_NO_GLAMOR,1 # with this you'll need to use gamescope for gaming #env = XWAYLAND_NO_GLAMOR,1 # with this you'll need to use gamescope for gaming
env = __GL_MaxFramesAllowed,1 env = __GL_MaxFramesAllowed,1
env = WLR_RENDERER_ALLOW_SOFTWARE,1 env = WLR_RENDERER_ALLOW_SOFTWARE,1

View file

@ -26,7 +26,7 @@
pkgs.htop-vim pkgs.htop-vim
python python
(pkgs.inkscape.override { python3 = python; }) (pkgs.inkscape.override { python3 = python; })
# (pkgs.poetry.override { python3 = python; }) #(pkgs.poetry.override { python3 = python; })
pkgs.fastfetch pkgs.fastfetch
pkgs.eza pkgs.eza
pkgs.lf pkgs.lf
@ -48,14 +48,14 @@
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
# nix.package = pkgs.nix; #nix.package = pkgs.nix;
# Necessary for using flakes on this system. # Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes"; nix.settings.experimental-features = "nix-command flakes";
# Create /etc/zshrc that loads the nix-darwin environment. # Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina programs.zsh.enable = true; # default shell on catalina
# programs.fish.enable = true; #programs.fish.enable = true;
# Set Git commit hash for darwin-version. # Set Git commit hash for darwin-version.
system.configurationRevision = vars.rev or null; system.configurationRevision = vars.rev or null;
@ -99,8 +99,8 @@
}; };
users.users.ziro = { users.users.ziro = {
name = "ziro"; name = vars.user;
home = "/Users/ziro"; home = "/Users/${vars.user}";
}; };
home-manager.users.ziro = { home-manager.users.ziro = {
home.stateVersion = "22.05"; home.stateVersion = "22.05";

View file

@ -16,6 +16,7 @@
outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager }: outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager }:
let let
vars = { vars = {
user = "ziro"; # TODO: Make it possible to setup multi-user
rev = self.rev or self.dirtyRev or null; rev = self.rev or self.dirtyRev or null;
}; };
in in

View file

@ -57,13 +57,12 @@ return {
}, },
init = function () init = function ()
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = { "nix" }, pattern = { "nix", "hyprlang" },
callback = function() callback = function()
vim.opt_local.commentstring = "# %s" vim.opt_local.commentstring = "#%s"
end, end,
group = generalSettingsGroup, group = generalSettingsGroup,
}) })
end, end,
}, },
{ {