Merge branch 'master' of github.com:pagedMov/nixos-config

This commit is contained in:
pagedmov
2024-11-02 17:14:29 -04:00
144 changed files with 59 additions and 125 deletions

0
modules/home/default.nix Normal file → Executable file
View File

0
modules/home/environment/default.nix Normal file → Executable file
View File

0
modules/home/environment/gtk.nix Normal file → Executable file
View File

0
modules/home/environment/hyprland.nix Normal file → Executable file
View File

0
modules/home/environment/spicetify.nix Normal file → Executable file
View File

0
modules/home/environment/starship.nix Normal file → Executable file
View File

0
modules/home/environment/stylix.nix Normal file → Executable file
View File

0
modules/home/environment/swaync.nix Normal file → Executable file
View File

0
modules/home/environment/userpkgs.nix Normal file → Executable file
View File

0
modules/home/environment/waybar.nix Normal file → Executable file
View File

0
modules/home/environment/zshell.nix Normal file → Executable file
View File

0
modules/home/files.nix Normal file → Executable file
View File

0
modules/home/programs/autojump.nix Normal file → Executable file
View File

0
modules/home/programs/bat.nix Normal file → Executable file
View File

0
modules/home/programs/btop.nix Normal file → Executable file
View File

0
modules/home/programs/cava.nix Normal file → Executable file
View File

0
modules/home/programs/default.nix Normal file → Executable file
View File

0
modules/home/programs/eza.nix Normal file → Executable file
View File

0
modules/home/programs/firefox.nix Normal file → Executable file
View File

0
modules/home/programs/fuzzel.nix Normal file → Executable file
View File

0
modules/home/programs/fzf.nix Normal file → Executable file
View File

0
modules/home/programs/git.nix Normal file → Executable file
View File

0
modules/home/programs/kitty.nix Normal file → Executable file
View File

0
modules/home/programs/password-store.nix Normal file → Executable file
View File

0
modules/home/programs/yazi.nix Normal file → Executable file
View File

0
modules/home/scripts/commands/invoke.nix Normal file → Executable file
View File

0
modules/home/scripts/commands/runbg.nix Normal file → Executable file
View File

0
modules/home/scripts/commands/splash.nix Normal file → Executable file
View File

2
modules/home/scripts/commands/toolbelt.nix Normal file → Executable file
View File

@@ -59,7 +59,7 @@ pkgs.writeShellScriptBin "toolbelt" ''
[\"Change System Color Scheme\"]=\"Changes the base16 color scheme used by stylix to color system applications.\"
[\"Open System Monitor\"]=\"Opens a btop window.\"
[\"Open Volume Controls\"]=\"Opens alsamixer.\"
[\"Open Keyring\"]=\"Opens a fuzzy finder with all of the paths held in ~/.password-store. Selecting one uses pass to copy that password to the clipboard. Password is cleared from clipboard history after 45 seconds.\"
[\"Open Keyring\"]=\"Opens a fuzzy finder with all of the paths held in ~/.password-store. Selecting one uses pass to copy that password to the clipboard. Password is cleared from clipboard after 45 seconds, and isn't saved to clipboard history.\"
[\"View Clipboard History\"]=\"Opens clipboard history. Selecting an item copies it to the clipboard.\"
); \
if [[ -v descriptions[\$cleaned_key] ]]; then \

0
modules/home/scripts/commands/viconf.nix Normal file → Executable file
View File

0
modules/home/scripts/default.nix Normal file → Executable file
View File

0
modules/home/scripts/nix/garbage-collect.nix Normal file → Executable file
View File

0
modules/home/scripts/nix/nsp.nix Normal file → Executable file
View File

0
modules/home/scripts/nix/rebuild.nix Normal file → Executable file
View File

0
modules/home/scripts/wm-controls/chpaper.nix Normal file → Executable file
View File

0
modules/home/scripts/wm-controls/chscheme.nix Normal file → Executable file
View File

0
modules/home/scripts/wm-controls/keyring.nix Normal file → Executable file
View File

0
modules/home/scripts/wm-controls/moveonscreen.nix Normal file → Executable file
View File

0
modules/home/scripts/wm-controls/s_check.nix Normal file → Executable file
View File

0
modules/home/scripts/wm-controls/switchmon.nix Normal file → Executable file
View File

5
modules/server/cdn/default.nix Executable file
View File

@@ -0,0 +1,5 @@
{ pkgs, lib, config, ... }:
{
imports = [ ./jellyfin.nix ];
}

13
modules/server/cdn/jellyfin.nix Executable file
View File

@@ -0,0 +1,13 @@
{ pkgs, lib, config, ... }:
{
options = {
jellyfinConfig.enable = lib.mkEnableOption "Enables the server's jellyfin config";
};
config = lib.mkIf config.jellyfinConfig.enable {
services.jellyfin = {
enable = true;
openFirewall = true;
};
};
}

20
modules/server/default.nix Normal file → Executable file
View File

@@ -1,17 +1,11 @@
{ pkgs, lib, ... }:
{
config,
inputs,
scheme ? {},
wallpaper,
username,
host,
...
}: {
imports = [
../sys/software/nixvim
../sys/hardware/bootloader.nix
./services.nix
./home.nix
./packages.nix
./cdn
./glasshaus
];
jellyfinConfig.enable = lib.mkDefault false;
caddyConfig.enable = lib.mkDefault false;
}

View File

@@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
{
options = {
caddyConfig.enable = lib.mkEnableOption "Enable my caddy config for the glasshaus.info domain name";
};
config = lib.mkIf config.caddyConfig.enable {
services.caddy = {
enable = true;
configFile = pkgs.writeText "Caddyfile" ''
glasshaus.info {
reverse_proxy localhost:8096
}
'';
};
};
}

View File

@@ -0,0 +1,5 @@
{ pkgs, lib, config, ... }:
{
imports = [ ./caddy.nix ];
}

View File

@@ -1,31 +0,0 @@
{ pkgs, inputs, config, host, self, ... }: {
imports = [inputs.home-manager.nixosModules.home-manager];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
extraSpecialArgs = {inherit host self inputs;};
users."pagedmov" = {
programs.home-manager.enable = true;
imports = [
../home/environment/zshell.nix
../home/environment/starship.nix
../home/programs/eza.nix
../home/scripts
];
home = {
username = "pagedmov";
homeDirectory = "/home/pagedmov";
stateVersion = "24.05";
};
};
};
users.users = {
pagedmov = {
isNormalUser = true;
initialPassword = "1234";
extraGroups = ["wheel"];
};
root.initialPassword = "1234";
};
}

View File

@@ -1,51 +0,0 @@
{ pkgs, ... }:
let
extraFigletFonts = pkgs.fetchFromGitHub {
owner = "xero";
repo = "figlet-fonts";
rev = "master";
sha256 = "sha256-dAs7N66D2Fpy4/UB5Za1r2qb1iSAJR6TMmau1asxgtY=";
};
toilet-extrafonts = pkgs.toilet.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs or [] ++ [extraFigletFonts];
installPhase = ''
make install PREFIX=$out
mkdir -p $out/share/figlet
cp -r ${extraFigletFonts}/* $out/share/figlet
'';
});
in
{
environment.systemPackages = with pkgs; [
toilet-extrafonts
gtrash
alsa-utils
python3
fail2ban
inetutils
lolcat
lsof
mullvad
neofetch
nh
nix-output-monitor
nix-prefetch-scripts
nixos-option
nix-search-cli
openssl
p7zip
jq
git
pamixer
parted
pkg-config
socat
sox
stress
tree
unrar
unzip
usbutils
];
}

View File

@@ -1,9 +0,0 @@
{...}: {
programs = {
zsh.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
}

View File

@@ -1,20 +0,0 @@
{
config,
pkgs,
username,
...
}: {
systemd.user.tmpfiles.users."${username}".rules = [
"d /home/${username}/media 0770 ${username} users -"
"d /home/${username}/backup 0770 ${username} users -"
"d /home/${username}/cloud 0770 ${username} users -"
"d /home/${username}/repositories 0770 ${username} users -"
"d /home/${username}/game_servers 0770 ${username} users -"
"d /home/${username}/inbox 0770 ${username} users -"
"d /home/${username}/outbox 0770 ${username} users -"
];
services.openssh = {
enable = true;
allowSFTP = true;
};
}

0
modules/sys/default.nix Normal file → Executable file
View File

0
modules/sys/environment/default.nix Normal file → Executable file
View File

0
modules/sys/environment/issue.nix Normal file → Executable file
View File

0
modules/sys/environment/nix.nix Normal file → Executable file
View File

0
modules/sys/environment/sddm.nix Normal file → Executable file
View File

0
modules/sys/environment/stylix.nix Normal file → Executable file
View File

0
modules/sys/hardware/bootloader.nix Normal file → Executable file
View File

0
modules/sys/hardware/default.nix Normal file → Executable file
View File

1
modules/sys/hardware/network.nix Normal file → Executable file
View File

@@ -14,6 +14,7 @@
};
firewall = {
enable = true;
allowedTCPPorts = [ 443 ];
};
};
};

0
modules/sys/hardware/powerprofiles.nix Normal file → Executable file
View File

0
modules/sys/software/default.nix Normal file → Executable file
View File

0
modules/sys/software/gaming/default.nix Normal file → Executable file
View File

0
modules/sys/software/gaming/gaming_pkgs.nix Normal file → Executable file
View File

0
modules/sys/software/gaming/steam.nix Normal file → Executable file
View File

0
modules/sys/software/module-test.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/autocmd.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/default.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/keymaps.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/options.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/alpha.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/barbar.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/cmp.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/coq.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/default.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/extra_plugins.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/haskell.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/lsp.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/lualine.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/nvim-tree.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/plugins.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/telescope.nix Normal file → Executable file
View File

0
modules/sys/software/nixvim/plugins/vim-matchup.nix Normal file → Executable file
View File

0
modules/sys/software/packages.nix Normal file → Executable file
View File

0
modules/sys/software/programs.nix Normal file → Executable file
View File

0
modules/sys/software/services.nix Normal file → Executable file
View File

0
modules/sys/software/virtualization.nix Normal file → Executable file
View File