feat: more niri stuffs

This commit is contained in:
Ashhhleyyy 2024-08-14 20:39:37 +01:00
parent 7489ec102b
commit b12f254b90
Signed by: ash
GPG key ID: 83B789081A0878FB
7 changed files with 41 additions and 22 deletions

View file

@ -141,6 +141,7 @@
./home/ash/alex.nix
./home/ash/desktop.nix
./home/ash/emacs.nix
./home/ash/niri.nix
./home/ash/obs.nix
./home/ash/intellij.nix
./home/ash/lutris.nix

View file

@ -3,6 +3,7 @@
settings = {
input = {
focus-follows-mouse.enable = true;
keyboard.xkb.layout = "gb";
};
layout = {
gaps = 8;
@ -163,7 +164,7 @@
# "custom/music"
];
"modules-right" = [
"pulseaudio"
"wireplumber"
"backlight"
"battery"
"clock"
@ -195,8 +196,8 @@
"clock" = {
"timezone" = "Europe/London";
"tooltip-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
"format-alt" = " {:%d/%m/%Y}";
"format" = " {:%H:%M}";
"format-alt" = " {:%d/%m/%Y}";
"format" = "󰥔 {:%H:%M}";
};
"backlight" = {
"device" = "intel_backlight";
@ -209,19 +210,21 @@
"critical" = 15;
};
"format" = "{icon}";
"format-charging" = "";
"format-plugged" = "";
"format-charging" = "{icon} 󰚥";
"format-plugged" = "󰐧";
"format-alt" = "{icon}";
"format-icons" = ["" "" "" "" "" "" "" "" "" "" "" ""];
"format-icons" = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ""];
};
"pulseaudio" = {
"wireplumber" = {
# "scroll-step" = 1, # %, can be a float
"format" = "{icon} {volume}%";
"format-muted" = "";
"format-muted" = " {volume}%";
"format-icons" = {
"default" = ["" "" " "];
};
"on-click" = "pavucontrol";
};
"wireplumber#source" = {
format = " {source}";
};
"custom/lock" = {
"tooltip" = false;
@ -230,7 +233,7 @@
};
"custom/power" = {
"tooltip" = false;
"on-click" = "wlogout &";
"on-click" = "niri msg action quit";
"format" = "Logout";
};
}];
@ -245,12 +248,27 @@
Unit = {
Description = "swaybg";
PartOf = ["graphical-session.target"];
After = ["graphical-session.target"];
After = ["niri.service"];
Requisite = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.swaybg}/bin/swaybg -i $HOME/wallpaper.png";
ExecStart = "${pkgs.swaybg}/bin/swaybg -i /home/ash/wallpaper.png";
Restart = "on-failure";
};
};
systemd.user.services."pam_kwallet_init" = {
Unit = {
Description = "Unlock kwallet on login";
PartOf = ["graphical-session.target"];
Requisite = ["graphical-session.target"];
After = ["niri.service"];
};
Service = {
ExecStart = "${pkgs.kwallet-pam}/libexec/pam_kwallet_init";
Type = "simple";
Restart = "no";
Slice = "background.slice";
};
};
}

0
home/ash/waybar/config Normal file
View file

View file

@ -30,7 +30,7 @@
@define-color rosewater #f5e0dc;
* {
font-family: FantasqueSansMono Nerd Font;
font-family: Maple Mono NF;
font-size: 17px;
min-height: 0;
}

View file

@ -17,12 +17,6 @@
networking.hostName = "lea";
networking.networkmanager.enable = true;
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_GB.UTF-8";
services.xserver = {
layout = "gb";
xkbVariant = "";
@ -32,8 +26,6 @@
nix.settings.trusted-users = [ "@wheel" ];
users.users.ash.extraGroups = [ "networkmanager" ];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [

View file

@ -6,6 +6,7 @@
../../common/tailscale.nix
../../common/tpm.nix
../../roles/libvirt.nix
../../roles/niri.nix
../../roles/podman.nix
./hardware-configuration.nix
];
@ -54,6 +55,10 @@
hardware.rtl-sdr.enable = true;
users.users.ash.extraGroups = ["plugdev"];
hardware.usb-modeswitch.enable = true;
services.udev.packages = with pkgs; [
platformio-core
openocd
];
programs.steam.enable = true;
nixpkgs.config.allowUnfree = true;

View file

@ -10,5 +10,8 @@
};
};
programs.niri.enable = true;
services.gnome.gnome-keyring.enable = lib.mkForce false;
hardware.graphics.enable = true;
programs.nm-applet.enable = true;
}