mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 12:50:05 +00:00
Compare commits
7 commits
9e3a71b35e
...
be96d3962f
Author | SHA1 | Date | |
---|---|---|---|
be96d3962f | |||
e6e85a9310 | |||
3dd6107871 | |||
50d5f3675e | |||
68effc0d85 | |||
63bc2f18ff | |||
acd42932a5 |
8 changed files with 47 additions and 9 deletions
|
@ -53,6 +53,7 @@
|
||||||
nil
|
nil
|
||||||
zed-editor
|
zed-editor
|
||||||
bruno
|
bruno
|
||||||
|
deno
|
||||||
|
|
||||||
### Work
|
### Work
|
||||||
teams-for-linux
|
teams-for-linux
|
||||||
|
|
16
lib/module/default.nix
Normal file
16
lib/module/default.nix
Normal 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; };
|
||||||
|
}
|
BIN
modules/home/desktop/gnome/background.png
Normal file
BIN
modules/home/desktop/gnome/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5 MiB |
|
@ -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 {
|
config = mkIf osConfig.${namespace}.desktop.gnome.enable {
|
||||||
|
@ -66,6 +67,10 @@ in
|
||||||
autofocus-windows = true;
|
autofocus-windows = true;
|
||||||
notifications-position = "right";
|
notifications-position = "right";
|
||||||
};
|
};
|
||||||
|
"org/gnome/desktop/background" = {
|
||||||
|
picture-uri = cfg.wallpaper;
|
||||||
|
picture-uri-dark = cfg.wallpaper;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,11 +157,6 @@ in
|
||||||
name = "Colloid-Dark-Catppuccin";
|
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" = {
|
"org/gnome/desktop/interface" = {
|
||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
cursor-theme = "catppuccin-macchiato-blue-cursors";
|
cursor-theme = "catppuccin-macchiato-blue-cursors";
|
||||||
|
|
16
modules/home/user/default.nix
Normal file
16
modules/home/user/default.nix
Normal 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
BIN
modules/home/user/icon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
|
@ -1,16 +1,21 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
namespace,
|
namespace,
|
||||||
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: with lib; with lib.${namespace};
|
}:
|
||||||
let
|
let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.${namespace}.common.networking;
|
cfg = config.${namespace}.common.networking;
|
||||||
in {
|
in {
|
||||||
options.${namespace}.common.networking = { enable = mkEnableOption "networking"; };
|
options.${namespace}.common.networking = {
|
||||||
|
enable = mkEnableOption "Whether to enable networking through NetworkManager.";
|
||||||
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
wifi.powersave = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue