build helix from main
This commit is contained in:
parent
d004d4b161
commit
dcce72e300
|
@ -17,9 +17,9 @@
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://hyprland.cachix.org"
|
"https://helix.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
|
trusted-public-keys = [ "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" ];
|
||||||
|
|
||||||
};
|
};
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
18
flake.nix
18
flake.nix
|
@ -6,22 +6,17 @@
|
||||||
supercolor.url = "github:zoe-bat/supercolor";
|
supercolor.url = "github:zoe-bat/supercolor";
|
||||||
kaokao.url = "github:zoe-bat/kaokao";
|
kaokao.url = "github:zoe-bat/kaokao";
|
||||||
i3layouts-rofi.url = "github:zoe-bat/i3layouts-rofi";
|
i3layouts-rofi.url = "github:zoe-bat/i3layouts-rofi";
|
||||||
|
hx.url = "github:helix-editor/helix";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs =
|
outputs = { self, nixpkgs
|
||||||
{ self
|
# , hyprland
|
||||||
, nixpkgs
|
, home-manager, supercolor, i3layouts-rofi, nixpkgs-unstable, kaokao, hx
|
||||||
# , hyprland
|
|
||||||
, home-manager
|
|
||||||
, supercolor
|
|
||||||
, i3layouts-rofi
|
|
||||||
, nixpkgs-unstable
|
|
||||||
, kaokao
|
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlay-unstable = final: prev: {
|
overlay-unstable = final: prev: {
|
||||||
unstable = import nixpkgs-unstable {
|
unstable = import nixpkgs-unstable {
|
||||||
|
@ -29,8 +24,7 @@
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
nixosConfigurations.bat = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.bat = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -1,52 +1,47 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, hx, ... }: {
|
||||||
enable = true;
|
home-manager.users.zoe.programs.helix = {
|
||||||
package = pkgs.unstable.helix;
|
enable = true;
|
||||||
settings = {
|
package = hx.packages.${pkgs.system}.default;
|
||||||
theme = "catppuccin_frappe";
|
settings = {
|
||||||
keys = {
|
theme = "catppuccin_frappe";
|
||||||
normal = {
|
keys = { normal = { }; };
|
||||||
w = ":w";
|
editor = {
|
||||||
q = ":q";
|
auto-completion = true;
|
||||||
|
auto-format = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
editor = {
|
languages = [
|
||||||
auto-completion = true;
|
{
|
||||||
auto-format = true;
|
name = "html";
|
||||||
};
|
language-server = { command = "html-languageserver"; };
|
||||||
|
formatter = {
|
||||||
|
command = "prettier";
|
||||||
|
args = [ "--parser" "html" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "scss";
|
||||||
|
language-server = { command = "vscode-css-language-server"; };
|
||||||
|
formatter = {
|
||||||
|
command = "prettier";
|
||||||
|
args = [ "--parser" "scss" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "css";
|
||||||
|
language-server = {
|
||||||
|
command = "vscode-css-language-server";
|
||||||
|
args = [ "--stdio" ];
|
||||||
|
};
|
||||||
|
formatter = {
|
||||||
|
command = "prettier";
|
||||||
|
args = [ "--parser" "scss" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "nix";
|
||||||
|
formatter = { command = "nixfmt"; };
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
languages = [
|
|
||||||
{
|
|
||||||
name = "html";
|
|
||||||
language-server = { command = "html-languageserver"; };
|
|
||||||
formatter = {
|
|
||||||
command = "prettier";
|
|
||||||
args = [ "--parser" "html" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "scss";
|
|
||||||
language-server = {
|
|
||||||
command = "vscode-css-language-server";
|
|
||||||
};
|
|
||||||
formatter = {
|
|
||||||
command = "prettier";
|
|
||||||
args = [ "--parser" "scss" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "css";
|
|
||||||
language-server = {
|
|
||||||
command = "vscode-css-language-server";
|
|
||||||
args = ["--stdio"];
|
|
||||||
};
|
|
||||||
formatter = {
|
|
||||||
command = "prettier";
|
|
||||||
args = [ "--parser" "scss" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "nix";
|
|
||||||
formatter = { command = "nixfmt"; };
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
10
home.nix
10
home.nix
|
@ -1,7 +1,6 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, hx, ... }:
|
||||||
let
|
let
|
||||||
nvimCustom = import ./nvim/settings.nix;
|
nvimCustom = import ./nvim/settings.nix;
|
||||||
helixCustom = import ./helix/settings.nix;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -12,6 +11,7 @@ in
|
||||||
./rofi/settings.nix
|
./rofi/settings.nix
|
||||||
./i3/i3status-rust.nix
|
./i3/i3status-rust.nix
|
||||||
./dunst/settings.nix
|
./dunst/settings.nix
|
||||||
|
./helix/settings.nix
|
||||||
# ./polybar/config.nix
|
# ./polybar/config.nix
|
||||||
# ./hyprland/settings.nix
|
# ./hyprland/settings.nix
|
||||||
# ./waybar/settings.nix
|
# ./waybar/settings.nix
|
||||||
|
@ -20,7 +20,6 @@ in
|
||||||
home-manager.users.zoe = {
|
home-manager.users.zoe = {
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
programs.neovim = nvimCustom pkgs;
|
programs.neovim = nvimCustom pkgs;
|
||||||
programs.helix = helixCustom pkgs;
|
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -32,10 +31,9 @@ in
|
||||||
|
|
||||||
programs.mpv.config = {
|
programs.mpv.config = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ytdl-format = "bestaudio*[height<=720][fps<=24]";
|
ytdl-format = "bestvideo[height<=?720]+bestaudio/best";
|
||||||
ytdl-path = "yt-dlp";
|
|
||||||
save-position-on-quit = true;
|
save-position-on-quit = true;
|
||||||
scripts = with pkgs.mpvScripts; [ mpris sponsorblock ];
|
scripts = with pkgs.mpvScripts; [ mpris sponsorblock uosc ];
|
||||||
};
|
};
|
||||||
programs.yt-dlp = {
|
programs.yt-dlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -102,13 +102,13 @@ in
|
||||||
};
|
};
|
||||||
brightness = {
|
brightness = {
|
||||||
Escape = "mode default";
|
Escape = "mode default";
|
||||||
k = "exec /etc/nixos/i3/brightness.py 100+";
|
k = "exec /etc/nixos/i3/brightness.py 10+";
|
||||||
j = "exec /etc/nixos/i3/brightness.py 100-";
|
j = "exec /etc/nixos/i3/brightness.py 10-";
|
||||||
};
|
};
|
||||||
media = {
|
media = {
|
||||||
Escape = "mode default";
|
Escape = "mode default";
|
||||||
j = "exec --no-startup-id python3 /etc/nixos/i3/volume.py 5%-";
|
j = "exec --no-startup-id python3 /etc/nixos/i3/volume.py 1%-";
|
||||||
k = "exec --no-startup-id python3 /etc/nixos/i3/volume.py 5%+";
|
k = "exec --no-startup-id python3 /etc/nixos/i3/volume.py 1%+";
|
||||||
m = "exec --no-startup-id amixer set Master toggle";
|
m = "exec --no-startup-id amixer set Master toggle";
|
||||||
n = "exec --no-startup-id amixer set Capture toggle";
|
n = "exec --no-startup-id amixer set Capture toggle";
|
||||||
p = "exec --no-startup-id playerctld shift";
|
p = "exec --no-startup-id playerctld shift";
|
||||||
|
|
4
user.nix
4
user.nix
|
@ -56,8 +56,9 @@ in {
|
||||||
|
|
||||||
# video
|
# video
|
||||||
syncplay
|
syncplay
|
||||||
unstable.mpv
|
mpv
|
||||||
unstable.yt-dlp
|
unstable.yt-dlp
|
||||||
|
unstable.youtube-dl
|
||||||
obs-studio
|
obs-studio
|
||||||
ffmpeg
|
ffmpeg
|
||||||
kdenlive
|
kdenlive
|
||||||
|
@ -101,6 +102,7 @@ in {
|
||||||
bat
|
bat
|
||||||
fd
|
fd
|
||||||
fzf
|
fzf
|
||||||
|
tmux
|
||||||
|
|
||||||
# window manager
|
# window manager
|
||||||
rofimoji
|
rofimoji
|
||||||
|
|
Loading…
Reference in New Issue