formatted all files with nixfmt, added env variable to hold secrets

This commit is contained in:
pagedmov
2024-11-09 16:20:27 -05:00
parent d38da56ba2
commit 2a1ba18c09
93 changed files with 948 additions and 1254 deletions

View File

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

View File

@@ -1,6 +1,7 @@
{lib, config, ...}: {
{ lib, config, ... }: {
options = {
movOpts.sysEnv.issue.enable = lib.mkEnableOption "enables custom /etc/issue splash screen for the tty";
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 = ''

View File

@@ -1,6 +1,7 @@
{lib, config, ... }: {
{ lib, config, ... }: {
options = {
movOpts.sysEnv.nixSettings.enable = lib.mkEnableOption "enables my nixos settings";
movOpts.sysEnv.nixSettings.enable =
lib.mkEnableOption "enables my nixos settings";
};
config = lib.mkIf config.movOpts.sysEnv.nixSettings.enable {
system.stateVersion = "24.05";
@@ -8,8 +9,8 @@
nix = {
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
substituters = ["https://nix-gaming.cachix.org"];
experimental-features = [ "nix-command" "flakes" ];
substituters = [ "https://nix-gaming.cachix.org" ];
};
gc = {
automatic = true;

View File

@@ -1,24 +1,17 @@
{
pkgs,
self,
lib,
config,
...
}: {
{ pkgs, self, lib, config, ... }: {
options = {
movOpts.sysEnv.sddmConfig.enable = lib.mkEnableOption "enables custom sddm configuration";
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";
}
)
(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;

View File

@@ -1,18 +1,12 @@
{
pkgs,
self,
lib,
config,
...
}:
{ pkgs, self, lib, config, ... }:
let
scheme = "tokyo-night-dark";
wallpaper = "${self}/assets/wallpapers/dark-waves.jpg";
in
{
in {
options = {
movOpts.sysEnv.stylixConfig.enable = lib.mkEnableOption "enables custom stylix options";
movOpts.sysEnv.stylixConfig.enable =
lib.mkEnableOption "enables custom stylix options";
};
config = lib.mkIf config.movOpts.sysEnv.stylixConfig.enable {
stylix = {
@@ -25,7 +19,7 @@ in
};
polarity = "dark";
autoEnable = true;
opacity.terminal = 0.50;
opacity.terminal = 0.5;
targets = {
console.enable = true;
feh.enable = true;
@@ -39,15 +33,15 @@ in
};
fonts = {
monospace = {
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrains Mono Nerd Font";
};
sansSerif = {
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrains Mono Nerd Font";
};
serif = {
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrains Mono Nerd Font";
};
sizes = {