moar -> moor
This commit is contained in:
parent
3df730a55a
commit
6002b09ca6
7 changed files with 66 additions and 39 deletions
|
|
@ -121,6 +121,10 @@
|
||||||
networking.hostName = x;
|
networking.hostName = x;
|
||||||
imports = modules ++ [ (./instances/${x}) ];
|
imports = modules ++ [ (./instances/${x}) ];
|
||||||
_module.args.otherNodes = lib.filterAttrs (n: v: n != x) nodes;
|
_module.args.otherNodes = lib.filterAttrs (n: v: n != x) nodes;
|
||||||
|
deployment.privilegeEscalationCommand = [
|
||||||
|
"run0"
|
||||||
|
"--unit=colmena-apply"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}) n;
|
}) n;
|
||||||
in
|
in
|
||||||
|
|
@ -134,10 +138,6 @@
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
nixpkgs = genPkgs "x86_64-linux";
|
nixpkgs = genPkgs "x86_64-linux";
|
||||||
};
|
};
|
||||||
deployment.privilegeEscalationCommand = [
|
|
||||||
"run0"
|
|
||||||
"--unit=colmena-apply"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
(importConfigs [
|
(importConfigs [
|
||||||
"ds9"
|
"ds9"
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,14 @@ in
|
||||||
{
|
{
|
||||||
options.xyno.git.enable = lib.mkEnableOption "xynos git config";
|
options.xyno.git.enable = lib.mkEnableOption "xynos git config";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.difftastic.git.enable = true;
|
||||||
|
programs.difftastic.enable = true;
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
difftastic.enable = true;
|
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
|
|
||||||
# Default configs
|
# Default configs
|
||||||
extraConfig = {
|
settings = {
|
||||||
commit.gpgSign = true;
|
commit.gpgSign = true;
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
cfg = config.xyno.desktop.fcitx5;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.xyno.desktop.fcitx5.enable = lib.mkEnableOption "enable fcitx5 input daemon thing";
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
i18n.inputMethod = {
|
|
||||||
type = "fcitx5";
|
|
||||||
enable = true;
|
|
||||||
fcitx5.addons = with pkgs; [
|
|
||||||
fcitx5-table-other
|
|
||||||
];
|
|
||||||
fcitx5.waylandFrontend = true;
|
|
||||||
fcitx5.quickPhrase = {
|
|
||||||
":pleading:" = "🥺";
|
|
||||||
":pointing_right:" = "👉";
|
|
||||||
":pointing_left:" = "👈";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
52
modules/desktop/ibus.nix
Normal file
52
modules/desktop/ibus.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.xyno.desktop.ibus;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.xyno.desktop.ibus.enable = mkEnableOption "enable ibus input daemon thing";
|
||||||
|
options.xyno.desktop.ibus.wantedBy = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "niri.service";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.libinput.enable = true;
|
||||||
|
|
||||||
|
# just... enable ibus as input method and maybe now we have consistent unicode input everywhere
|
||||||
|
# fuck qt tbh
|
||||||
|
i18n.inputMethod = {
|
||||||
|
enable = true;
|
||||||
|
type = "ibus";
|
||||||
|
};
|
||||||
|
systemd.user.services.ibus =
|
||||||
|
let
|
||||||
|
ibusPackage = config.i18n.inputMethod.package;
|
||||||
|
in
|
||||||
|
assert hasPrefix "ibus-with-plugins" ibusPackage.name;
|
||||||
|
{
|
||||||
|
# panel is weird...
|
||||||
|
# default is ${ibusPackage}/libexec/ibus-ui-gtk3 which works but sends a notification that it's misconfigured
|
||||||
|
# wayland support can be enabled with --enable-wayland-im but that segfaults (possible due to zwp_input_method_v1 not being available?)
|
||||||
|
script = ''
|
||||||
|
exec ${ibusPackage}/bin/ibus-daemon --xim --replace --panel '${ibusPackage}/libexec/ibus-ui-gtk3'
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "dbus";
|
||||||
|
BusName = "org.freedesktop.IBus";
|
||||||
|
Restart = "on-abnormal";
|
||||||
|
};
|
||||||
|
unitConfig = {
|
||||||
|
CollectMode = "inactive-or-failed";
|
||||||
|
};
|
||||||
|
# yeah we hardcoding this now, fuck it
|
||||||
|
wantedBy = [ cfg.wantedBy ];
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
./desktop/audio.nix
|
./desktop/audio.nix
|
||||||
./desktop/common-programs.nix
|
./desktop/common-programs.nix
|
||||||
./desktop/easyeffects.nix
|
./desktop/easyeffects.nix
|
||||||
./desktop/fcitx5.nix
|
|
||||||
./desktop/foot.nix
|
./desktop/foot.nix
|
||||||
./desktop/fuzzel.nix
|
./desktop/fuzzel.nix
|
||||||
|
./desktop/ibus.nix
|
||||||
./desktop/mako.nix
|
./desktop/mako.nix
|
||||||
./desktop/niri.nix
|
./desktop/niri.nix
|
||||||
./desktop/shikane.nix
|
./desktop/shikane.nix
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
./presets/common.nix
|
./presets/common.nix
|
||||||
./presets/development.nix
|
./presets/development.nix
|
||||||
./presets/gui.nix
|
./presets/gui.nix
|
||||||
./presets/server.nix
|
|
||||||
./presets/home-manager.nix
|
./presets/home-manager.nix
|
||||||
|
./presets/server.nix
|
||||||
./services/authentik
|
./services/authentik
|
||||||
./services/caddy
|
./services/caddy
|
||||||
./services/monitoring.nix
|
./services/monitoring.nix
|
||||||
|
|
@ -30,8 +30,8 @@
|
||||||
./system/impermanence.nix
|
./system/impermanence.nix
|
||||||
./system/meta.nix
|
./system/meta.nix
|
||||||
./system/user.nix
|
./system/user.nix
|
||||||
|
./to-upstream/fido2-hid-bridge.nix
|
||||||
./user-services/khal.nix
|
./user-services/khal.nix
|
||||||
./user-services/syncthing.nix
|
./user-services/syncthing.nix
|
||||||
./to-upstream/fido2-hid-bridge.nix
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ in
|
||||||
imagemagick
|
imagemagick
|
||||||
jq
|
jq
|
||||||
lm_sensors
|
lm_sensors
|
||||||
moar
|
moor
|
||||||
neofetch
|
neofetch
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
poppler
|
poppler
|
||||||
|
|
@ -145,7 +145,7 @@ in
|
||||||
programs.mosh.enable = true;
|
programs.mosh.enable = true;
|
||||||
environment.variables.EDITOR = "hx";
|
environment.variables.EDITOR = "hx";
|
||||||
environment.variables.VISUAL = "hx";
|
environment.variables.VISUAL = "hx";
|
||||||
environment.variables.PAGER = "moar";
|
environment.variables.PAGER = "moor";
|
||||||
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
l = "ls -alh";
|
l = "ls -alh";
|
||||||
|
|
@ -161,7 +161,7 @@ in
|
||||||
p = "cd ~/proj";
|
p = "cd ~/proj";
|
||||||
ytl = ''yt-dlp -f "bv*+mergeall[vcodec=none]" --audio-multistreams'';
|
ytl = ''yt-dlp -f "bv*+mergeall[vcodec=none]" --audio-multistreams'';
|
||||||
sudo = "run0";
|
sudo = "run0";
|
||||||
less = "moar";
|
less = "moor";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ in
|
||||||
pkgs.yubikey-personalization
|
pkgs.yubikey-personalization
|
||||||
];
|
];
|
||||||
xyno.desktop.niri.enable = true;
|
xyno.desktop.niri.enable = true;
|
||||||
|
xyno.desktop.ibus.enable = true;
|
||||||
xyno.desktop.audio.enable = mkDefault true;
|
xyno.desktop.audio.enable = mkDefault true;
|
||||||
xyno.user-services.khal.enable = true;
|
xyno.user-services.khal.enable = true;
|
||||||
boot.kernelPackages = mkDefault pkgs.linuxPackages_zen;
|
boot.kernelPackages = mkDefault pkgs.linuxPackages_zen;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue