Move variables to more convenient folder
This commit is contained in:
parent
87a53e364f
commit
9c03712908
30 changed files with 159 additions and 45 deletions
11
modules/extras/variables/default.nix
Normal file
11
modules/extras/variables/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./displays
|
||||
./domains
|
||||
./ips
|
||||
./look
|
||||
./secrets
|
||||
./workspaces
|
||||
];
|
||||
}
|
15
modules/extras/variables/displays/default.nix
Normal file
15
modules/extras/variables/displays/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.displays = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.displays = {
|
||||
d1 = "DP-2";
|
||||
d2 = "DP-3";
|
||||
d3 = "DP-1";
|
||||
d4 = "HDMI-A-1";
|
||||
dI = "eDP-1";
|
||||
};
|
||||
}
|
14
modules/extras/variables/domains/default.nix
Normal file
14
modules/extras/variables/domains/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.domains = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.domains = {
|
||||
jim1 = "jimbosfiles.com";
|
||||
jim2 = "nixfox.ca";
|
||||
corn = "freecorn1854.win";
|
||||
luna = "lunamoonlight.xyz";
|
||||
};
|
||||
}
|
15
modules/extras/variables/ips/default.nix
Normal file
15
modules/extras/variables/ips/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.ips = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.ips = rec {
|
||||
localSpan = "10.1.0";
|
||||
server = "${localSpan}.2";
|
||||
pc = "${localSpan}.4";
|
||||
vm = "${localSpan}.5";
|
||||
hx = "${localSpan}.70";
|
||||
};
|
||||
}
|
12
modules/extras/variables/look/border/default.nix
Normal file
12
modules/extras/variables/look/border/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.look.border = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.look.border = rec {
|
||||
int = 3;
|
||||
string = toString int;
|
||||
};
|
||||
}
|
20
modules/extras/variables/look/colors/default.nix
Normal file
20
modules/extras/variables/look/colors/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.look.colors = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.look.colors = {
|
||||
prime = "3823C4"; #3823C4
|
||||
accent = "1B1F59"; #1B1F59
|
||||
split = "555B9E"; #555B9E
|
||||
actSplit = "5980B7"; #5980B7
|
||||
dark = "101419"; #101419
|
||||
mid = "171C23"; #171C23
|
||||
light = "272b33"; #272B33
|
||||
urgent = "C43823"; #C43823
|
||||
text = "C7D3E3"; #C7D3E3
|
||||
folder = "indigo";
|
||||
};
|
||||
}
|
8
modules/extras/variables/look/default.nix
Normal file
8
modules/extras/variables/look/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./border
|
||||
./colors
|
||||
./fonts
|
||||
];
|
||||
}
|
12
modules/extras/variables/look/fonts/default.nix
Normal file
12
modules/extras/variables/look/fonts/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.look.fonts = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.look.fonts = {
|
||||
main = ''Ubuntu'';
|
||||
nerd = ''UbuntuMono Nerd Font'';
|
||||
};
|
||||
}
|
29
modules/extras/variables/workspaces/default.nix
Normal file
29
modules/extras/variables/workspaces/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.ws = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.ws = {
|
||||
w0 = ''0:0'';
|
||||
w1 = ''1:1'';
|
||||
w2 = ''2:2'';
|
||||
w3 = ''3:3'';
|
||||
w4 = ''4:4'';
|
||||
w5 = ''5:5'';
|
||||
w6 = ''6:6'';
|
||||
w7 = ''7:7'';
|
||||
w8 = ''8:8'';
|
||||
w9 = ''9:9'';
|
||||
w1a = ''11:I'';
|
||||
w2a = ''22:II'';
|
||||
w3a = ''33:III'';
|
||||
w4a = ''44:IV'';
|
||||
w5a = ''55:V'';
|
||||
w6a = ''66:VI'';
|
||||
w7a = ''77:VII'';
|
||||
w8a = ''88:VIII'';
|
||||
w9a = ''99:IX'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue