switching to helix once again
This commit is contained in:
parent
cff5b95c18
commit
ba3b827e73
7 changed files with 41 additions and 31 deletions
30
flake.nix
30
flake.nix
|
@ -1,22 +1,18 @@
|
||||||
{
|
{
|
||||||
description = "My NixOS config flake";
|
description = "My NixOS config flake";
|
||||||
outputs = inputs:
|
outputs = inputs:
|
||||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} (
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} ({withSystem, ...}: {
|
||||||
{withSystem, ...}: {
|
systems = ["x86_64-linux"];
|
||||||
systems = [
|
imports = [
|
||||||
"x86_64-linux"
|
inputs.treefmt-nix.flakeModule
|
||||||
];
|
./parts/shell.nix
|
||||||
imports = [
|
./parts/fmt.nix
|
||||||
inputs.treefmt-nix.flakeModule
|
];
|
||||||
./parts/shell.nix
|
|
||||||
./parts/fmt.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
nixosConfigurations = import ./hosts {inherit inputs withSystem;};
|
nixosConfigurations = import ./hosts {inherit inputs withSystem;};
|
||||||
};
|
};
|
||||||
}
|
});
|
||||||
);
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# what am I doing to this config help
|
# what am I doing to this config help
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
@ -31,7 +27,6 @@
|
||||||
nixpak = {
|
nixpak = {
|
||||||
url = "github:nixpak/nixpak";
|
url = "github:nixpak/nixpak";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -77,9 +72,8 @@
|
||||||
url = "github:notashelf/nvf";
|
url = "github:notashelf/nvf";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
|
||||||
|
|
||||||
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
|
|
||||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,10 @@ in {
|
||||||
pidgin
|
pidgin
|
||||||
playerctl
|
playerctl
|
||||||
polkit
|
polkit
|
||||||
|
prismlauncher
|
||||||
python3
|
python3
|
||||||
qbittorrent
|
qbittorrent
|
||||||
|
r2modman
|
||||||
ripgrep
|
ripgrep
|
||||||
rnote
|
rnote
|
||||||
scc
|
scc
|
||||||
|
|
|
@ -11,5 +11,6 @@ _: {
|
||||||
./styling
|
./styling
|
||||||
./options
|
./options
|
||||||
./system/nix/module.nix
|
./system/nix/module.nix
|
||||||
|
./system
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,6 @@ in {
|
||||||
};
|
};
|
||||||
keys.normal = {
|
keys.normal = {
|
||||||
C-g = [":new" ":insert-output lazygit" ":buffer-close!" ":redraw"];
|
C-g = [":new" ":insert-output lazygit" ":buffer-close!" ":redraw"];
|
||||||
C-t = [":new" ":insert-output fish" ":buffer-close!" ":redraw"];
|
|
||||||
esc = ["collapse_selection" "keep_primary_selection"];
|
esc = ["collapse_selection" "keep_primary_selection"];
|
||||||
A-H = "goto_previous_buffer";
|
A-H = "goto_previous_buffer";
|
||||||
A-L = "goto_next_buffer";
|
A-L = "goto_next_buffer";
|
||||||
|
@ -35,7 +34,8 @@ in {
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter.command = "${pkgs.nixfmt-classic}/bin/nixfmt";
|
formatter.command = "${pkgs.alejandra}/bin/alejandra";
|
||||||
|
language-servers = ["${pkgs.nil}/bin/nil"];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
5
modules/system/default.nix
Normal file
5
modules/system/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./keyboard.nix
|
||||||
|
];
|
||||||
|
}
|
8
modules/system/keyboard.nix
Normal file
8
modules/system/keyboard.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
services.xserver = {
|
||||||
|
layout = "de,us";
|
||||||
|
xkbVariant = ",cmk_ed_dh";
|
||||||
|
xkbModel = ",pc105awide";
|
||||||
|
xkbOptions = ",misc:extend,lv5:caps_switch_lock,compose:menu";
|
||||||
|
};
|
||||||
|
}
|
|
@ -20,11 +20,11 @@
|
||||||
;
|
;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.hyprland = {
|
# programs.hyprland = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
inherit (cfg) package;
|
# inherit (cfg) package;
|
||||||
portalPackage = inputs'.hyprland.packages.xdg-desktop-portal-hyprland;
|
# portalPackage = inputs'.hyprland.packages.xdg-desktop-portal-hyprland;
|
||||||
};
|
# };
|
||||||
# xdg Portal
|
# xdg Portal
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -124,16 +124,16 @@ in {
|
||||||
];
|
];
|
||||||
# Input settings
|
# Input settings
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "de";
|
kb_layout = "de,us";
|
||||||
kb_variant = "";
|
kb_variant = ",cmk_ed_dh";
|
||||||
kb_model = "";
|
kb_model = ",pc105awide";
|
||||||
kb_options = "";
|
kb_options = "grp:alt_shift_toggle,misc:extend,lv5:caps_switch_lock,compose:menu";
|
||||||
kb_rules = "";
|
kb_rules = ",evdev";
|
||||||
|
|
||||||
follow_mouse = true;
|
follow_mouse = true;
|
||||||
|
|
||||||
repeat_rate = 50;
|
repeat_rate = 50;
|
||||||
repeat_delay = 250;
|
repeat_delay = 200;
|
||||||
|
|
||||||
touchpad = {
|
touchpad = {
|
||||||
disable_while_typing = true;
|
disable_while_typing = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue