onedrive: init #18
6 changed files with 249 additions and 237 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}";
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
username = lib.mkOption {
|
username = lib.mkOption {
|
||||||
default = "dashie";
|
default = "DashNix";
|
||||||
example = "pingpang";
|
example = "pingpang";
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = ''
|
description = ''
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
./mime.nix
|
./mime.nix
|
||||||
./ncspot.nix
|
./ncspot.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
|
./onedrive.nix
|
||||||
./oxi
|
./oxi
|
||||||
./piper.nix
|
./piper.nix
|
||||||
./plymouth.nix
|
./plymouth.nix
|
||||||
|
|
|
||||||
|
|
@ -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)";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
23
modules/programs/onedrive.nix
Normal file
23
modules/programs/onedrive.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.mods = {
|
||||||
|
onedrive = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "Enable onedrive program and service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.mods.onedrive.enable (
|
||||||
|
lib.optionalAttrs (options ? environment) {
|
||||||
|
services.onedrive.enable = true;
|
||||||
|
programs.onedrive.enable = true;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -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