mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
feat(modules): add server archetype
feat: WIP add "absolutesolver" system and "cyn" user *wink wink* refactor: clean up some comments and remove empty lines
This commit is contained in:
parent
0c1476ce83
commit
57d067d501
10 changed files with 111 additions and 29 deletions
|
@ -7,7 +7,7 @@
|
|||
...
|
||||
}: with lib; with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.apps.zed-editor;
|
||||
cfg = config.${namespace}.apps.development.zed-editor;
|
||||
|
||||
zed-fhs = pkgs.buildFHSUserEnv {
|
||||
name = "zed";
|
|
@ -36,6 +36,6 @@ in {
|
|||
identitiesOnly = true;
|
||||
user = "git";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
5
modules/home/services/vaultwarden/default.nix
Normal file
5
modules/home/services/vaultwarden/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
# Todo: implement example service structure which should be re-usable for any future services.
|
||||
}
|
|
@ -1,16 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
|
||||
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||
system,
|
||||
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||
format, # A normalized name for the home target (eg. `home`).
|
||||
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||
host, # The host name for this home.
|
||||
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
catppuccin = {
|
||||
|
|
|
@ -1,16 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
|
||||
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||
system,
|
||||
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||
format, # A normalized name for the home target (eg. `home`).
|
||||
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||
host, # The host name for this home.
|
||||
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
gtk = {
|
||||
|
|
33
modules/nixos/archetypes/server/default.nix
Normal file
33
modules/nixos/archetypes/server/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
config,
|
||||
...
|
||||
}: with lib; with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.archetypes.server;
|
||||
in {
|
||||
options.${namespace}.archetypes.server = { enable = mkEnableOption "Enable the server archetype for your current system"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Enable modules
|
||||
puzzlevision = {
|
||||
common = {
|
||||
nix = {
|
||||
enable = true;
|
||||
use-lix = true;
|
||||
};
|
||||
grub.enable = true;
|
||||
networking.enable = true;
|
||||
kernel.enable = true;
|
||||
shell.enable = true;
|
||||
hardware.enable = true;
|
||||
locale.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Enable SSH for remote login
|
||||
services.openssh.enable = true;
|
||||
}
|
|
@ -12,7 +12,6 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.sensor.iio.enable = true; # Enable iio-sensor for automatic screen rotation and similar features.
|
||||
|
||||
hardware.flipperzero.enable = true; # Enable support for the flipperzero device.
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue