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