Compare commits

..

7 commits

8 changed files with 47 additions and 9 deletions

View file

@ -53,6 +53,7 @@
nil
zed-editor
bruno
deno
### Work
teams-for-linux

16
lib/module/default.nix Normal file
View file

@ -0,0 +1,16 @@
{
lib,
...
}: with lib;
rec {
## Create a NixOS module option. (Stolen from Jake Hamilton)
##
## ```nix
## lib.mkOpt nixpkgs.lib.types.str "My default" "Description of my option."
## ```
##
#@ Type -> Any -> String
mkOpt =
type: default: description:
mkOption { inherit type default description; };
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 MiB

View file

@ -39,6 +39,7 @@ in
};
};
};
wallpaper = mkOpt str (builtins.toString ./background.png) "Specify the path of your prefered Gnome wallpaper.";
};
config = mkIf osConfig.${namespace}.desktop.gnome.enable {
@ -66,6 +67,10 @@ in
autofocus-windows = true;
notifications-position = "right";
};
"org/gnome/desktop/background" = {
picture-uri = cfg.wallpaper;
picture-uri-dark = cfg.wallpaper;
};
};
};
}

View file

@ -157,11 +157,6 @@ in
name = "Colloid-Dark-Catppuccin";
};
"org/gnome/desktop/background" = {
picture-uri = lib.snowfall.fs.get-file "resources/wallpapers/mocha-vibrant-colours.png";
picture-uri-dark = lib.snowfall.fs.get-file "resources/wallpapers/mocha-vibrant-colours.png";
};
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
cursor-theme = "catppuccin-macchiato-blue-cursors";

View file

@ -0,0 +1,16 @@
{
lib,
namespace,
...
}:
let
inherit (lib.${namespace}) mkOpt;
in
{
options.${namespace}.user = with lib.types; {
name = mkOpt str "Jo" "The user's short name.";
fullName = mkOpt str "Johannes Reckers" "The user's full name.";
email = mkOpt str "reckers.johannes@proton.me" "The user's primary E-Mail address.";
icon = mkOpt str "./icon.jpg" "The path to the users prefered icon.";
};
}

BIN
modules/home/user/icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View file

@ -1,16 +1,21 @@
{
lib,
namespace,
config,
...
}: with lib; with lib.${namespace};
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.common.networking;
in {
options.${namespace}.common.networking = { enable = mkEnableOption "networking"; };
options.${namespace}.common.networking = {
enable = mkEnableOption "Whether to enable networking through NetworkManager.";
};
config = mkIf cfg.enable {
networking.networkmanager.enable = true;
networking.networkmanager = {
enable = true;
wifi.powersave = false;
};
};
}