fix flake on non-x86_64-linux
This commit is contained in:
parent
eb2692dff9
commit
e4c20f0163
3 changed files with 47 additions and 39 deletions
39
flake.in.nix
39
flake.in.nix
|
@ -39,29 +39,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {...} @ inputs:
|
outputs = {...} @ inputs:
|
||||||
with inputs; let
|
with inputs;
|
||||||
pkgs = import nixpkgs {inherit system;};
|
|
||||||
system = "x86_64-linux";
|
|
||||||
in
|
|
||||||
snowfall-lib.mkFlake {
|
snowfall-lib.mkFlake {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
formatter.${system} = treefmt-nix.lib.mkWrapper pkgs {
|
|
||||||
projectRootFile = "flake.nix";
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
alejandra.enable = true;
|
|
||||||
deadnix.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
overlays = [
|
overlays = [
|
||||||
snowfall-flake.overlays.default
|
snowfall-flake.overlays.default
|
||||||
|
|
||||||
(_final: _prev: {
|
|
||||||
nixSuper = nix-super.packages.${system}.default;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
channels-config = {
|
channels-config = {
|
||||||
|
@ -80,7 +64,25 @@
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
];
|
];
|
||||||
|
|
||||||
devShells.${system}.default = with pkgs;
|
outputs-builder = channels: {
|
||||||
|
overlays = [
|
||||||
|
(_final: _prev: {
|
||||||
|
nixSuper = nix-super.packages.default;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
formatter = treefmt-nix.lib.mkWrapper channels.nixpkgs {
|
||||||
|
projectRootFile = "flake.nix";
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
deadnix.enable = true;
|
||||||
|
stylua.enable = true;
|
||||||
|
taplo.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells.default = with channels.nixpkgs;
|
||||||
mkShellNoCC {
|
mkShellNoCC {
|
||||||
packages = [
|
packages = [
|
||||||
alejandra
|
alejandra
|
||||||
|
@ -92,4 +94,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
local c = wezterm.config_builder()
|
local c = wezterm.config_builder()
|
||||||
wezterm.on('user-var-changed', function(window, pane, name, value)
|
wezterm.on('user-var-changed', function(window, pane, name, value)
|
||||||
local overrides = window:get_config_overrides() or {}
|
local overrides = window:get_config_overrides() or {}
|
||||||
if name == "ZEN_MODE" then
|
if name == 'ZEN_MODE' then
|
||||||
local incremental = value:find("+")
|
local incremental = value:find('+')
|
||||||
local number_value = tonumber(value)
|
local number_value = tonumber(value)
|
||||||
if incremental ~= nil then
|
if incremental ~= nil then
|
||||||
while (number_value > 0) do
|
while number_value > 0 do
|
||||||
window:perform_action(wezterm.action.IncreaseFontSize, pane)
|
window:perform_action(wezterm.action.IncreaseFontSize, pane)
|
||||||
number_value = number_value - 1
|
number_value = number_value - 1
|
||||||
end
|
end
|
||||||
|
@ -22,13 +22,13 @@ wezterm.on('user-var-changed', function(window, pane, name, value)
|
||||||
window:set_config_overrides(overrides)
|
window:set_config_overrides(overrides)
|
||||||
end)
|
end)
|
||||||
wezterm.on('format-window-title', function(tab, pane, tabs, panes, config)
|
wezterm.on('format-window-title', function(tab, pane, tabs, panes, config)
|
||||||
local zoomed = ""
|
local zoomed = ''
|
||||||
|
|
||||||
if tab.active_pane.is_zoomed then
|
if tab.active_pane.is_zoomed then
|
||||||
zoomed = '[Z] '
|
zoomed = '[Z] '
|
||||||
end
|
end
|
||||||
|
|
||||||
local index = ""
|
local index = ''
|
||||||
|
|
||||||
if #tabs > 1 then
|
if #tabs > 1 then
|
||||||
index = string.format('[%d/%d] ', tab.tab_index + 1, #tabs)
|
index = string.format('[%d/%d] ', tab.tab_index + 1, #tabs)
|
||||||
|
@ -60,8 +60,8 @@ wezterm.plugin.require('https://github.com/nekowinston/wezterm-bar').apply_to_co
|
||||||
numerals = 'arabic',
|
numerals = 'arabic',
|
||||||
pane_count = 'subscript',
|
pane_count = 'subscript',
|
||||||
brackets = {
|
brackets = {
|
||||||
active = { "", ':' },
|
active = { '', ':' },
|
||||||
inactive = { "", ':' },
|
inactive = { '', ':' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
clock = {
|
clock = {
|
||||||
|
@ -86,23 +86,23 @@ local keybinds = {
|
||||||
{
|
{
|
||||||
key = 'l',
|
key = 'l',
|
||||||
mods = 'CTRL|SHIFT',
|
mods = 'CTRL|SHIFT',
|
||||||
action = act.ActivatePaneDirection 'Right',
|
action = act.ActivatePaneDirection('Right'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key = 'k',
|
key = 'k',
|
||||||
mods = 'CTRL|SHIFT',
|
mods = 'CTRL|SHIFT',
|
||||||
action = act.ActivatePaneDirection 'Up',
|
action = act.ActivatePaneDirection('Up'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key = 'j',
|
key = 'j',
|
||||||
mods = 'CTRL|SHIFT',
|
mods = 'CTRL|SHIFT',
|
||||||
action = act.ActivatePaneDirection 'Down',
|
action = act.ActivatePaneDirection('Down'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key = 't',
|
key = 't',
|
||||||
mods = 'CTRL|SHIFT',
|
mods = 'CTRL|SHIFT',
|
||||||
action = act.SpawnCommandInNewTab { cwd = wezterm.home_dir },
|
action = act.SpawnCommandInNewTab({ cwd = wezterm.home_dir }),
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
|
|
5
stylua.toml
Normal file
5
stylua.toml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
line_endings = "Unix"
|
||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
quote_style = "AutoPreferSingle"
|
||||||
|
call_parentheses = "Always"
|
Loading…
Add table
Reference in a new issue