mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
initial config
This commit is contained in:
parent
ed093a2784
commit
7e1d2412ef
|
@ -101,7 +101,7 @@
|
|||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd Hyprland";
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd sway";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
./git
|
||||
./gpg
|
||||
./helix
|
||||
./hyprland
|
||||
# ./hyprland
|
||||
./sway
|
||||
./mpv
|
||||
./sops
|
||||
./spotify
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# ./hyprpaper.nix
|
||||
./session.nix
|
||||
./waybar.nix
|
||||
];
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = {
|
||||
|
||||
modifier = "Mod4";
|
||||
menu = "${pkgs.fuzzel}/bin/fuzzel";
|
||||
terminal = "${pkgs.foot}/bin/footclient";
|
||||
bars = [ ];
|
||||
gaps = {
|
||||
outer = 5;
|
||||
inner = 12;
|
||||
};
|
||||
input = {
|
||||
"*" = {
|
||||
xkb_layout = "us";
|
||||
xkb_variant = "dvorak-alt-intl";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.configFile = {
|
||||
"fuzzel/fuzzel.ini".text = ''
|
||||
[main]
|
||||
icon-theme=${config.gtk.iconTheme.name}
|
||||
show-actions=yes
|
||||
width=80
|
||||
terminal=${pkgs.foot}/bin/foot
|
||||
|
||||
[colors]
|
||||
background=${config.colorScheme.colors.base00}ff
|
||||
text=${config.colorScheme.colors.base05}ff
|
||||
match=${config.colorScheme.colors.base08}ff
|
||||
selection=${config.colorScheme.colors.base02}ff
|
||||
selection-text=${config.colorScheme.colors.base04}ff
|
||||
border=${config.colorScheme.colors.base01}ff
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
systemdTarget = "hyprland-session.target";
|
||||
events = [
|
||||
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
|
||||
{ event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
|
|
@ -1,16 +1,17 @@
|
|||
{ self, config, pkgs, hyprland, ... }:
|
||||
{ self, config, pkgs, ... }:
|
||||
{
|
||||
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin";
|
||||
# systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin";
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
package = hyprland.packages.x86_64-linux.waybar-hyprland;
|
||||
# package = hyprland.packages.x86_64-linux.waybar-hyprland;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 26;
|
||||
modules-left = [ "wlr/workspaces" "custom/spotifytitle" "hyprland/window" ];
|
||||
# modules-left = [ "wlr/workspaces" "custom/spotifytitle" "hyprland/window" ];
|
||||
modules-left = [ "sway/workspaces" "custom/spotifytitle" "sway/window" ];
|
||||
modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ];
|
||||
network = {
|
||||
format-wifi = " {essid} ({signalStrength}%)";
|
||||
|
@ -20,13 +21,13 @@
|
|||
format-disconnected = "Disconnected ⚠";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
};
|
||||
"wlr/workspaces" = {
|
||||
"sway/workspaces" = {
|
||||
format = "{icon}";
|
||||
on-click = "activate";
|
||||
};
|
||||
"hyprland/window" = {
|
||||
"sway/window" = {
|
||||
format = " {}";
|
||||
separate-outputs = true;
|
||||
# separate-outputs = true;
|
||||
};
|
||||
|
||||
"custom/spotifytitle" = {
|
Loading…
Reference in a new issue