feat: introduced new home-manager features
Changed wallpaper to better fit the style of the WM - affected common variables - affected hyprland configuration - affected stylix configuration - included additional flake inputs Added Spicetify packages (not working) Added obs-studio home-manager program option Added vimkey navigation keybinds for Hyprland
This commit is contained in:
parent
c0ef5f3d5f
commit
5515d4a9cd
9 changed files with 66 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
myUserName = "stvnliu";
|
myUserName = "stvnliu";
|
||||||
myHostName = "nixos-msi";
|
myHostName = "nixos-msi";
|
||||||
displayScale = 1;
|
displayScale = 1;
|
||||||
myWallPaperPathString = "/home/${myUserName}/wallpaper.png";
|
myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg";
|
||||||
myDisplayName = "Zhongheng Liu";
|
myDisplayName = "Zhongheng Liu";
|
||||||
myEmail = "z.liu@outlook.com.gr";
|
myEmail = "z.liu@outlook.com.gr";
|
||||||
myAutostartCommands = [
|
myAutostartCommands = [
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
|
spicetify-nix = {
|
||||||
|
url = "github:Gerg-L/spicetify-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
@ -20,6 +24,7 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
stylix,
|
stylix,
|
||||||
|
spicetify-nix,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
|
@ -47,6 +52,7 @@
|
||||||
./home-manager/${stevenUserName}/home.nix
|
./home-manager/${stevenUserName}/home.nix
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
inputs.stylix.homeManagerModules.stylix
|
inputs.stylix.homeManagerModules.stylix
|
||||||
|
inputs.spicetify-nix.homeManagerModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 1 MiB |
|
@ -24,6 +24,8 @@
|
||||||
./ags
|
./ags
|
||||||
./xdg.nix
|
./xdg.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
./spicetify.nix
|
||||||
|
./scripts
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
@ -57,7 +59,7 @@
|
||||||
username = "${config.myUserName}";
|
username = "${config.myUserName}";
|
||||||
homeDirectory = "/home/${config.myUserName}";
|
homeDirectory = "/home/${config.myUserName}";
|
||||||
# copy wallpaper from assets
|
# copy wallpaper from assets
|
||||||
file = {"wallpaper.png".source = ./assets/gruvbox-wallpaper.png;};
|
file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;};
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
|
@ -91,6 +93,10 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
obs-studio = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [pkgs.obs-studio-plugins.wlrobs];
|
||||||
|
};
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
|
|
|
@ -38,8 +38,12 @@
|
||||||
# Example volume button that will activate even while an input inhibitor is active
|
# Example volume button that will activate even while an input inhibitor is active
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
];
|
];
|
||||||
bind =
|
bind = let
|
||||||
|
terminalCmd = "${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}";
|
||||||
|
in
|
||||||
[
|
[
|
||||||
|
"$mod SHIFT, L, exec, ${pkgs.hyprlock}/bin/hyprlock --immediate"
|
||||||
|
|
||||||
", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area"
|
", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area"
|
||||||
|
|
||||||
# special workspace keybinds
|
# special workspace keybinds
|
||||||
|
@ -54,7 +58,14 @@
|
||||||
"$mod, F, exec, ${pkgs.firefox}/bin/firefox"
|
"$mod, F, exec, ${pkgs.firefox}/bin/firefox"
|
||||||
"$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm"
|
"$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm"
|
||||||
# foot terminal
|
# foot terminal
|
||||||
"$mod, Return, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}"
|
"$mod, Return, exec, ${terminalCmd}"
|
||||||
|
"$mod SHIFT, Return, exec, [float] ${terminalCmd}"
|
||||||
|
|
||||||
|
# vimkeys navigation
|
||||||
|
"$mod, H, movefocus, l"
|
||||||
|
"$mod, J, movefocus, d"
|
||||||
|
"$mod, K, movefocus, u"
|
||||||
|
"$mod, L, movefocus, r"
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
# workspaces
|
# workspaces
|
||||||
|
|
7
home-manager/stvnliu/scripts/default.nix
Normal file
7
home-manager/stvnliu/scripts/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = [(import ./heic-to-jpg.script.nix {inherit pkgs;})];
|
||||||
|
}
|
5
home-manager/stvnliu/scripts/heic-to-jpg.script.nix
Normal file
5
home-manager/stvnliu/scripts/heic-to-jpg.script.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{pkgs}:
|
||||||
|
pkgs.writeShellScriptBin "heic-to-jpg" ''
|
||||||
|
mkdir -p ./heic-to-jpg-out
|
||||||
|
${pkgs.findutils}/bin/find . -type f -print0 | ${pkgs.findutils}/bin/xargs -0 -I "{}" ${pkgs.imagemagick}/bin/magick "{}" -quality 100% ./jpg-out/"{}.conv.jpg"
|
||||||
|
''
|
26
home-manager/stvnliu/spicetify.nix
Normal file
26
home-manager/stvnliu/spicetify.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
||||||
|
in {
|
||||||
|
# allow spotify to be installed if you don't have unfree enabled already
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"spotify"
|
||||||
|
];
|
||||||
|
programs.spicetify = {
|
||||||
|
enable = true;
|
||||||
|
theme = spicePkgs.themes.onepunch;
|
||||||
|
colorScheme = "Dark";
|
||||||
|
|
||||||
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
adblock
|
||||||
|
fullAppDisplay
|
||||||
|
shuffle # shuffle+ (special characters are sanitized out of ext names)
|
||||||
|
hidePodcasts
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
|
||||||
image = ./assets/gruvbox-wallpaper.png;
|
image = ./assets/nixos-wallpaper.jpg;
|
||||||
fonts = {
|
fonts = {
|
||||||
sansSerif = {
|
sansSerif = {
|
||||||
name = "Aileron";
|
name = "Aileron";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue