mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
reorganized and renamed modules wiht alyraffauf prefix to avoid collisions with nixpkgs modules
This commit is contained in:
parent
5536aaa466
commit
1242e0d62e
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.alacritty.enable = lib.mkEnableOption "Enables alacritty.";
|
||||
alyraffauf.apps.alacritty.enable = lib.mkEnableOption "Enables alacritty.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.alacritty.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.alacritty.enable {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {cliApps.bash.enable = lib.mkEnableOption "Enables bash.";};
|
||||
options = {alyraffauf.apps.bash.enable = lib.mkEnableOption "Enables bash.";};
|
||||
|
||||
config = lib.mkIf config.cliApps.bash.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.bash.enable {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.chromium.enable = lib.mkEnableOption "Enables Chromium.";
|
||||
alyraffauf.apps.chromium.enable = lib.mkEnableOption "Enables Chromium.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.chromium.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.chromium.enable {
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
extensions = [
|
68
homeManagerModules/apps/default.nix
Normal file
68
homeManagerModules/apps/default.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./alacritty
|
||||
./bash
|
||||
./chromium
|
||||
./emacs
|
||||
./eza
|
||||
./firefox
|
||||
./fractal
|
||||
./fuzzel
|
||||
./fzf
|
||||
./google-chrome
|
||||
./kanshi
|
||||
./librewolf
|
||||
./mako
|
||||
./neofetch
|
||||
./neovim
|
||||
./obsidian
|
||||
./tauon
|
||||
./thunderbird
|
||||
./tmux
|
||||
./vsCodium
|
||||
./waybar
|
||||
./webCord
|
||||
./wlogout
|
||||
./zoom
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# backblaze-b2
|
||||
browsh
|
||||
curl
|
||||
gh
|
||||
git
|
||||
python3
|
||||
ruby
|
||||
wget
|
||||
];
|
||||
|
||||
programs.nnn.enable = lib.mkDefault true;
|
||||
|
||||
programs.rbw.enable = lib.mkDefault true;
|
||||
|
||||
alyraffauf.apps.bash.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.emacs.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.eza.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.fzf.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.neofetch.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.neovim.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.tmux.enable = lib.mkDefault true;
|
||||
|
||||
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.chromium.enable = lib.mkDefault false;
|
||||
alyraffauf.apps.firefox.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.fractal.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.google-chrome.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.obsidian.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.tauon.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.thunderbird.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.vsCodium.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.webCord.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.zoom.enable = lib.mkDefault true;
|
||||
}
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {cliApps.emacs.enable = lib.mkEnableOption "Enables emacs.";};
|
||||
options = {alyraffauf.apps.emacs.enable = lib.mkEnableOption "Enables emacs.";};
|
||||
|
||||
config = lib.mkIf config.cliApps.emacs.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.emacs.enable {
|
||||
home.packages = with pkgs; [python3];
|
||||
|
||||
programs.emacs = {
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {cliApps.eza.enable = lib.mkEnableOption "Enables eza.";};
|
||||
options = {alyraffauf.apps.eza.enable = lib.mkEnableOption "Enables eza.";};
|
||||
|
||||
config = lib.mkIf config.cliApps.eza.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.eza.enable {
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
git = true;
|
12
homeManagerModules/apps/firefox/default.nix
Normal file
12
homeManagerModules/apps/firefox/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {alyraffauf.apps.firefox.enable = lib.mkEnableOption "Enables Firefox.";};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.firefox.enable {
|
||||
programs.firefox = {enable = true;};
|
||||
};
|
||||
}
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.fractal.enable =
|
||||
alyraffauf.apps.fractal.enable =
|
||||
lib.mkEnableOption "Enables Fractal Matrix client.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.fractal.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.fractal.enable {
|
||||
home.packages = with pkgs; [fractal];
|
||||
};
|
||||
}
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.fuzzel.enable = lib.mkEnableOption "Enables fuzzel.";};
|
||||
options = {alyraffauf.apps.fuzzel.enable = lib.mkEnableOption "Enables fuzzel.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.fuzzel.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.fuzzel.enable {
|
||||
home.packages = with pkgs; [
|
||||
(nerdfonts.override {fonts = ["Noto"];})
|
||||
(catppuccin-papirus-folders.override {
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {cliApps.fzf.enable = lib.mkEnableOption "Enables fzf.";};
|
||||
options = {alyraffauf.apps.fzf.enable = lib.mkEnableOption "Enables fzf.";};
|
||||
|
||||
config = lib.mkIf config.cliApps.fzf.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.fzf.enable {
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
tmux.enableShellIntegration = true;
|
14
homeManagerModules/apps/google-chrome/default.nix
Normal file
14
homeManagerModules/apps/google-chrome/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
alyraffauf.apps.google-chrome.enable = lib.mkEnableOption "Enable Google Chrome.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.google-chrome.enable {
|
||||
home.packages = with pkgs; [google-chrome];
|
||||
};
|
||||
}
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.kanshi.enable =
|
||||
alyraffauf.apps.kanshi.enable =
|
||||
lib.mkEnableOption "Enable kanshi monitor profiles";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.kanshi.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.kanshi.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
kanshi
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.librewolf.enable = lib.mkEnableOption "Enables librewolf.";
|
||||
alyraffauf.apps.librewolf.enable = lib.mkEnableOption "Enables librewolf.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.librewolf.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.librewolf.enable {
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
settings = {
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.mako.enable = lib.mkEnableOption "Enables mako.";};
|
||||
options = {alyraffauf.apps.mako.enable = lib.mkEnableOption "Enables mako.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.mako.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.mako.enable {
|
||||
home.packages = with pkgs; [(nerdfonts.override {fonts = ["Noto"];})];
|
||||
|
||||
services.mako = {
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
cliApps.neofetch.enable = lib.mkEnableOption "Enable neofetch.";
|
||||
alyraffauf.apps.neofetch.enable = lib.mkEnableOption "Enable neofetch.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.cliApps.neofetch.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.neofetch.enable {
|
||||
home.packages = [pkgs.neofetch];
|
||||
xdg.configFile."neofetch/config.conf".source = ./config.conf;
|
||||
};
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {cliApps.neovim.enable = lib.mkEnableOption "Enables neovim.";};
|
||||
options = {alyraffauf.apps.neovim.enable = lib.mkEnableOption "Enables neovim.";};
|
||||
|
||||
config = lib.mkIf config.cliApps.neovim.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.neovim.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
14
homeManagerModules/apps/obsidian/default.nix
Normal file
14
homeManagerModules/apps/obsidian/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
alyraffauf.apps.obsidian.enable = lib.mkEnableOption "Enables Obsidian.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.obsidian.enable {
|
||||
home.packages = with pkgs; [obsidian];
|
||||
};
|
||||
}
|
12
homeManagerModules/apps/tauon/default.nix
Normal file
12
homeManagerModules/apps/tauon/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {alyraffauf.apps.tauon.enable = lib.mkEnableOption "Enables Tauon.";};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.tauon.enable {
|
||||
home.packages = with pkgs; [tauon];
|
||||
};
|
||||
}
|
12
homeManagerModules/apps/thunderbird/default.nix
Normal file
12
homeManagerModules/apps/thunderbird/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {alyraffauf.apps.thunderbird.enable = lib.mkEnableOption "Enable Thunderbird.";};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.thunderbird.enable {
|
||||
home.packages = [pkgs.thunderbird];
|
||||
};
|
||||
}
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {cliApps.tmux.enable = lib.mkEnableOption "Enables tmux.";};
|
||||
options = {alyraffauf.apps.tmux.enable = lib.mkEnableOption "Enables tmux.";};
|
||||
|
||||
config = lib.mkIf config.cliApps.tmux.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.tmux.enable {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
mouse = true;
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.vsCodium.enable = lib.mkEnableOption "Enables VSCodium.";
|
||||
alyraffauf.apps.vsCodium.enable = lib.mkEnableOption "Enables VSCodium.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.vsCodium.enable {
|
||||
guiApps.alacritty.enable = lib.mkDefault true;
|
||||
config = lib.mkIf config.alyraffauf.apps.vsCodium.enable {
|
||||
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
||||
|
||||
# Necessary fonts.
|
||||
home.packages = with pkgs; [
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.waybar.enable = lib.mkEnableOption "Enables waybar.";};
|
||||
options = {alyraffauf.apps.waybar.enable = lib.mkEnableOption "Enables waybar.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.waybar.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.waybar.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
blueberry
|
12
homeManagerModules/apps/webCord/default.nix
Normal file
12
homeManagerModules/apps/webCord/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {alyraffauf.apps.webCord.enable = lib.mkEnableOption "Enables WebCord.";};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.webCord.enable {
|
||||
home.packages = with pkgs; [webcord];
|
||||
};
|
||||
}
|
|
@ -4,9 +4,9 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.wlogout.enable = lib.mkEnableOption "Enables wlogout.";};
|
||||
options = {alyraffauf.apps.wlogout.enable = lib.mkEnableOption "Enables wlogout.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.wlogout.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.wlogout.enable {
|
||||
programs.wlogout = {
|
||||
enable = true;
|
||||
layout = [
|
12
homeManagerModules/apps/zoom/default.nix
Normal file
12
homeManagerModules/apps/zoom/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {alyraffauf.apps.zoom.enable = lib.mkEnableOption "Enables Zoom.";};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.apps.zoom.enable {
|
||||
home.packages = with pkgs; [zoom-us];
|
||||
};
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [./bash ./emacs ./eza ./fzf ./neovim ./tmux ./neofetch];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# backblaze-b2
|
||||
browsh
|
||||
curl
|
||||
gh
|
||||
git
|
||||
python3
|
||||
ruby
|
||||
wget
|
||||
];
|
||||
|
||||
programs.nnn.enable = lib.mkDefault true;
|
||||
|
||||
programs.rbw.enable = lib.mkDefault true;
|
||||
|
||||
cliApps.bash.enable = lib.mkDefault true;
|
||||
cliApps.emacs.enable = lib.mkDefault true;
|
||||
cliApps.eza.enable = lib.mkDefault true;
|
||||
cliApps.fzf.enable = lib.mkDefault true;
|
||||
cliApps.neofetch.enable = lib.mkDefault true;
|
||||
cliApps.neovim.enable = lib.mkDefault true;
|
||||
cliApps.tmux.enable = lib.mkDefault true;
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./cliApps ./guiApps ./desktopEnv ./userServices];
|
||||
imports = [./apps ./desktop ./services];
|
||||
|
||||
nixpkgs = {
|
||||
# Configure nixpkgs instance
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
}: {
|
||||
imports = [./gnome ./hypr ./sway ./river];
|
||||
|
||||
desktopEnv.hyprland.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.enable = lib.mkDefault true;
|
||||
}
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.gnome.enable =
|
||||
alyraffauf.desktop.gnome.enable =
|
||||
lib.mkEnableOption "Enables GNOME with basic settings configuration.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.gnome.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.gnome.enable {
|
||||
dconf.enable = true;
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/datetime".automatic-timezone = true;
|
|
@ -7,26 +7,26 @@
|
|||
imports = [./hypridle ./hyprlock ./hyprpaper ./hyprshade ./theme.nix];
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.enable =
|
||||
alyraffauf.desktop.hyprland.enable =
|
||||
lib.mkEnableOption "Enables hyprland with extra apps.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
|
||||
# Hypr* modules, plguins, and tools.
|
||||
desktopEnv.hyprland.hypridle.enable = lib.mkDefault true;
|
||||
desktopEnv.hyprland.hyprlock.enable = lib.mkDefault true;
|
||||
desktopEnv.hyprland.hyprpaper.enable = lib.mkDefault true;
|
||||
desktopEnv.hyprland.hyprshade.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.hypridle.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.hyprlock.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.hyprpaper.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.hyprshade.enable = lib.mkDefault true;
|
||||
|
||||
desktopEnv.hyprland.theme.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.theme.enable = lib.mkDefault true;
|
||||
|
||||
# Basic apps needed to run a hyprland desktop.
|
||||
guiApps.waybar.enable = lib.mkDefault true;
|
||||
guiApps.mako.enable = lib.mkDefault true;
|
||||
guiApps.fuzzel.enable = lib.mkDefault true;
|
||||
guiApps.wlogout.enable = lib.mkDefault true;
|
||||
guiApps.alacritty.enable = lib.mkDefault true;
|
||||
guiApps.firefox.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.waybar.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.mako.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.fuzzel.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.wlogout.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.firefox.enable = lib.mkDefault true;
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.hyprland.hypridle.enable =
|
||||
alyraffauf.desktop.hyprland.hypridle.enable =
|
||||
lib.mkEnableOption "Enables hypridle.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hypridle.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.hypridle.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [hypridle brightnessctl];
|
||||
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprlock.enable =
|
||||
alyraffauf.desktop.hyprland.hyprlock.enable =
|
||||
lib.mkEnableOption "Enables hyprlock.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprlock.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprlock.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [hyprlock];
|
||||
|
|
@ -7,15 +7,15 @@
|
|||
imports = [./hyprpaper-random.nix];
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprpaper.enable =
|
||||
alyraffauf.desktop.hyprland.hyprpaper.enable =
|
||||
lib.mkEnableOption "Enables hyprpaper and assorted wallpapers.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprpaper.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprpaper.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [hyprpaper];
|
||||
|
||||
desktopEnv.hyprland.hyprpaper.randomWallpaper.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.hyprpaper.randomWallpaper.enable = lib.mkDefault true;
|
||||
|
||||
xdg.configFile."hypr/hyprpaper.conf".source = ./hyprpaper.conf;
|
||||
};
|
|
@ -23,11 +23,11 @@
|
|||
'';
|
||||
in {
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprpaper.randomWallpaper.enable =
|
||||
alyraffauf.desktop.hyprland.hyprpaper.randomWallpaper.enable =
|
||||
lib.mkEnableOption "Enables hyprpaper random wallpaper script.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprpaper.randomWallpaper.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprpaper.randomWallpaper.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [hyprpaper-random];
|
||||
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprshade.enable =
|
||||
alyraffauf.desktop.hyprland.hyprshade.enable =
|
||||
lib.mkEnableOption "Enables hyprshade with blue light filter.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprshade.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprshade.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [hyprshade];
|
||||
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.hyprland.theme.enable =
|
||||
alyraffauf.desktop.hyprland.theme.enable =
|
||||
lib.mkEnableOption "Hyprland GTK and Qt themes.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.theme.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.theme.enable {
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
|
@ -6,19 +6,19 @@
|
|||
}: {
|
||||
imports = [./randomWallpaper.nix];
|
||||
options = {
|
||||
desktopEnv.river.enable =
|
||||
alyraffauf.desktop.river.enable =
|
||||
lib.mkEnableOption "Enable riverwm with extra apps.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.river.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.river.enable {
|
||||
# Basic apps needed to run a riverwm desktop.
|
||||
guiApps.waybar.enable = lib.mkDefault true;
|
||||
guiApps.mako.enable = lib.mkDefault true;
|
||||
guiApps.fuzzel.enable = lib.mkDefault true;
|
||||
guiApps.wlogout.enable = lib.mkDefault true;
|
||||
guiApps.alacritty.enable = lib.mkDefault true;
|
||||
guiApps.firefox.enable = lib.mkDefault true;
|
||||
guiApps.kanshi.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.waybar.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.mako.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.fuzzel.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.wlogout.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.firefox.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.kanshi.enable = lib.mkDefault true;
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
|
@ -45,7 +45,7 @@
|
|||
swayidle
|
||||
];
|
||||
|
||||
desktopEnv.river.randomWallpaper.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.river.randomWallpaper.enable = lib.mkDefault true;
|
||||
|
||||
programs.swaylock.enable = lib.mkDefault true;
|
||||
|
|
@ -18,11 +18,11 @@
|
|||
'';
|
||||
in {
|
||||
options = {
|
||||
desktopEnv.river.randomWallpaper.enable =
|
||||
alyraffauf.desktop.river.randomWallpaper.enable =
|
||||
lib.mkEnableOption "Enables swaybg random wallpaper script.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.river.randomWallpaper.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.river.randomWallpaper.enable {
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [swaybg swaybg-random];
|
||||
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.hyprland.theme.enable =
|
||||
alyraffauf.desktop.hyprland.theme.enable =
|
||||
lib.mkEnableOption "Hyprland GTK and Qt themes.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.theme.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.theme.enable {
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
|
@ -5,18 +5,18 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktopEnv.sway.enable = lib.mkEnableOption "Sway with extra apps.";
|
||||
alyraffauf.desktop.sway.enable = lib.mkEnableOption "Sway with extra apps.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.sway.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.sway.enable {
|
||||
# Basic apps needed to run a hyprland desktop.
|
||||
guiApps.waybar.enable = lib.mkDefault true;
|
||||
guiApps.mako.enable = lib.mkDefault true;
|
||||
guiApps.fuzzel.enable = lib.mkDefault true;
|
||||
guiApps.wlogout.enable = lib.mkDefault true;
|
||||
guiApps.alacritty.enable = lib.mkDefault true;
|
||||
guiApps.firefox.enable = lib.mkDefault true;
|
||||
guiApps.kanshi.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.waybar.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.mako.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.fuzzel.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.wlogout.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.firefox.enable = lib.mkDefault true;
|
||||
alyraffauf.apps.kanshi.enable = lib.mkDefault true;
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./alacritty
|
||||
./chromium
|
||||
./firefox
|
||||
./fractal
|
||||
./fuzzel
|
||||
./google-chrome
|
||||
./kanshi
|
||||
./librewolf
|
||||
./mako
|
||||
./obsidian
|
||||
./tauon
|
||||
./thunderbird
|
||||
./vsCodium
|
||||
./waybar
|
||||
./webCord
|
||||
./wlogout
|
||||
./zoom
|
||||
];
|
||||
|
||||
guiApps.alacritty.enable = lib.mkDefault true;
|
||||
guiApps.chromium.enable = lib.mkDefault false;
|
||||
guiApps.firefox.enable = lib.mkDefault true;
|
||||
guiApps.fractal.enable = lib.mkDefault true;
|
||||
guiApps.google-chrome.enable = lib.mkDefault true;
|
||||
guiApps.obsidian.enable = lib.mkDefault true;
|
||||
guiApps.tauon.enable = lib.mkDefault true;
|
||||
guiApps.thunderbird.enable = lib.mkDefault true;
|
||||
guiApps.vsCodium.enable = lib.mkDefault true;
|
||||
guiApps.webCord.enable = lib.mkDefault true;
|
||||
guiApps.zoom.enable = lib.mkDefault true;
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.firefox.enable = lib.mkEnableOption "Enables Firefox.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.firefox.enable {
|
||||
programs.firefox = {enable = true;};
|
||||
};
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.google-chrome.enable = lib.mkEnableOption "Enable Google Chrome.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.google-chrome.enable {
|
||||
home.packages = with pkgs; [google-chrome];
|
||||
};
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
guiApps.obsidian.enable = lib.mkEnableOption "Enables Obsidian.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.guiApps.obsidian.enable {
|
||||
home.packages = with pkgs; [obsidian];
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.tauon.enable = lib.mkEnableOption "Enables Tauon.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.tauon.enable {
|
||||
home.packages = with pkgs; [tauon];
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.thunderbird.enable = lib.mkEnableOption "Enable Thunderbird.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.thunderbird.enable {
|
||||
home.packages = [pkgs.thunderbird];
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.webCord.enable = lib.mkEnableOption "Enables WebCord.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.webCord.enable {
|
||||
home.packages = with pkgs; [webcord];
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {guiApps.zoom.enable = lib.mkEnableOption "Enables Zoom.";};
|
||||
|
||||
config = lib.mkIf config.guiApps.zoom.enable {
|
||||
home.packages = with pkgs; [zoom-us];
|
||||
};
|
||||
}
|
|
@ -6,5 +6,5 @@
|
|||
}: {
|
||||
imports = [./syncthing ./easyeffects ./mpd];
|
||||
|
||||
userServices.syncthing.enable = lib.mkDefault true;
|
||||
alyraffauf.services.syncthing.enable = lib.mkDefault true;
|
||||
}
|
|
@ -5,16 +5,16 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
userServices.easyeffects.enable =
|
||||
alyraffauf.services.easyeffects.enable =
|
||||
lib.mkEnableOption "EasyEffects user service.";
|
||||
userServices.easyeffects.preset = lib.mkOption {
|
||||
alyraffauf.services.easyeffects.preset = lib.mkOption {
|
||||
description = "Name of preset to start with.";
|
||||
default = "";
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.userServices.easyeffects.enable {
|
||||
config = lib.mkIf config.alyraffauf.services.easyeffects.enable {
|
||||
xdg.configFile."easyeffects/output/framework13.json".source =
|
||||
./framework13.json;
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
services.easyeffects = {
|
||||
enable = true;
|
||||
preset = config.userServices.easyeffects.preset;
|
||||
preset = config.alyraffauf.services.easyeffects.preset;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -5,19 +5,19 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
userServices.mpd.enable =
|
||||
alyraffauf.services.mpd.enable =
|
||||
lib.mkEnableOption "MPD user service.";
|
||||
userServices.mpd.musicDirectory = lib.mkOption {
|
||||
alyraffauf.services.mpd.musicDirectory = lib.mkOption {
|
||||
description = "Name of music directory";
|
||||
default = config.xdg.userDirs.music;
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.userServices.mpd.enable {
|
||||
config = lib.mkIf config.alyraffauf.services.mpd.enable {
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = config.userServices.mpd.musicDirectory;
|
||||
musicDirectory = config.alyraffauf.services.mpd.musicDirectory;
|
||||
};
|
||||
services.mpd-mpris = {
|
||||
enable = true;
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
userServices.syncthing.enable =
|
||||
alyraffauf.services.syncthing.enable =
|
||||
lib.mkEnableOption "Enables syncthing as user.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.userServices.syncthing.enable {
|
||||
config = lib.mkIf config.alyraffauf.services.syncthing.enable {
|
||||
services.syncthing.enable = true;
|
||||
};
|
||||
}
|
|
@ -29,17 +29,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemConfig = {
|
||||
alyraffauf.system = {
|
||||
plymouth.enable = true;
|
||||
zramSwap = {enable = true;};
|
||||
zramSwap.enable = true;
|
||||
};
|
||||
|
||||
desktop = {
|
||||
alyraffauf.desktop = {
|
||||
enable = true;
|
||||
hyprland.enable = true;
|
||||
};
|
||||
|
||||
apps = {
|
||||
alyraffauf.apps = {
|
||||
flatpak.enable = true;
|
||||
podman.enable = true;
|
||||
steam.enable = true;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
home.stateVersion = "23.11";
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
userServices.easyeffects = {
|
||||
alyraffauf.services.easyeffects = {
|
||||
enable = true;
|
||||
preset = "framework13.json";
|
||||
};
|
||||
|
|
|
@ -13,22 +13,17 @@
|
|||
|
||||
networking.hostName = "mauville"; # Define your hostname.
|
||||
|
||||
services.xserver = {
|
||||
# Prevent system sleep after reboot to login screen.
|
||||
displayManager.gdm.autoSuspend = false;
|
||||
};
|
||||
|
||||
systemConfig = {
|
||||
alyraffauf.system = {
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
size = 100;
|
||||
};
|
||||
};
|
||||
|
||||
homeLab.enable = true;
|
||||
desktop.enable = true;
|
||||
alyraffauf.homeLab.enable = true;
|
||||
alyraffauf.desktop.enable = true;
|
||||
|
||||
apps = {
|
||||
alyraffauf.apps = {
|
||||
flatpak.enable = true;
|
||||
steam.enable = true;
|
||||
};
|
||||
|
|
|
@ -71,17 +71,17 @@ in {
|
|||
|
||||
environment.systemPackages = [cs-adjuster cs-adjuster-plasma pp-adjuster];
|
||||
|
||||
desktop = {
|
||||
alyraffauf.desktop = {
|
||||
enable = true;
|
||||
hyprland.enable = true;
|
||||
};
|
||||
|
||||
systemConfig = {
|
||||
alyraffauf.system = {
|
||||
plymouth.enable = true;
|
||||
zramSwap = {enable = true;};
|
||||
};
|
||||
|
||||
apps = {
|
||||
alyraffauf.apps = {
|
||||
flatpak.enable = true;
|
||||
podman.enable = true;
|
||||
steam.enable = true;
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
networking.hostName = "rustboro"; # Define your hostname.
|
||||
|
||||
systemConfig = {
|
||||
alyraffauf.system = {
|
||||
plymouth.enable = true;
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
|
@ -52,12 +52,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
desktop = {
|
||||
alyraffauf.desktop = {
|
||||
enable = true;
|
||||
hyprland.enable = true;
|
||||
};
|
||||
|
||||
apps = {
|
||||
alyraffauf.apps = {
|
||||
flatpak.enable = true;
|
||||
steam.enable = false;
|
||||
};
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
userConfig.dustin.enable = true;
|
||||
alyraffauf.user.dustin.enable = true;
|
||||
|
||||
users.users.dustin.hashedPassword = "$y$j9T$OXQYhj4IWjRJWWYsSwcqf.$lCcdq9S7m0EAdej9KMHWj9flH8K2pUb2gitNhLTlLG/";
|
||||
|
||||
|
@ -17,9 +17,9 @@
|
|||
home.stateVersion = "23.11";
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
desktopEnv.hyprland.hyprpaper.randomWallpaper.enable = false;
|
||||
alyraffauf.desktop.hyprland.hyprpaper.randomWallpaper.enable = false;
|
||||
|
||||
userServices.easyeffects = {
|
||||
alyraffauf.services.easyeffects = {
|
||||
enable = true;
|
||||
preset = "LoudnessEqualizer.json";
|
||||
};
|
||||
|
@ -35,7 +35,7 @@
|
|||
home.stateVersion = "23.11";
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
userServices.easyeffects = {
|
||||
alyraffauf.services.easyeffects = {
|
||||
enable = true;
|
||||
preset = "LoudnessEqualizer.json";
|
||||
};
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
apps.flatpak.enable =
|
||||
alyraffauf.apps.flatpak.enable =
|
||||
lib.mkEnableOption "Enables flatpak support with GUI.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.flatpak.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.flatpak.enable {
|
||||
# Needed for Flatpaks
|
||||
xdg.portal.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
apps.nicotine-plus.enable =
|
||||
alyraffauf.apps.nicotine-plus.enable =
|
||||
lib.mkEnableOption "Enable Nicotine+ soulseek client.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.nicotine-plus.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.nicotine-plus.enable {
|
||||
environment.systemPackages = [ pkgs.nicotine-plus ];
|
||||
networking = {
|
||||
firewall.allowedTCPPortRanges = [
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
apps.podman.enable =
|
||||
alyraffauf.apps.podman.enable =
|
||||
lib.mkEnableOption "Enables Podman for OCI container support.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.podman.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.podman.enable {
|
||||
virtualisation = {
|
||||
oci-containers = {backend = "podman";};
|
||||
podman = {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
apps.steam.enable = lib.mkEnableOption "Enables Steam for video games.";
|
||||
alyraffauf.apps.steam.enable = lib.mkEnableOption "Enables Steam for video games.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.steam.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.steam.enable {
|
||||
hardware.steam-hardware.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
apps.virt-manager.enable =
|
||||
alyraffauf.apps.virt-manager.enable =
|
||||
lib.mkEnableOption "Enables virt-manager with TPM and EFI support.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.apps.virt-manager.enable {
|
||||
config = lib.mkIf config.alyraffauf.apps.virt-manager.enable {
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
virtualisation = {libvirtd.enable = true;};
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [./apps ./desktop ./homeLab ./systemConfig ./userConfig];
|
||||
imports = [./apps ./desktop ./homeLab ./system ./user];
|
||||
}
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
imports = [./gnome ./hyprland ./lightdm ./plasma];
|
||||
|
||||
options = {
|
||||
desktop.enable =
|
||||
alyraffauf.desktop.enable =
|
||||
lib.mkEnableOption "Enable basic GUI X11 and Wayland environment.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.enable {
|
||||
services = {
|
||||
gnome.gnome-keyring.enable = true;
|
||||
gvfs.enable = true; # Mount, trash, etc.
|
||||
|
@ -32,6 +32,6 @@
|
|||
})
|
||||
];
|
||||
|
||||
desktop.hyprland.enable = lib.mkDefault true;
|
||||
alyraffauf.desktop.hyprland.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
];
|
||||
|
||||
options = {
|
||||
desktop.gnome.enable =
|
||||
alyraffauf.desktop.gnome.enable =
|
||||
lib.mkEnableOption "Enable GNOME desktop session.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.gnome.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.gnome.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.blur-my-shell
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktop.gnome.fprintdFix.enable =
|
||||
alyraffauf.desktop.gnome.fprintdFix.enable =
|
||||
lib.mkEnableOption
|
||||
"Fixes fprintd and pam issues with GNOME Display Manager.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.gnome.fprintdFix.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.gnome.fprintdFix.enable {
|
||||
# Need to change the order pam loads its modules
|
||||
# to get proper fingerprint behavior on GDM and the lockscreen.
|
||||
security.pam.services.login.fprintAuth = false;
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktop.hyprland.enable =
|
||||
alyraffauf.desktop.hyprland.enable =
|
||||
lib.mkEnableOption "Enable hyprland and greetd.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.hyprland.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktop.lightdm.enable =
|
||||
alyraffauf.desktop.lightdm.enable =
|
||||
lib.mkEnableOption
|
||||
"Enables lightdm and slick greeter with Catppuccin theme.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.lightdm.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.lightdm.enable {
|
||||
security.pam.services.lightdm.enableKwallet = true;
|
||||
security.pam.services.lightdm.enableGnomeKeyring = true;
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
desktop.plasma.enable =
|
||||
alyraffauf.desktop.plasma.enable =
|
||||
lib.mkEnableOption "Enable plasma desktop session.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.plasma.enable {
|
||||
config = lib.mkIf config.alyraffauf.desktop.plasma.enable {
|
||||
# Enable SDDM + Plasma Desktop.
|
||||
services = {
|
||||
desktopManager.plasma6.enable = true;
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
homeLab.binaryCache.enable = lib.mkEnableOption "Enables nixpkgs cache.";
|
||||
alyraffauf.homeLab.binaryCache.enable = lib.mkEnableOption "Enables nixpkgs cache.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeLab.binaryCache.enable {
|
||||
config = lib.mkIf config.alyraffauf.homeLab.binaryCache.enable {
|
||||
services.nix-serve = {
|
||||
enable = true;
|
||||
secretKeyFile = "/var/cache-priv-key.pem";
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
imports = [./binaryCache ./reverseProxy ./nixContainers ./ociContainers ./samba];
|
||||
|
||||
options = {
|
||||
homeLab.enable = lib.mkEnableOption "Enables fully functional Home Lab.";
|
||||
alyraffauf.homeLab.enable = lib.mkEnableOption "Enables fully functional Home Lab.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeLab.enable {
|
||||
homeLab.binaryCache.enable = lib.mkDefault true;
|
||||
homeLab.nixContainers.enable = lib.mkDefault true;
|
||||
homeLab.ociContainers.enable = lib.mkDefault true;
|
||||
homeLab.reverseProxy.enable = lib.mkDefault true;
|
||||
homeLab.samba.enable = lib.mkDefault true;
|
||||
config = lib.mkIf config.alyraffauf.homeLab.enable {
|
||||
alyraffauf.homeLab.binaryCache.enable = lib.mkDefault true;
|
||||
alyraffauf.homeLab.nixContainers.enable = lib.mkDefault true;
|
||||
alyraffauf.homeLab.ociContainers.enable = lib.mkDefault true;
|
||||
alyraffauf.homeLab.reverseProxy.enable = lib.mkDefault true;
|
||||
alyraffauf.homeLab.samba.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
homeLab.nixContainers.enable =
|
||||
alyraffauf.homeLab.nixContainers.enable =
|
||||
lib.mkEnableOption "Enables select nix containers.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeLab.nixContainers.enable {
|
||||
config = lib.mkIf config.alyraffauf.homeLab.nixContainers.enable {
|
||||
containers.navidrome = {
|
||||
autoStart = true;
|
||||
bindMounts."/Music".hostPath = "/mnt/Media/Music";
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
homeLab.ociContainers.enable =
|
||||
alyraffauf.homeLab.ociContainers.enable =
|
||||
lib.mkEnableOption "Enables select OCI containers.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeLab.ociContainers.enable {
|
||||
apps.podman.enable = lib.mkDefault true;
|
||||
config = lib.mkIf config.alyraffauf.homeLab.ociContainers.enable {
|
||||
alyraffauf.apps.podman.enable = lib.mkDefault true;
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
audiobookshelf = {
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
homeLab.reverseProxy.enable =
|
||||
alyraffauf.homeLab.reverseProxy.enable =
|
||||
lib.mkEnableOption "Enables nginx reverse proxy.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeLab.reverseProxy.enable {
|
||||
config = lib.mkIf config.alyraffauf.homeLab.reverseProxy.enable {
|
||||
# services.ddclient.enable = true;
|
||||
# services.ddclient.configFile = "/etc/ddclient/ddclient.conf";
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
homeLab.samba.enable =
|
||||
alyraffauf.homeLab.samba.enable =
|
||||
lib.mkEnableOption "Enables /Archive and /Media samba shares.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeLab.samba.enable {
|
||||
config = lib.mkIf config.alyraffauf.homeLab.samba.enable {
|
||||
services = {
|
||||
samba = {
|
||||
enable = true;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}: {
|
||||
imports = [./plymouth ./power-profiles-daemon ./zramSwap];
|
||||
|
||||
systemConfig.power-profiles-daemon.enable = lib.mkDefault true;
|
||||
alyraffauf.system.power-profiles-daemon.enable = lib.mkDefault true;
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
|
@ -5,12 +5,12 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
systemConfig.plymouth.enable =
|
||||
alyraffauf.system.plymouth.enable =
|
||||
lib.mkEnableOption
|
||||
"Enables plymouth boot screen with reduced text verbosity.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.systemConfig.plymouth.enable {
|
||||
config = lib.mkIf config.alyraffauf.system.plymouth.enable {
|
||||
boot = {
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
systemConfig.power-profiles-daemon.enable =
|
||||
alyraffauf.system.power-profiles-daemon.enable =
|
||||
lib.mkEnableOption "Enables power-profiles-daemon.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.systemConfig.power-profiles-daemon.enable {
|
||||
config = lib.mkIf config.alyraffauf.system.power-profiles-daemon.enable {
|
||||
services = {
|
||||
power-profiles-daemon.enable = true;
|
||||
upower.enable = true;
|
22
nixosModules/system/zramSwap/default.nix
Normal file
22
nixosModules/system/zramSwap/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
alyraffauf.system.zramSwap.enable = lib.mkEnableOption "Enables zram swap.";
|
||||
alyraffauf.system.zramSwap.size = lib.mkOption {
|
||||
description = "Percent size of the zram swap.";
|
||||
default = 50;
|
||||
type = lib.types.int;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.system.zramSwap.enable {
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = config.alyraffauf.system.zramSwap.size;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
systemConfig.zramSwap.enable = lib.mkEnableOption "Enables zram swap.";
|
||||
systemConfig.zramSwap.size = lib.mkOption {
|
||||
description = "Percent size of the zram swap.";
|
||||
default = 50;
|
||||
type = lib.types.int;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.systemConfig.zramSwap.enable {
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = config.systemConfig.zramSwap.size;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,10 +6,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
userConfig.aly.enable = lib.mkEnableOption "Enables Aly's user.";
|
||||
alyraffauf.user.aly.enable = lib.mkEnableOption "Enables Aly's user.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.userConfig.aly.enable {
|
||||
config = lib.mkIf config.alyraffauf.user.aly.enable {
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.aly = {
|
||||
isNormalUser = true;
|
|
@ -6,7 +6,7 @@
|
|||
}: {
|
||||
imports = [./aly ./dustin];
|
||||
|
||||
userConfig.aly.enable = lib.mkDefault true;
|
||||
alyraffauf.user.aly.enable = lib.mkDefault true;
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
userConfig.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
|
||||
alyraffauf.user.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.userConfig.dustin.enable {
|
||||
config = lib.mkIf config.alyraffauf.user.dustin.enable {
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.dustin = {
|
||||
isNormalUser = true;
|
Loading…
Reference in a new issue