feat: migrate to Stylix (WIP)
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
{
|
||||
self,
|
||||
impurity,
|
||||
inputs,
|
||||
impurity,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "bak";
|
||||
extraSpecialArgs = {
|
||||
inherit inputs self impurity;
|
||||
|
@ -1,24 +1,36 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
username = "sadorowo";
|
||||
homeDirectory = "/home/${username}";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./packages.nix
|
||||
./programs.nix
|
||||
./theme.nix
|
||||
];
|
||||
imports = [ ./modules.nix ];
|
||||
|
||||
home = {
|
||||
inherit username homeDirectory;
|
||||
sessionVariables = {
|
||||
|
||||
packages = import ./packages.nix { inherit pkgs inputs; };
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
TZ = "Europe/Warsaw";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
permittedInsecurePackages = [
|
||||
"fluffychat-linux-1.26.0"
|
||||
"olm-3.2.16"
|
||||
];
|
||||
|
||||
allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (pkgs.lib.getName pkg) [
|
||||
"davinci-resolve"
|
||||
"anydesk"
|
||||
];
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
|
@ -1,32 +1,32 @@
|
||||
{
|
||||
webcopy = ''
|
||||
set -l domain (string trim $argv)
|
||||
get --recursive \
|
||||
--level 5 \
|
||||
--no-clobber \
|
||||
--page-requisites \
|
||||
--adjust-extension \
|
||||
--span-hosts \
|
||||
--convert-links \
|
||||
--domains $domain \
|
||||
--no-parent \
|
||||
$domain
|
||||
'';
|
||||
set -l domain (string trim $argv)
|
||||
get --recursive \
|
||||
--level 5 \
|
||||
--no-clobber \
|
||||
--page-requisites \
|
||||
--adjust-extension \
|
||||
--span-hosts \
|
||||
--convert-links \
|
||||
--domains $domain \
|
||||
--no-parent \
|
||||
$domain
|
||||
'';
|
||||
|
||||
venv = ''
|
||||
if [ -d .venv ]; then
|
||||
source .venv/bin/activate.fish
|
||||
else
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate.fish
|
||||
fi
|
||||
'';
|
||||
if [ -d .venv ]; then
|
||||
source .venv/bin/activate.fish
|
||||
else
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate.fish
|
||||
fi
|
||||
'';
|
||||
|
||||
thunderbird = ''
|
||||
if pgrep -x birdtray > /dev/null
|
||||
birdtray -s
|
||||
else
|
||||
birdtray &
|
||||
end
|
||||
'';
|
||||
if pgrep -x birdtray > /dev/null
|
||||
birdtray -s
|
||||
else
|
||||
birdtray &
|
||||
end
|
||||
'';
|
||||
}
|
||||
|
@ -2,12 +2,15 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
# DEs
|
||||
# DE + style
|
||||
../../modules/desktop-environments/hyprland.nix
|
||||
../../modules/home-manager/apple-style.nix
|
||||
../../modules/home-manager/stylix.nix
|
||||
|
||||
# Utilities + apps
|
||||
../../modules/home-manager/darkman.nix
|
||||
../../modules/home-manager/fish.nix
|
||||
../../modules/home-manager/ags.nix
|
||||
|
||||
# Home Manager modules
|
||||
inputs.ags.homeManagerModules.default
|
||||
@ -38,11 +41,21 @@
|
||||
};
|
||||
};
|
||||
|
||||
modules.darkman = {
|
||||
enable = true;
|
||||
customLightModeScript = "$HOME/.config/hypr/scripts/random-wallpaper.sh";
|
||||
customDarkModeScript = "$HOME/.config/hypr/scripts/random-wallpaper.sh";
|
||||
};
|
||||
modules.stylix = {
|
||||
enable = true;
|
||||
lightWallpaper = ./wallpapers/light.jpg;
|
||||
darkWallpaper = ./wallpapers/dark.jpg;
|
||||
};
|
||||
|
||||
stylix.targets.firefox.profileNames = ["default"];
|
||||
|
||||
modules.ags = {
|
||||
enable = true;
|
||||
full = true;
|
||||
};
|
||||
|
||||
modules.darkman.enable = true;
|
||||
modules.apple-style.enable = true;
|
||||
|
||||
modules.fish = {
|
||||
enable = true;
|
||||
@ -50,31 +63,6 @@
|
||||
functions = import ./fish-functions.nix;
|
||||
};
|
||||
|
||||
programs.pywal.enable = true;
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
extraPackages =
|
||||
with inputs.ags.packages.${pkgs.system};
|
||||
[
|
||||
apps
|
||||
battery
|
||||
bluetooth
|
||||
greet
|
||||
hyprland
|
||||
mpris
|
||||
network
|
||||
notifd
|
||||
powerprofiles
|
||||
tray
|
||||
wireplumber
|
||||
]
|
||||
++ [
|
||||
pkgs.dart-sass
|
||||
pkgs.fzf
|
||||
pkgs.icon-library
|
||||
];
|
||||
};
|
||||
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
@ -91,7 +79,7 @@
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
rust-lang.rust-analyzer
|
||||
bbenoist.nix
|
||||
];
|
@ -1,40 +1,34 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
pywal
|
||||
pywalfox-native
|
||||
with pkgs; [
|
||||
(python3.withPackages (
|
||||
py: with py; [
|
||||
pywayland
|
||||
]
|
||||
))
|
||||
|
||||
(python3.withPackages (
|
||||
py: with py; [
|
||||
pywayland
|
||||
]
|
||||
))
|
||||
(birdtray.overrideAttrs (_: {
|
||||
cmakeFlags = [ "-DOPT_THUNDERBIRD_CMDLINE=${thunderbird}/bin/thunderbird" ];
|
||||
}))
|
||||
|
||||
(birdtray.overrideAttrs (_: {
|
||||
cmakeFlags = [ "-DOPT_THUNDERBIRD_CMDLINE=${thunderbird}/bin/thunderbird" ];
|
||||
}))
|
||||
|
||||
jq
|
||||
starship
|
||||
firefox
|
||||
fluffychat
|
||||
thunderbird-bin
|
||||
youtube-music
|
||||
libreoffice-qt6-fresh
|
||||
gimp
|
||||
git
|
||||
fprintd
|
||||
cups
|
||||
anydesk
|
||||
fastfetch
|
||||
playerctl
|
||||
adwaita-icon-theme
|
||||
android-tools
|
||||
filezilla
|
||||
bitwarden-desktop
|
||||
davinci-resolve
|
||||
mpv
|
||||
sshfs
|
||||
];
|
||||
}
|
||||
jq
|
||||
starship
|
||||
firefox
|
||||
fluffychat
|
||||
thunderbird-bin
|
||||
youtube-music
|
||||
libreoffice-qt6-fresh
|
||||
gimp
|
||||
git
|
||||
cups
|
||||
anydesk
|
||||
fastfetch
|
||||
playerctl
|
||||
adwaita-icon-theme
|
||||
android-tools
|
||||
filezilla
|
||||
bitwarden-desktop
|
||||
davinci-resolve
|
||||
mpv
|
||||
sshfs
|
||||
]
|
||||
|
@ -1,39 +0,0 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
nerdfonts = (
|
||||
pkgs.nerdfonts.override {
|
||||
fonts = [
|
||||
"CascadiaCode"
|
||||
"JetBrainsMono"
|
||||
"FiraCode"
|
||||
"SpaceMono"
|
||||
];
|
||||
}
|
||||
);
|
||||
|
||||
cursor-theme = "Bibata-Modern-Classic";
|
||||
cursor-pkg = pkgs.bibata-cursors;
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
material-symbols
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
bibata-cursors
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
XCURSOR_THEME = cursor-theme;
|
||||
XCURSOR_SIZE = "24";
|
||||
};
|
||||
|
||||
pointerCursor = {
|
||||
package = cursor-pkg;
|
||||
name = cursor-theme;
|
||||
size = 24;
|
||||
gtk.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
BIN
profiles/hulk/wallpapers/dark.jpg
Normal file
BIN
profiles/hulk/wallpapers/dark.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 719 KiB |
BIN
profiles/hulk/wallpapers/light.jpg
Normal file
BIN
profiles/hulk/wallpapers/light.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 179 KiB |
Reference in New Issue
Block a user