mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
add user config setting for use in hardcoded paths
This commit is contained in:
parent
7922dc210e
commit
097e1a1e35
11 changed files with 22 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
config,
|
config,
|
||||||
mkOizysModule,
|
mkOizysModule,
|
||||||
enabled,
|
enabled,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
config,
|
config,
|
||||||
enabled,
|
enabled,
|
||||||
mkDefaultOizysModule,
|
mkDefaultOizysModule,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
mkDefaultOizysModule config "cli" {
|
mkDefaultOizysModule config "cli" {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
|
@ -13,8 +13,8 @@ mkOizysModule config "vpn" {
|
||||||
services.openvpn.servers = {
|
services.openvpn.servers = {
|
||||||
express-ny = {
|
express-ny = {
|
||||||
config = ''
|
config = ''
|
||||||
config /home/daylin/.config/openvpn/express-ny/config.ovpn
|
config /home/${config.oizys.user}/.config/openvpn/express-ny/config.ovpn
|
||||||
auth-user-pass /home/daylin/.config/openvpn/express-ny/credentials
|
auth-user-pass /home/${config.oizys.user}/.config/openvpn/express-ny/credentials
|
||||||
'';
|
'';
|
||||||
autoStart = false;
|
autoStart = false;
|
||||||
updateResolvConf = true;
|
updateResolvConf = true;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
enabled,
|
enabled,
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption;
|
inherit (lib) mkEnableOption mkOption;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = with self.nixosModules; [
|
imports = with self.nixosModules; [
|
||||||
|
@ -39,8 +39,15 @@ in
|
||||||
restic
|
restic
|
||||||
];
|
];
|
||||||
|
|
||||||
options.oizys.desktop.enable = mkEnableOption "is desktop";
|
options.oizys = {
|
||||||
options.oizys.docker.enable = mkEnableOption "enable docker support";
|
user = mkOption {
|
||||||
|
type = lib.types.string;
|
||||||
|
default = "daylin";
|
||||||
|
description = "main user account";
|
||||||
|
};
|
||||||
|
desktop.enable = mkEnableOption "is desktop";
|
||||||
|
docker.enable = mkEnableOption "enable docker support";
|
||||||
|
};
|
||||||
config = {
|
config = {
|
||||||
networking.hostName = hostName;
|
networking.hostName = hostName;
|
||||||
time.timeZone = "US/Central";
|
time.timeZone = "US/Central";
|
||||||
|
|
|
@ -12,8 +12,8 @@ mkOizysModule config "backups" {
|
||||||
# workaround for now `mkdir ~/.conda && touch ~/.conda/environments.txt`
|
# workaround for now `mkdir ~/.conda && touch ~/.conda/environments.txt`
|
||||||
|
|
||||||
extraBackupArgs = [
|
extraBackupArgs = [
|
||||||
"--exclude-file /home/daylin/.config/restic/excludes.txt"
|
"--exclude-file /home/${config.oizys.user}/.config/restic/excludes.txt"
|
||||||
"--exclude-file /home/daylin/.conda/environments.txt"
|
"--exclude-file /home/${config.oizys.user}/.conda/environments.txt"
|
||||||
"--verbose"
|
"--verbose"
|
||||||
"--one-file-system"
|
"--one-file-system"
|
||||||
"--tag systemd.timer"
|
"--tag systemd.timer"
|
||||||
|
|
1
todo.md
1
todo.md
|
@ -16,3 +16,4 @@
|
||||||
> kernel: ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
|
> kernel: ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
|
||||||
|
|
||||||
<!-- generated with <3 by daylinmorgan/todo -->
|
<!-- generated with <3 by daylinmorgan/todo -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue