swap to helix + reformat

This commit is contained in:
serenity-F 2026-08-30 21:57:18 +10:00
parent 11962af1a0
commit 286f58b614
No known key found for this signature in database
5 changed files with 70 additions and 20 deletions

View file

@ -0,0 +1,49 @@
{ self, inputs, ... }: {
flake.modules.homeManager.helix = {
programs.helix = {
enable = true; # enables helix
settings = {
# cursor settings
editor.cursor-shape = {
normal = "underline";
insert = "bar";
select = "block";
};
# declare theme to use
theme = "onedarker_transparent";
};
# list of themes
themes = {
# modified theme
onedarker_transparent = {
"inherits" = "onedarker";
"ui.background" = { };
};
};
# lsp settings
languages = {
# nix
language = [
{
name = "nix";
auto-format = true;
formatter.command = lib.getExe pkgs.nxfmt;
}
];
};
};
};
}

View file

@ -1,13 +0,0 @@
{ self, inputs, ... }: {
perSystem = { pkgs, ... }: {
packages.myYazi = inputs.wrapper-modules.wrappers.yazi.wrap {
settings = {
foo = bar;
};
};
};
}

View file

@ -1,7 +1,13 @@
{
# misc flake-parts configuration
config = {
# uarchs to build for
systems = [
"x86_64-linux"
];
};
}

View file

@ -1,6 +1,9 @@
{ inputs, ... }:
{
# loads home manager modules
imports = [
inputs.home-manager.flakeModules.home-manager
];
}

View file

@ -1,30 +1,35 @@
{ self, lib, ... }:
# default configuration shared by all hosts
{
flake.nixosModules.coreConfig = { pkgs, ... }: {
# other modules to load
imports = [
self.nixosModules.audioConfig
self.nixosModules.nixConfig
self.nixosModules.corePackages
];
documentation.dev.enable = true;
# compresses half the ram for use as swap
zramSwap.enable = true;
# locale settings
i18n = {
defaultLocale = "en_AU.UTF-8";
# saves space
supportedLocales = [
"en_AU.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
];
};
# meanjin time
time.timeZone = lib.mkDefault "Austrlia/Brisbane";
# don't touch this
system.stateVersion = lib.mkDefault "24.11";
documentation.dev.enable = true;
time.timeZone = lib.mkDefault "Australia/Brisbane";
# compresses half the ram for use as swap
zramSwap.enable = true;
};
}