onedrive: init #18
3 changed files with 26 additions and 38 deletions
|
|
@ -3,8 +3,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
layout = pkgs.writeText "dashie" ''
|
layout = pkgs.writeText "enIntUmlaut" ''
|
||||||
xkb_symbols "dashie"
|
xkb_symbols "enIntUmlaut"
|
||||||
{
|
{
|
||||||
include "us(basic)"
|
include "us(basic)"
|
||||||
include "level3(ralt_switch)"
|
include "level3(ralt_switch)"
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = mkDashDefault [pkgs.xorg.xkbcomp];
|
environment.systemPackages = mkDashDefault [pkgs.xorg.xkbcomp];
|
||||||
services.xserver.xkb.extraLayouts.dashie = {
|
services.xserver.xkb.extraLayouts.enIntUmlaut = {
|
||||||
description = "US layout with 'umlaut'";
|
description = "US layout with 'umlaut'";
|
||||||
languages = ["eng"];
|
languages = ["eng"];
|
||||||
symbolsFile = "${layout}";
|
symbolsFile = "${layout}";
|
||||||
|
|
|
||||||
|
|
@ -34,27 +34,15 @@
|
||||||
description = "Additional git config";
|
description = "Additional git config";
|
||||||
};
|
};
|
||||||
sshConfig = lib.mkOption {
|
sshConfig = lib.mkOption {
|
||||||
default = ''
|
default = "";
|
||||||
|
example = ''
|
||||||
Host github.com
|
Host github.com
|
||||||
${
|
${
|
||||||
if (config ? sops.secrets && config.sops.secrets ? hub.path)
|
if (config ? sops.secrets && config.sops.secrets ? hub.path)
|
||||||
then "IdentityFile ${config.sops.secrets.hub.path}"
|
then "IdentityFile ${config.sops.secrets.hub.path}"
|
||||||
else ""
|
else ""
|
||||||
}
|
}
|
||||||
Host gitlab.com
|
|
||||||
${
|
|
||||||
if (config ? sops.secrets && config.sops.secrets ? lab.path)
|
|
||||||
then "IdentityFile ${config.sops.secrets.lab.path}"
|
|
||||||
else ""
|
|
||||||
}
|
|
||||||
Host dashie.org
|
|
||||||
${
|
|
||||||
if (config ? sops.secrets && config.sops.secrets ? dashie.path)
|
|
||||||
then "IdentityFile ${config.sops.secrets.dashie.path}"
|
|
||||||
else ""
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
example = "";
|
|
||||||
type = lib.types.lines;
|
type = lib.types.lines;
|
||||||
description = "ssh configuration (keys for git)";
|
description = "ssh configuration (keys for git)";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
}: {
|
}: {
|
||||||
options.mods.xkb = {
|
options.mods.xkb = {
|
||||||
layout = lib.mkOption {
|
layout = lib.mkOption {
|
||||||
default = "dashie";
|
default = "enIntUmlaut";
|
||||||
example = "us";
|
example = "us";
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Your layout";
|
description = "Your layout";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue