This commit is contained in:
xqtc161 2024-03-30 21:25:43 +01:00
commit 12087f2893
12 changed files with 219 additions and 15 deletions

View file

@ -198,6 +198,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_5": {
"inputs": {
"systems": "systems_4"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": { "gitignore": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -317,11 +335,19 @@
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
<<<<<<< HEAD
"lastModified": 1711651867, "lastModified": 1711651867,
"narHash": "sha256-QR1P5wE+K+P86HsTcA1vK7zPVIibrEfykETUGE8aZ9A=", "narHash": "sha256-QR1P5wE+K+P86HsTcA1vK7zPVIibrEfykETUGE8aZ9A=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7cdbfcbbd2b142800ef6ca2d53ce86b24b1c5f1f", "rev": "7cdbfcbbd2b142800ef6ca2d53ce86b24b1c5f1f",
=======
"lastModified": 1711747752,
"narHash": "sha256-iEeV/qrWaKfbdhR49B5F/sm/k0yxiGUAE5eXaoLSFNs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "387ef8710bf6ec095dea0829462f3d76a8a7f31f",
>>>>>>> 10d7e7a560b4ae17e9c2df26080f4555c9719833
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -363,6 +389,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1686020360,
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4729ffac6fd12e26e5a8de002781ffc49b0e94b7",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"devshell": "devshell", "devshell": "devshell",
@ -376,11 +418,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1711630555, "lastModified": 1711745924,
"narHash": "sha256-jslStwDlRwVZLwcFkExWegOGYv/Dn9q7yoocUX7AsIg=", "narHash": "sha256-ZYVrOg12pWNbY1hx1lOu3cwER6xalEHUUIXnfbkCtUY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "acb917fbf2bc9ce9c556516d8a1f257709b3cf1e", "rev": "4f83bcf2906c1c933316396221024f3482a7b086",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -426,7 +468,8 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
"nixpkgs-master": "nixpkgs-master", "nixpkgs-master": "nixpkgs-master",
"nixvim": "nixvim" "nixvim": "nixvim",
"spicetify-nix": "spicetify-nix"
} }
}, },
"rust-overlay": { "rust-overlay": {
@ -445,6 +488,25 @@
"type": "github" "type": "github"
} }
}, },
"spicetify-nix": {
"inputs": {
"flake-utils": "flake-utils_5",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1704167711,
"narHash": "sha256-kFDq+kf/Di/P8bq5sUP8pVwRkrSVrABksBjMPmLic3s=",
"owner": "the-argus",
"repo": "spicetify-nix",
"rev": "1325416f951d6a82cfddb1289864ad782e2b87c4",
"type": "github"
},
"original": {
"owner": "the-argus",
"repo": "spicetify-nix",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@ -489,6 +551,21 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

56
home/config-files/maxfetch.sh Executable file
View file

@ -0,0 +1,56 @@
#!/usr/bin/env bash
unicode=" "
version="1.2.0"
_black=$(tput setaf 0)
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
blue=$(tput setaf 4)
magenta=$(tput setaf 5)
cyan=$(tput setaf 6)
_white=$(tput setaf 7)
_bright=$(tput bold)
normal=$(tput sgr0)
_underline=$(tput smul)
up=$(uptime | awk -F'( |,|:)+' '{
d=h=m=0;
if ($7=="min")
m=$6;
else {
if ($7~/^day/) { d=$6; h=$8; m=$9}
else {h=$6;m=$7}
}
}
{ print h+0,"h",m+0,"m" }
')
up=$(sed -e "s/ h/h/g" <<< ${up})
up=$(sed -e "s/ m/m/g" <<< ${up})
pkgs=$(nix-store --query --requisites /run/current-system | wc -l)
arch=$(nix-instantiate --eval -E 'builtins.currentSystem')
arch_sanitized=$(echo $arch | sed 's/^"//;s/"$//')
fetch() {
echo "${cyan}$(tput bold) _ ___ ____ ____ ${normal}$(tput sgr0)"
echo "${cyan}$(tput bold) / |/ (_)_ __/ __ \/ __/ ${normal}$(tput sgr0)"
echo "${cyan}$(tput bold) / / /\ \ / /_/ /\ \ ${normal}$(tput sgr0)"
echo "${cyan}$(tput bold) /_/|_/_//_\_"'\\'"____/___/ ${normal}$(tput sgr0)"
echo ""
echo " ╭─────────────╮ "
echo "${red}${normal} user │ ${red}$(whoami)${normal}"
echo "${yellow}${normal} distro │ ${yellow}$(sed -nE "s@PRETTY_NAME=\"([^\"]*)\"@\1@p" /etc/os-release)${normal} "
echo "${green}${normal} kernel │ ${green}$(uname -r)${normal} "
echo "${cyan}󱂬 ${normal} de/wm │ ${cyan}$XDG_CURRENT_DESKTOP${normal} "
echo "${blue}${normal} uptime │ ${blue}${up}${normal} "
echo "${magenta}${normal} shell │ ${magenta}$(echo ${SHELL##*/})${normal} "
echo "${red}󰏖 ${normal} pkgs │ ${red}${pkgs}${normal} "
echo "${yellow}${normal} arch │ ${yellow}${arch_sanitized}${normal} "
echo " ├─────────────┤ "
echo "${_white}${normal}colors │${_white}$unicode${normal}${red}$unicode${normal}${yellow}$unicode${normal}${green}$unicode${normal}${cyan}$unicode${normal}${blue}$unicode${normal}${magenta}$unicode${normal}${_black}$unicode${normal}"
echo " ╰─────────────╯ "
}
fetch && exit 0

View file

@ -122,7 +122,7 @@ config.enable_scroll_bar = false
config.enable_tab_bar = true config.enable_tab_bar = true
config.tab_bar_at_bottom = true config.tab_bar_at_bottom = true
config.hide_mouse_cursor_when_typing = false config.hide_mouse_cursor_when_typing = false
config.enable_wayland = true config.enable_wayland = false
config.front_end = "OpenGL" config.front_end = "OpenGL"
config.warn_about_missing_glyphs = false config.warn_about_missing_glyphs = false
return config return config

View file

@ -14,6 +14,7 @@
./modules/home-pkgs.nix ./modules/home-pkgs.nix
./modules/git.nix ./modules/git.nix
./modules/rofi.nix ./modules/rofi.nix
./modules/spicetify.nix
#./modules/ssh.nix #./modules/ssh.nix
]; ];
home.username = "xqtc"; home.username = "xqtc";

View file

@ -9,6 +9,23 @@
color-scheme = "prefer-dark"; color-scheme = "prefer-dark";
cursor-theme = "Adwaita"; cursor-theme = "Adwaita";
}; };
"org/gnome/shell" = {
disable-user-extensions = false;
# `gnome-extensions list` for a list
enabled-extensions = [
"user-theme@gnome-shell-extensions.gcampax.github.com"
"trayIconsReloaded@selfmade.pl"
"Vitals@CoreCoding.com"
# "dash-to-panel@jderose9.github.com"
"blur-my-shell@aunetx"
"sound-output-device-chooser@kgshank.net"
"space-bar@luchrioh"
];
};
"org/gnome/shell/extensions/user-theme" = {
name = "Catppuccin-Mocha-Compact-Pink-Dark";
};
}; };
gtk = { gtk = {
@ -33,5 +50,13 @@
''; '';
}; };
}; };
home.sessionVariables.GTK_THEME = "palenight"; home.packages = with pkgs; [
gnomeExtensions.user-themes
gnomeExtensions.blur-my-shell
gnomeExtensions.tray-icons-reloaded
gnomeExtensions.vitals
gnomeExtensions.dash-to-panel
gnomeExtensions.sound-output-device-chooser
gnomeExtensions.space-bar
];
} }

View file

@ -10,14 +10,17 @@
pkgs.steam pkgs.steam
pkgs.protonup-qt pkgs.protonup-qt
pkgs.via pkgs.via
pkgs.spotify # pkgs.spotify
] ]
else []; else [];
maxfetch = pkgs.writeScriptBin "maxfetch" (builtins.readFile ../config-files/maxfetch.sh);
in { in {
home.packages = home.packages =
[ [
pkgs.neofetch pkgs.neofetch
pkgs.uwufetch pkgs.uwufetch
maxfetch
pkgs.btop pkgs.btop
pkgs.iftop pkgs.iftop
pkgs.ranger pkgs.ranger

View file

@ -14,7 +14,7 @@
nushell = { nushell = {
enable = true; enable = true;
shellAliases = {ls = "eza -l --icons --group-directories-first";}; shellAliases = {ls = "eza -l --icons --group-directories-first";};
extraConfig = "uwufetch --image"; extraConfig = "maxfetch";
configFile = { configFile = {
text = '' text = ''
$env.config = { $env.config = {

View file

@ -0,0 +1,22 @@
{
pkgs,
lib,
inputs,
...
}: let
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
in {
imports = [inputs.spicetify-nix.homeManagerModule];
programs.spicetify = {
enable = true;
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay
shuffle # shuffle+ (special characters are sanitized out of ext names)
# hidePodcasts
];
};
}

View file

@ -63,5 +63,7 @@
font = "Hack Nerd Font 15"; font = "Hack Nerd Font 15";
backgroundColor = "#1e1e2e"; backgroundColor = "#1e1e2e";
textColor = "#cdd6f4"; textColor = "#cdd6f4";
icons = true;
actions = true;
}; };
} }

View file

@ -61,7 +61,7 @@
nvidiaSettings = true; nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable; # package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@ -93,10 +93,11 @@
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
#services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
#services.xserver.displayManager.sddm.enable = true; #services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma6.enable = true; # services.xserver.desktopManager.plasma6.enable = true;
services.xserver.displayManager.defaultSession = "plasma"; services.xserver.desktopManager.gnome.enable = true;
# services.xserver.displayManager.defaultSession = "plasma";
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
virtualisation.docker.enable = true; virtualisation.docker.enable = true;

View file

@ -8,10 +8,10 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/home-manager.nix ../../../modules/home-manager.nix
../../common ../../../common
inputs.nixos-hardware.nixosModules.common-cpu-intel inputs.nixos-hardware.nixosModules.common-cpu-intel
../gc.nix ../../gc.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];

View file

@ -0,0 +1,17 @@
{ config, pkgs, ... }: {
# grafana configuration
services.grafana = {
enable = true;
# domain = "grafana";
port = 2342;
addr = "127.0.0.1";
};
# nginx reverse proxy
services.nginx.virtualHosts.${config.services.grafana.domain} = {
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true;
};
};
}