home/natto: split wayland.nix
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -1,8 +1,4 @@
|
|||||||
{ config, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
programs = {
|
programs.direnv.enable = true;
|
||||||
home-manager.enable = true;
|
|
||||||
password-store.enable = true;
|
|
||||||
direnv.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, lib, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
let
|
let
|
||||||
emacs = pkgs.emacs-git-pgtk;
|
emacs = pkgs.emacs-git-pgtk;
|
||||||
configFile = ./config/emacs/config.org;
|
configFile = ./config/emacs/config.org;
|
||||||
|
@@ -12,9 +12,6 @@
|
|||||||
./browser.nix
|
./browser.nix
|
||||||
./pdf.nix
|
./pdf.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./foot.nix
|
|
||||||
# ./xsession.nix
|
|
||||||
./wayland.nix
|
|
||||||
./pkgs.nix
|
./pkgs.nix
|
||||||
./stuff.nix
|
./stuff.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
@@ -23,5 +20,15 @@
|
|||||||
./music.nix
|
./music.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
./games.nix
|
./games.nix
|
||||||
|
|
||||||
|
/* when xserver */
|
||||||
|
# ./xsession.nix
|
||||||
|
|
||||||
|
/* when wayland */
|
||||||
|
./wayland.nix
|
||||||
|
./hyprland.nix
|
||||||
|
./foot.nix
|
||||||
|
./tofi.nix
|
||||||
|
./ags
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
33
home/natto/hyprland.nix
Normal file
33
home/natto/hyprland.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{ pkgs, inputs, config, conf, ... }: {
|
||||||
|
wayland = {
|
||||||
|
windowManager = {
|
||||||
|
hyprland = {
|
||||||
|
enable = true;
|
||||||
|
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||||
|
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
||||||
|
xwayland = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
extraConfig = (builtins.readFile ./config/hypr/hyprland.conf)
|
||||||
|
+ (with config.home.pointerCursor; ''
|
||||||
|
exec-once=hyprctl setcursor ${name} ${toString size}
|
||||||
|
'')
|
||||||
|
+ (with conf.colors.argb { a = "ee"; };''
|
||||||
|
general {
|
||||||
|
col.active_border = 0x${mauve} 0x${flamingo} 135deg
|
||||||
|
col.inactive_border = 0x${surface0}
|
||||||
|
}
|
||||||
|
'');
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
|
||||||
|
wl-clipboard
|
||||||
|
swayimg
|
||||||
|
swaybg
|
||||||
|
];
|
||||||
|
}
|
@@ -18,8 +18,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
mpd-discord-rpc = {
|
mpd-discord-rpc = {
|
||||||
# inherit (mpd) enable;
|
inherit (mpd) enable;
|
||||||
enable = false;
|
|
||||||
settings = {
|
settings = {
|
||||||
id = 1039532008424099850; # dont really care
|
id = 1039532008424099850; # dont really care
|
||||||
format = {
|
format = {
|
||||||
|
37
home/natto/tofi.nix
Normal file
37
home/natto/tofi.nix
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
conf,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.file.tofi = {
|
||||||
|
source = pkgs.writeText "tofi-config" (
|
||||||
|
pkgs.lib.generators.toKeyValue { } (
|
||||||
|
with conf.colors.default;
|
||||||
|
{
|
||||||
|
# https://github.com/philj56/tofi/blob/master/themes/fullscreen
|
||||||
|
width = "100%";
|
||||||
|
height = "100%";
|
||||||
|
border-width = 0;
|
||||||
|
outline-width = 0;
|
||||||
|
padding-left = "35%";
|
||||||
|
padding-top = "35%";
|
||||||
|
result-spacing = 25;
|
||||||
|
num-results = 5;
|
||||||
|
font = "Fira Mono";
|
||||||
|
font-size = 15;
|
||||||
|
text-color = foreground;
|
||||||
|
selection-color = rosewater;
|
||||||
|
selection-match-color = red;
|
||||||
|
background-color = "#000A";
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
target = "${config.xdg.configHome}/tofi/config";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
tofi
|
||||||
|
];
|
||||||
|
}
|
@@ -1,64 +1,11 @@
|
|||||||
{ pkgs, config, conf, inputs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./ags
|
|
||||||
# ./eww
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland = {
|
|
||||||
windowManager = {
|
|
||||||
sway = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
hyprland = {
|
|
||||||
enable = true;
|
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
|
||||||
xwayland = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
extraConfig = (builtins.readFile ./config/hypr/hyprland.conf)
|
|
||||||
+ (with config.home.pointerCursor; ''
|
|
||||||
exec-once=hyprctl setcursor ${name} ${toString size}
|
|
||||||
'')
|
|
||||||
+ (with conf.colors.argb { a = "ee"; };''
|
|
||||||
general {
|
|
||||||
col.active_border = 0x${mauve} 0x${flamingo} 135deg
|
|
||||||
col.inactive_border = 0x${surface0}
|
|
||||||
}
|
|
||||||
'');
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.tofi = {
|
|
||||||
source = pkgs.writeText "tofi-config" (pkgs.lib.generators.toKeyValue { } (with conf.colors.default; {
|
|
||||||
# https://github.com/philj56/tofi/blob/master/themes/fullscreen
|
|
||||||
width = "100%";
|
|
||||||
height = "100%";
|
|
||||||
border-width = 0;
|
|
||||||
outline-width = 0;
|
|
||||||
padding-left = "35%";
|
|
||||||
padding-top = "35%";
|
|
||||||
result-spacing = 25;
|
|
||||||
num-results = 5;
|
|
||||||
font = "Fira Mono";
|
|
||||||
font-size = 15;
|
|
||||||
text-color = foreground;
|
|
||||||
selection-color = rosewater;
|
|
||||||
selection-match-color = red;
|
|
||||||
background-color = "#000A";
|
|
||||||
}));
|
|
||||||
target = "${config.xdg.configHome}/tofi/config";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
tofi
|
|
||||||
imv
|
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
|
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
swayimg
|
||||||
swaybg
|
swaybg
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user