cleaned dead config
This commit is contained in:
parent
5bae6c9d0e
commit
4d8cb7e83d
15 changed files with 87 additions and 147 deletions
36
extract.sh
Normal file
36
extract.sh
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function extract {
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
# display usage if no parameters given
|
||||||
|
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
|
||||||
|
echo " extract <path/file_name_1.ext> [path/file_name_2.ext] [path/file_name_3.ext]"
|
||||||
|
else
|
||||||
|
for n in "$@"
|
||||||
|
do
|
||||||
|
if [ -f "$n" ] ; then
|
||||||
|
case "${n%,}" in
|
||||||
|
*.tar.bz2|*.tar.gz|*.tar.xz|*.tbz2|*.tgz|*.txz|*.tar)
|
||||||
|
tar xvf "$n" ;;
|
||||||
|
*.lzma) unlzma ./"$n" ;;
|
||||||
|
*.bz2) bunzip2 ./"$n" ;;
|
||||||
|
*.rar) unrar x -ad ./"$n" ;;
|
||||||
|
*.gz) gunzip ./"$n" ;;
|
||||||
|
*.zip) unzip ./"$n" ;;
|
||||||
|
*.z) uncompress ./"$n" ;;
|
||||||
|
*.7z|*.arj|*.cab|*.chm|*.deb|*.dmg|*.iso|*.lzh|*.msi|*.rpm|*.udf|*.wim|*.xar)
|
||||||
|
7z x ./"$n" ;;
|
||||||
|
*.xz) unxz ./"$n" ;;
|
||||||
|
*.exe) cabextract ./"$n" ;;
|
||||||
|
*)
|
||||||
|
echo "extract: '$n' - unknown archive method"
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
echo "'$n' - file does not exist"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
@ -63,22 +63,21 @@
|
||||||
./machines/katana.nix #machine specific configuration
|
./machines/katana.nix #machine specific configuration
|
||||||
"speccon18" #default user
|
"speccon18" #default user
|
||||||
[
|
[
|
||||||
hyprland.nixosModules.default
|
# hyprland.nixosModules.default
|
||||||
{programs.hyprland.enable = true;}
|
# ./modules/system/desktop-environments/hyprland.nix
|
||||||
./hosts/katana/default.nix
|
./hosts/katana/default.nix
|
||||||
./hosts/katana/networkd.nix
|
./hosts/katana/networkd.nix
|
||||||
./hosts/katana/system-pkgs.nix
|
./hosts/katana/system-pkgs.nix
|
||||||
./modules/system/services/docker.nix
|
./modules/system/services/docker.nix
|
||||||
./modules/system/services/openssh.nix
|
./modules/system/services/openssh.nix
|
||||||
./modules/system/desktop-environments/gnome.nix
|
./modules/system/desktop-environments/gnome.nix
|
||||||
./modules/system/desktop-environments/hyprland.nix
|
|
||||||
./modules/system/services/syncthing.nix
|
./modules/system/services/syncthing.nix
|
||||||
./modules/system/services/tailscale.nix
|
./modules/system/services/tailscale.nix
|
||||||
|
|
||||||
] #extra modules to load
|
] #extra modules to load
|
||||||
[
|
[
|
||||||
hyprland.homeManagerModules.default
|
hyprland.homeManagerModules.default
|
||||||
./modules/home-manager/hyprland.nix
|
# ./modules/home-manager/hyprland.nix
|
||||||
./modules/home-manager/helix.nix
|
./modules/home-manager/helix.nix
|
||||||
./modules/home-manager/alacritty.nix
|
./modules/home-manager/alacritty.nix
|
||||||
./modules/home-manager/vscode.nix
|
./modules/home-manager/vscode.nix
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,18 @@
|
||||||
{ modulesPath, config, pkgs, lib, self, ... }:
|
{ modulesPath, config, pkgs, lib, self, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
pkg-config
|
||||||
ripgrep
|
ripgrep
|
||||||
|
openssl
|
||||||
tree
|
tree
|
||||||
cargo
|
|
||||||
unrar
|
unrar
|
||||||
unzip
|
unzip
|
||||||
gzip
|
gzip
|
||||||
p7zip
|
p7zip
|
||||||
bzip2
|
bzip2
|
||||||
dconf2nix
|
dconf2nix
|
||||||
rustc
|
|
||||||
bat
|
bat
|
||||||
exa
|
exa
|
||||||
mdbook
|
|
||||||
uutils-coreutils
|
uutils-coreutils
|
||||||
htop
|
htop
|
||||||
zsh
|
zsh
|
||||||
|
|
@ -24,5 +23,6 @@
|
||||||
direnv #used for development environments
|
direnv #used for development environments
|
||||||
python39
|
python39
|
||||||
gcc
|
gcc
|
||||||
|
bottom
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
programs.eww = {
|
|
||||||
enable=false;
|
|
||||||
configDir=../../dotfiles/eww;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
bind = SUPER, Return, exec, alacritty
|
bind = SUPER, Return, exec, alacritty
|
||||||
bind = CONTROL_SHIFT, W, exec, firefox
|
bind = CONTROL_SHIFT, W, exec, firefox
|
||||||
|
bind = CONTROL_SHIFT, Lm, exec, rofi -show drun
|
||||||
|
exec-once=/usr/lib/polkit-kde-authentication-agent-1
|
||||||
|
exec-once=waybar
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,5 @@
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
enableNushellIntegration = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
{
|
{
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
tray.enable = true;
|
tray.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -7,22 +7,19 @@
|
||||||
main_bar = {
|
main_bar = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
modules-left = [
|
modules-left = [
|
||||||
"custom/launcher"
|
|
||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
"custom/media"
|
|
||||||
"tray"
|
"tray"
|
||||||
];
|
];
|
||||||
modules-center = [];
|
modules-center = [
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"custom/updates"
|
|
||||||
"custom/wallpaper"
|
|
||||||
"backlight"
|
"backlight"
|
||||||
"custom/pw-volume"
|
"custom/pw-volume"
|
||||||
"clock"
|
|
||||||
"battery"
|
"battery"
|
||||||
"custom/power"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
"custom/pipewire" = {
|
"custom/pipewire" = {
|
||||||
"exec" = "pw-volume status";
|
"exec" = "pw-volume status";
|
||||||
"return-type" = "json";
|
"return-type" = "json";
|
||||||
|
|
@ -85,39 +82,6 @@
|
||||||
"format" = " {}%";
|
"format" = " {}%";
|
||||||
"max-length" = 10;
|
"max-length" = 10;
|
||||||
};
|
};
|
||||||
"custom/media" = {
|
|
||||||
"interval" = 30;
|
|
||||||
"format" = "{icon} {}";
|
|
||||||
"return-type" = "json";
|
|
||||||
"max-length" = 20;
|
|
||||||
"format-icons" = {
|
|
||||||
"spotify" = " ";
|
|
||||||
"default" = " ";
|
|
||||||
};
|
|
||||||
"escape" = true;
|
|
||||||
"exec" = "$HOME/.config/system_scripts/mediaplayer.py 2> /dev/null";
|
|
||||||
"on-click" = "playerctl play-pause";
|
|
||||||
};
|
|
||||||
"custom/launcher" = {
|
|
||||||
"format" = " ";
|
|
||||||
"on-click" = "rofi -show drun";
|
|
||||||
"on-click-right" = "killall rofi";
|
|
||||||
};
|
|
||||||
"custom/power" = {
|
|
||||||
"format" = " ";
|
|
||||||
"on-click" = "bash ~/.config/rofi/leave/leave.sh";
|
|
||||||
};
|
|
||||||
"custom/updates" = {
|
|
||||||
"format" = "{} Update(s)";
|
|
||||||
"exec" = "checkupdates | wc -l";
|
|
||||||
"exec-if" = "[[ $(checkupdates | wc -l) != 0 ]]";
|
|
||||||
"interval" = 15;
|
|
||||||
"on-click" = "alacritty -e paru -Syu && notify-send 'The system has been updated' ";
|
|
||||||
};
|
|
||||||
"custom/wallpaper" = {
|
|
||||||
"format" = " ";
|
|
||||||
"on-click" = "bash ~/.config/system_scripts/pkill_bc";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
style = ''
|
style = ''
|
||||||
|
|
@ -253,68 +217,6 @@
|
||||||
color: #B5E8E0;
|
color: #B5E8E0;
|
||||||
background: #161320;
|
background: #161320;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-launcher {
|
|
||||||
font-size: 24px;
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 8px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 5px;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition: none;
|
|
||||||
color: #89DCEB;
|
|
||||||
background: #161320;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power {
|
|
||||||
font-size: 20px;
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 8px;
|
|
||||||
margin-right: 8px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 5px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition: none;
|
|
||||||
color: #161320;
|
|
||||||
background: #F28FAD;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-wallpaper {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 8px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition: none;
|
|
||||||
color: #161320;
|
|
||||||
background: #C9CBFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-updates {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 8px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition: none;
|
|
||||||
color: #161320;
|
|
||||||
background: #E8A2AF;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 8px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition: none;
|
|
||||||
color: #161320;
|
|
||||||
background: #F2CDCD;
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -3,6 +3,5 @@
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = lib.mkDefault true;
|
enableZshIntegration = lib.mkDefault true;
|
||||||
# enableNushellIntegration = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -14,12 +14,10 @@
|
||||||
ls = "exa -l";
|
ls = "exa -l";
|
||||||
lsa = "exa -al";
|
lsa = "exa -al";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
osrb = "sudo nixos-rebuild $1 --flake ~/code/nix/nixos-config/#creatorforge-framework";
|
osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana";
|
||||||
zel = "zellij -s";
|
zel = "zellij -s";
|
||||||
ns = "nix-shell";
|
|
||||||
top = "btm";
|
top = "btm";
|
||||||
hx = "hx";
|
cat = "bat --decorations=never";
|
||||||
cat = "bat";
|
|
||||||
extract = "~/.config/zsh/extract.sh";
|
extract = "~/.config/zsh/extract.sh";
|
||||||
};
|
};
|
||||||
localVariables = {
|
localVariables = {
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnomeExtensions.dock-from-dash
|
gnomeExtensions.dock-from-dash
|
||||||
gnomeExtensions.pop-shell
|
gnomeExtensions.pop-shell
|
||||||
gnome.gnome-tweaks
|
|
||||||
gnome-extension-manager
|
gnome-extension-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
gnome = {
|
gnome = {
|
||||||
core-utilities.enable = false;
|
core-utilities.enable = false;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,29 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
nvidiaPatches = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
libsForQt5.polkit-kde-agent
|
libsForQt5.polkit-kde-agent
|
||||||
libsForQt5.qt5.qtwayland
|
libsForQt5.qt5.qtwayland
|
||||||
qt6.qtwayland
|
qt6.qtwayland
|
||||||
waybar
|
waybar
|
||||||
swww
|
swww
|
||||||
pw-volume
|
pw-volume
|
||||||
|
rofi-wayland
|
||||||
|
libnotify
|
||||||
|
mako
|
||||||
];
|
];
|
||||||
|
sessionVariables = {
|
||||||
|
WLR_NO_HARDWARE_CURSORS = "1";
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
hardware = {
|
||||||
|
# opengl.enable = true;
|
||||||
|
nvidia.modesetting.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
inputs.nixpkgs-wayland.packages.${system}.wayfire-unstable
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -6,10 +6,12 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
initialHashedPassword = "$y$j9T$RdLBHOvUpb17egl0d16LT/$3Y2RD/tT1IZ0nkfAR13pp3IzBjvKLRgGpDPLobUeO23";
|
initialHashedPassword = "$y$j9T$RdLBHOvUpb17egl0d16LT/$3Y2RD/tT1IZ0nkfAR13pp3IzBjvKLRgGpDPLobUeO23";
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdigmndcdQD/864P059K2hZOXyEkbGvMkH0/b2QavkD speccon18@creatorforge"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIrZpH5QV62dtTb2yx5I3PF2lJyNpPkV57pDlo6xawID"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPc1AQ6hcjdSZZuhS5SISwtulFoTLpC5f5JoMFQkZ5l2 specCon18@DESKTOP-Q1I2PAE"
|
|
||||||
];
|
];
|
||||||
description = "Steven Carpenter";
|
description = "Steven Carpenter";
|
||||||
extraGroups = [ "wheel" "docker" ];
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -7,21 +7,17 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
inkscape
|
inkscape
|
||||||
freecad
|
freecad
|
||||||
prismlauncher
|
|
||||||
calibre
|
calibre
|
||||||
bitwarden
|
bitwarden
|
||||||
firefox
|
firefox
|
||||||
discord
|
discord
|
||||||
nodejs-18_x
|
nodejs-20_x
|
||||||
fira-code
|
|
||||||
gimp
|
gimp
|
||||||
obsidian
|
obsidian
|
||||||
neofetch
|
neofetch
|
||||||
vlc
|
vlc
|
||||||
remmina
|
remmina
|
||||||
bacon
|
bacon
|
||||||
bottom
|
|
||||||
broot
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue