simplified namespace cause I dont wanna type that much and introduce colored man pages
This commit is contained in:
parent
767922cdd0
commit
80a4ed8f70
|
@ -16,27 +16,37 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs.fishPlugins; [
|
|
||||||
forgit
|
|
||||||
sponge
|
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellInit = "
|
shellInit = ''
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
direnv hook fish | source
|
direnv hook fish | source
|
||||||
source ~/.config/op/plugins.sh
|
source ~/.config/op/plugins.sh
|
||||||
";
|
|
||||||
|
set -x LESS_TERMCAP_mb \e'[01;32m'
|
||||||
|
set -x LESS_TERMCAP_md \e'[01;32m'
|
||||||
|
set -x LESS_TERMCAP_me \e'[0m'
|
||||||
|
set -x LESS_TERMCAP_se \e'[0m'
|
||||||
|
set -x LESS_TERMCAP_so \e'[01;47;34m'
|
||||||
|
set -x LESS_TERMCAP_ue \e'[0m'
|
||||||
|
set -x LESS_TERMCAP_us \e'[01;36m'
|
||||||
|
set -x LESS -R
|
||||||
|
set -x GROFF_NO_SGR 1
|
||||||
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
ls = "colorls --gs";
|
ls = "colorls --gs";
|
||||||
l = "ls -l";
|
l = "ls -l";
|
||||||
la = "ls -a";
|
la = "ls -la";
|
||||||
lla = "ls -la";
|
|
||||||
lt = "ls --tree";
|
lt = "ls --tree";
|
||||||
};
|
};
|
||||||
|
plugins = with pkgs.fishPlugins; [
|
||||||
|
{
|
||||||
|
name = "forgit";
|
||||||
|
src = forgit.src;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
zoxide = {
|
zoxide = {
|
||||||
|
|
|
@ -23,6 +23,8 @@ in
|
||||||
variables = {
|
variables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
SUDOEDITOR = "nvim";
|
SUDOEDITOR = "nvim";
|
||||||
|
PAGER = "less";
|
||||||
|
MANPAGER = "less";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ in
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
submodules = {
|
submodules = {
|
||||||
basics = enabled;
|
basics = enabled;
|
||||||
graphical-interface = enabled;
|
|
||||||
games = enabled;
|
games = enabled;
|
||||||
socials = enabled;
|
socials = enabled;
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.${namespace}.graphical-interface.desktop-manager.addons.rofi;
|
cfg = config.${namespace}.desktop.addons.rofi;
|
||||||
|
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkIf
|
mkIf
|
||||||
|
@ -17,7 +17,7 @@ let
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.graphical-interface.desktop-manager.addons.rofi = {
|
options.${namespace}.desktop.addons.rofi = {
|
||||||
enable = mkEnableOption "Rofi";
|
enable = mkEnableOption "Rofi";
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
|
@ -7,7 +7,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.${namespace}.graphical-interface.desktop-manager.addons.waybar;
|
cfg = config.${namespace}.desktop.addons.waybar;
|
||||||
|
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkEnableOption
|
mkEnableOption
|
||||||
|
@ -17,7 +17,7 @@ let
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.graphical-interface.desktop-manager.addons.waybar = {
|
options.${namespace}.desktop.addons.waybar = {
|
||||||
enable = mkEnableOption "Waybar";
|
enable = mkEnableOption "Waybar";
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
|
@ -4,6 +4,7 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
|
namespace,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib.wyrdgard;
|
with lib.wyrdgard;
|
||||||
|
@ -15,7 +16,7 @@ let
|
||||||
mkMerge
|
mkMerge
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
cfg = config.wyrdgard.graphical-interface.desktop-manager.hyprland;
|
cfg = config.${namespace}.desktop.hyprland;
|
||||||
|
|
||||||
cachix-url = "https://hyprland.cachix.org";
|
cachix-url = "https://hyprland.cachix.org";
|
||||||
cachix-key = "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=";
|
cachix-key = "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=";
|
||||||
|
@ -35,7 +36,7 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.wyrdgard.graphical-interface.desktop-manager.hyprland = {
|
options.${namespace}.desktop.hyprland = {
|
||||||
enable = mkEnableOption "Whether to enable hyprland";
|
enable = mkEnableOption "Whether to enable hyprland";
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
|
@ -55,6 +56,8 @@ in
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
dunst
|
dunst
|
||||||
|
|
||||||
|
elegant-sddm
|
||||||
|
|
||||||
jq
|
jq
|
||||||
focus-1password
|
focus-1password
|
||||||
];
|
];
|
||||||
|
@ -70,19 +73,14 @@ in
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver = enabled;
|
xserver = enabled;
|
||||||
greetd = {
|
displayManager.sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
theme = "Elegant";
|
||||||
default_session = {
|
|
||||||
command = "${lib.getExe pkgs.greetd.tuigreet} --cmd Hyprland";
|
|
||||||
user = config.wyrdgard.user.name;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
graphical-interface.desktop-manager.addons = {
|
desktop.addons = {
|
||||||
waybar = enabled;
|
waybar = enabled;
|
||||||
rofi = {
|
rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -110,7 +108,7 @@ in
|
||||||
|
|
||||||
"[workspace 3 silent] steam"
|
"[workspace 3 silent] steam"
|
||||||
"[workspace 2 silent] discord"
|
"[workspace 2 silent] discord"
|
||||||
"[workspace 2 silent] noisetorch"
|
"[workspace 2 silent] noisetorch -i"
|
||||||
"[workspace 4 silent] 1password"
|
"[workspace 4 silent] 1password"
|
||||||
"[workspace 1 silent] zen"
|
"[workspace 1 silent] zen"
|
||||||
];
|
];
|
|
@ -1,16 +1,17 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
namespace,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard;
|
with lib.wyrdgard;
|
||||||
let
|
let
|
||||||
cfg = config.wyrdgard.graphical-interface.desktop-manager.kde;
|
cfg = config.${namespace}.desktop.kde;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.wyrdgard.graphical-interface.desktop-manager.kde = with types; {
|
options.${namespace}.desktop.kde = with types; {
|
||||||
enable = mkEnableOption "Whether to enable a kde plasma6";
|
enable = mkEnableOption "Whether to enable a kde plasma6";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
with lib.wyrdgard;
|
|
||||||
let
|
|
||||||
cfg = config.wyrdgard.graphical-interface.display-manager.greetd;
|
|
||||||
|
|
||||||
hyperland = config.wyrdgard.graphical-interface.desktop-manager.hyperland;
|
|
||||||
hyprland-session = "${inputs.hyprland.packages.${pkgs.system}.hyperland}/share/wayland-sessions";
|
|
||||||
kde-session = "${inputs.plasma6.packages.${pkgs.system}.plasma6}/share/wayland-sessions";
|
|
||||||
|
|
||||||
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember --remember-session";
|
|
||||||
|
|
||||||
command =
|
|
||||||
if hyperland.enable then
|
|
||||||
"${tuigreet} --sessions ${hyprland-session}"
|
|
||||||
else
|
|
||||||
"${tuigreet} --sessions ${kde-session}";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.wyrdgard.graphical-interface.display-manager.greetd = with types; {
|
|
||||||
enable = mkEnableOption "Whether to enable a sddm";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
services = {
|
|
||||||
xserver = enabled;
|
|
||||||
greetd = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
default_session = {
|
|
||||||
command = command;
|
|
||||||
user = config.wyrdgard.user.name;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
with lib;
|
|
||||||
with lib.wyrdgard;
|
|
||||||
let
|
|
||||||
cfg = config.wyrdgard.graphical-interface.display-manager.sddm;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.wyrdgard.graphical-interface.display-manager.sddm = with types; {
|
|
||||||
enable = mkEnableOption "Whether to enable a sddm";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
services = {
|
|
||||||
xserver = enabled;
|
|
||||||
displayManager = {
|
|
||||||
sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
with lib.wyrdgard;
|
|
||||||
let
|
|
||||||
cfg = config.wyrdgard.submodules.graphical-interface;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.wyrdgard.submodules.graphical-interface = with types; {
|
|
||||||
enable = mkBoolOpt false "Whether to enable a graphical interface";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = with pkgs; [ xdg-utils ];
|
|
||||||
|
|
||||||
wyrdgard.graphical-interface =
|
|
||||||
{
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -15,9 +15,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot = {
|
||||||
boot.loader.systemd-boot.enable = true;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.fstrim = enabled;
|
services.fstrim = enabled;
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,13 +11,17 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
path-of-building
|
path-of-building
|
||||||
steamcmd
|
pkgs.most
|
||||||
|
pkgs.man-pages
|
||||||
|
pkgs.man-pages-posix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.pathsToLink = [ "/libexec" ];
|
environment.pathsToLink = [ "/libexec" ];
|
||||||
|
|
||||||
virtualisation.waydroid = enabled;
|
virtualisation.waydroid = enabled;
|
||||||
|
|
||||||
|
services.xserver.displayManager.setupCommands = "xrandr --output HDMI-A-1 --off";
|
||||||
|
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
archetypes = {
|
archetypes = {
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
|
@ -28,7 +32,7 @@ in
|
||||||
obs-studio = enabled;
|
obs-studio = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
graphical-interface.desktop-manager.hyprland = {
|
desktop.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
|
@ -39,7 +43,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"xrandr --output DP-2 --primary"
|
"xrandr --output DP-2 --primary --output HDMI-A-1 --on"
|
||||||
"hyprctl dispatch moveworkspacetomonitor 4 HDMI-A-1"
|
"hyprctl dispatch moveworkspacetomonitor 4 HDMI-A-1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue