renamed some files and directories that had identical filenames. Altered some nixvim plugin options. Set up gpg signing for git commits.

This commit is contained in:
pagedmov
2024-11-10 02:57:08 -05:00
committed by pagedmov
parent 2a1ba18c09
commit 366a0c1175
15 changed files with 41 additions and 4 deletions

4
modules/sys/sysenv/default.nix Executable file
View File

@@ -0,0 +1,4 @@
{ inputs, nixpkgs, nixvim, config, self, username, host, ... }: {
imports = [ (import ./sddm.nix) ] ++ [ (import ./issue.nix) ]
++ [ (import ./nix.nix) ] ++ [ (import ./stylix.nix) ];
}

35
modules/sys/sysenv/issue.nix Executable file
View File

@@ -0,0 +1,35 @@
{ lib, config, ... }: {
options = {
movOpts.sysEnv.issue.enable =
lib.mkEnableOption "enables custom /etc/issue splash screen for the tty";
};
config = lib.mkIf config.movOpts.sysEnv.issue.enable {
environment.etc."issue".text = ''
\e[38;5;27m \e[38;5;81m
\e[38;5;27m \e[38;5;81m \e[38;5;27m
\e[38;5;27m \e[38;5;81m \e[38;5;27m \e[38;5;81m
\e[38;5;27m\e[38;5;81m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;27m\e[38;5;81m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;81m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;81m\e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;81m\e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;27m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m\e[38;5;27m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m\e[38;5;27m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;27m \e[38;5;27m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;27m\e[38;5;81m \e[38;5;27m \e[38;5;81m
\e[38;5;81m \e[38;5;27m\e[38;5;81m \e[38;5;27m \e[38;5;81m
\e[38;5;27m \e[38;5;81m \e[38;5;27m \e[38;5;81m
\e[38;5;27m \e[38;5;81m \e[38;5;27m \e[38;5;81m
\e[38;5;27m \e[38;5;81m
\e[1;32mSystem Maintainer\e[0m: Kyler Clay
\e[1;32mContact\e[0m: kylerclay@proton.me
470-403-8522
Run '\e[1;35mnixos-help\e[0m' for the NixOS manual.
Run '\e[1;35mHyprland\e[0m' to enter the desktop environment.
'';
};
}

24
modules/sys/sysenv/nix.nix Executable file
View File

@@ -0,0 +1,24 @@
{ lib, config, ... }: {
options = {
movOpts.sysEnv.nixSettings.enable =
lib.mkEnableOption "enables my nixos settings";
};
config = lib.mkIf config.movOpts.sysEnv.nixSettings.enable {
system.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
substituters = [ "https://nix-gaming.cachix.org" ];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
};
}

23
modules/sys/sysenv/sddm.nix Executable file
View File

@@ -0,0 +1,23 @@
{ pkgs, self, lib, config, ... }: {
options = {
movOpts.sysEnv.sddmConfig.enable =
lib.mkEnableOption "enables custom sddm configuration";
};
config = lib.mkIf config.movOpts.sysEnv.sddmConfig.enable {
environment.systemPackages = [
(pkgs.catppuccin-sddm.override {
flavor = "mocha";
font = "JetBrains Mono Nerd Font";
fontSize = "14";
loginBackground = true;
background = "${self}/assets/wallpapers/dark-waves.jpg";
})
];
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
};
};
}

56
modules/sys/sysenv/stylix.nix Executable file
View File

@@ -0,0 +1,56 @@
{ pkgs, self, lib, config, ... }:
let
scheme = "tokyo-night-dark";
wallpaper = "${self}/assets/wallpapers/dark-waves.jpg";
in {
options = {
movOpts.sysEnv.stylixConfig.enable =
lib.mkEnableOption "enables custom stylix options";
};
config = lib.mkIf config.movOpts.sysEnv.stylixConfig.enable {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/${scheme}.yaml";
image = wallpaper;
homeManagerIntegration = {
autoImport = true;
followSystem = true;
};
polarity = "dark";
autoEnable = true;
opacity.terminal = 0.5;
targets = {
console.enable = true;
feh.enable = true;
grub.enable = true;
gtk.enable = true;
nixos-icons.enable = true;
};
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
};
fonts = {
monospace = {
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrains Mono Nerd Font";
};
sansSerif = {
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrains Mono Nerd Font";
};
serif = {
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrains Mono Nerd Font";
};
sizes = {
desktop = 10;
applications = 14;
terminal = 14;
popups = 16;
};
};
};
};
}