1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00

helix: use nixd

This commit is contained in:
RGBCube 2025-07-21 18:19:43 +03:00
parent 4bd1ec53af
commit cb216d39f1
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
10 changed files with 27 additions and 23 deletions

2
.gitignore vendored
View file

@ -2,8 +2,6 @@
!.gitignore !.gitignore
!docs/
!hosts/ !hosts/
!hosts/**/ !hosts/**/

View file

@ -1,7 +1,8 @@
lib: lib.nixosSystem' ({ config, keys, lib, ... }: let lib: lib.nixosSystem' ({ config, keys, lib, ... }: let
inherit (lib) collectNix remove; inherit (lib) collectNix remove;
in { in {
imports = collectNix ./. |> remove ./default.nix; imports = collectNix ./.
|> remove ./default.nix;
secrets.id.file = ./id.age; secrets.id.file = ./id.age;
services.openssh.hostKeys = [{ services.openssh.hostKeys = [{

View file

@ -1,7 +1,8 @@
lib: lib.nixosSystem' ({ config, keys, lib, ... }: let lib: lib.nixosSystem' ({ config, keys, lib, ... }: let
inherit (lib) collectNix remove; inherit (lib) collectNix remove;
in { in {
imports = collectNix ./. |> remove ./default.nix; imports = collectNix ./.
|> remove ./default.nix;
secrets.id.file = ./id.age; secrets.id.file = ./id.age;
services.openssh.hostKeys = [{ services.openssh.hostKeys = [{

View file

@ -1,7 +1,8 @@
lib: lib.nixosSystem' ({ config, keys, lib, ... }: let lib: lib.nixosSystem' ({ config, keys, lib, ... }: let
inherit (lib) collectNix remove; inherit (lib) collectNix remove;
in { in {
imports = collectNix ./. |> remove ./default.nix; imports = collectNix ./.
|> remove ./default.nix;
secrets.id.file = ./id.age; secrets.id.file = ./id.age;
services.openssh.hostKeys = [{ services.openssh.hostKeys = [{

View file

@ -1,7 +1,8 @@
lib: lib.darwinSystem' ({ lib, ... }: let lib: lib.darwinSystem' ({ config, lib, ... }: let
inherit (lib) collectNix remove; inherit (lib) collectNix remove;
in { in {
imports = collectNix ./. |> remove ./default.nix; imports = collectNix ./.
|> remove ./default.nix;
type = "desktop"; type = "desktop";
@ -14,7 +15,7 @@ in {
home-manager.users.pala.home = { home-manager.users.pala.home = {
stateVersion = "25.05"; stateVersion = "25.05";
homeDirectory = "/Users/pala"; homeDirectory = config.users.users.pala.home;
}; };
system.stateVersion = 5; system.stateVersion = 5;

View file

@ -154,7 +154,7 @@ in {
# NIX # NIX
nixfmt-rfc-style nixfmt-rfc-style
nil nixd
# PYTHON # PYTHON
basedpyright basedpyright

View file

@ -35,18 +35,6 @@ in merge <| mkIf config.isDesktop {
}; };
home-manager.sharedModules = [{ home-manager.sharedModules = [{
xdg.configFile."xkb/symbols/tr-swapped-i".text = ''
default partial
xkb_symbols "basic" {
include "tr(basic)"
name[Group1]="Turkish (i and ı swapped)";
key <AC11> { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC", [ idotless, Iabovedot, paragraph , none ]};
key <AD08> { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC", [ i , I , apostrophe, dead_caron ]};
};
'';
wayland.windowManager.hyprland = enabled { wayland.windowManager.hyprland = enabled {
systemd = enabled { systemd = enabled {
enableXdgAutostart = true; enableXdgAutostart = true;

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: let { config, lib, pkgs, ... }: let
inherit (lib) const genAttrs merge mkIf; inherit (lib) const genAttrs merge mkIf;
in merge { in merge {
console.keyMap = pkgs.writeText "trq-swapped-i.map" '' console.keyMap = pkgs.writeText "trq-swapped-i.map" /* hs */ ''
include "${pkgs.kbd}/share/keymaps/i386/qwerty/trq.map" include "${pkgs.kbd}/share/keymaps/i386/qwerty/trq.map"
keycode 23 = i keycode 23 = i
@ -11,6 +11,20 @@ in merge {
keycode 40 = +dotlessi +Idotabove keycode 40 = +dotlessi +Idotabove
''; '';
home-manager.sharedModules = [{
xdg.configFile."xkb/symbols/tr-swapped-i".text = /* rs */ ''
default partial
xkb_symbols "basic" {
include "tr(basic)"
name[Group1]="Turkish (i and ı swapped)";
key <AC11> { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC", [ idotless, Iabovedot, paragraph , none ]};
key <AD08> { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC", [ i , I , apostrophe, dead_caron ]};
};
'';
}];
i18n.defaultLocale = "C.UTF-8"; i18n.defaultLocale = "C.UTF-8";
} <| mkIf config.isDesktop { } <| mkIf config.isDesktop {
i18n.extraLocaleSettings = genAttrs [ i18n.extraLocaleSettings = genAttrs [