Skip to content

Commit

Permalink
Reorganize options and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sffjunkie committed Feb 4, 2025
1 parent 3685d20 commit 2c2140e
Show file tree
Hide file tree
Showing 25 changed files with 109 additions and 94 deletions.
4 changes: 3 additions & 1 deletion configuration/machine/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

../../module/machine
../../role/machine
../../site
../../option/site
../../option/user
../../../settintgs/site
];

config = {
Expand Down
9 changes: 5 additions & 4 deletions configuration/machine/furrball/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
...
}:
let
useStylix = false;

inherit (lib) enabled;
in
{
Expand Down Expand Up @@ -70,10 +72,9 @@ in
};

theme = {
nord.enable = true;
papirus.enable = true;
stylix.enable = true;
base16-schemes.enable = true;
nord.enable = !useStylix;
papirus.enable = !useStylix;
stylix.enable = useStylix;
};
};

Expand Down
6 changes: 6 additions & 0 deletions configuration/option/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
imports = [
./site
./ui
];
}
7 changes: 7 additions & 0 deletions configuration/option/site/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
imports = [
./deploy.nix
./network.nix
./tool.nix
];
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions configuration/option/ui/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
imports = [
./font.nix
];
}
54 changes: 54 additions & 0 deletions configuration/option/ui/font.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
config,
lib,
options,
...
}:
let
inherit (lib) mkOption types;

font = types.submodule {
options = {
family = mkOption {
type = types.str;
default = "";
description = "Font family";
};
size = mkOption {
type = types.int;
default = 13;
description = "Font size";
};
};
};
in
{
options.looniversity.ui = {
desktop = {
display = { };
font = {
serif = mkOption {
type = types.attrsOf font;
description = "Serif font definition";
default = {
family = "NotoSerif";
};
};
sans-serif = mkOption {
type = types.attrsOf font;
description = "Sans-serif font definition";
default = {
family = "NotoSans";
};
};
monospace = mkOption {
type = types.attrsOf font;
description = "Monospace font definition";
default = {
family = "Hack Nerd Font";
};
};
};
};
};
}
8 changes: 0 additions & 8 deletions configuration/site/default.nix

This file was deleted.

6 changes: 0 additions & 6 deletions configuration/site/deploy/default.nix

This file was deleted.

6 changes: 0 additions & 6 deletions configuration/site/network/default.nix

This file was deleted.

6 changes: 0 additions & 6 deletions configuration/site/tool/default.nix

This file was deleted.

5 changes: 0 additions & 5 deletions configuration/site/ui/config.nix

This file was deleted.

6 changes: 0 additions & 6 deletions configuration/site/ui/default.nix

This file was deleted.

51 changes: 0 additions & 51 deletions configuration/site/ui/option.nix

This file was deleted.

4 changes: 3 additions & 1 deletion configuration/user/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
imports = [
../../module/user
../../role/user
../../site
../../option/site
../../option/user
../../../settintgs/ui
];
}
6 changes: 6 additions & 0 deletions settings/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
imports = [
./site
./ui
];
}
File renamed without changes.
7 changes: 7 additions & 0 deletions settings/site/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
imports = [
./deploy.nix
./network.nix
./tool.nix
];
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions settings/ui/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
imports = [
./font.nix
];
}
8 changes: 8 additions & 0 deletions settings/ui/font.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ config, ... }:
{
config.looniversity.ui = {
desktop = {
font = { };
};
};
}

0 comments on commit 2c2140e

Please sign in to comment.