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/alex.nix
./home/ash/desktop.nix ./home/ash/desktop.nix
./home/ash/emacs.nix ./home/ash/emacs.nix
./home/ash/niri.nix
./home/ash/obs.nix ./home/ash/obs.nix
./home/ash/intellij.nix ./home/ash/intellij.nix
./home/ash/lutris.nix ./home/ash/lutris.nix

View file

@ -3,6 +3,7 @@
settings = { settings = {
input = { input = {
focus-follows-mouse.enable = true; focus-follows-mouse.enable = true;
keyboard.xkb.layout = "gb";
}; };
layout = { layout = {
gaps = 8; gaps = 8;
@ -163,7 +164,7 @@
# "custom/music" # "custom/music"
]; ];
"modules-right" = [ "modules-right" = [
"pulseaudio" "wireplumber"
"backlight" "backlight"
"battery" "battery"
"clock" "clock"
@ -195,8 +196,8 @@
"clock" = { "clock" = {
"timezone" = "Europe/London"; "timezone" = "Europe/London";
"tooltip-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; "tooltip-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
"format-alt" = " {:%d/%m/%Y}"; "format-alt" = " {:%d/%m/%Y}";
"format" = " {:%H:%M}"; "format" = "󰥔 {:%H:%M}";
}; };
"backlight" = { "backlight" = {
"device" = "intel_backlight"; "device" = "intel_backlight";
@ -209,19 +210,21 @@
"critical" = 15; "critical" = 15;
}; };
"format" = "{icon}"; "format" = "{icon}";
"format-charging" = ""; "format-charging" = "{icon} 󰚥";
"format-plugged" = ""; "format-plugged" = "󰐧";
"format-alt" = "{icon}"; "format-alt" = "{icon}";
"format-icons" = ["" "" "" "" "" "" "" "" "" "" "" ""]; "format-icons" = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ""];
}; };
"pulseaudio" = { "wireplumber" = {
# "scroll-step" = 1, # %, can be a float # "scroll-step" = 1, # %, can be a float
"format" = "{icon} {volume}%"; "format" = "{icon} {volume}%";
"format-muted" = ""; "format-muted" = " {volume}%";
"format-icons" = { "format-icons" = {
"default" = ["" "" " "]; "default" = ["" "" " "];
}; };
"on-click" = "pavucontrol"; };
"wireplumber#source" = {
format = " {source}";
}; };
"custom/lock" = { "custom/lock" = {
"tooltip" = false; "tooltip" = false;
@ -230,7 +233,7 @@
}; };
"custom/power" = { "custom/power" = {
"tooltip" = false; "tooltip" = false;
"on-click" = "wlogout &"; "on-click" = "niri msg action quit";
"format" = "Logout"; "format" = "Logout";
}; };
}]; }];
@ -245,12 +248,27 @@
Unit = { Unit = {
Description = "swaybg"; Description = "swaybg";
PartOf = ["graphical-session.target"]; PartOf = ["graphical-session.target"];
After = ["graphical-session.target"]; After = ["niri.service"];
Requisite = ["graphical-session.target"]; Requisite = ["graphical-session.target"];
}; };
Service = { Service = {
ExecStart = "${pkgs.swaybg}/bin/swaybg -i $HOME/wallpaper.png"; ExecStart = "${pkgs.swaybg}/bin/swaybg -i /home/ash/wallpaper.png";
Restart = "on-failure"; 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; @define-color rosewater #f5e0dc;
* { * {
font-family: FantasqueSansMono Nerd Font; font-family: Maple Mono NF;
font-size: 17px; font-size: 17px;
min-height: 0; min-height: 0;
} }
@ -128,4 +128,4 @@
#tray { #tray {
margin-right: 1rem; margin-right: 1rem;
border-radius: 1rem; border-radius: 1rem;
} }

View file

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

View file

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

View file

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