mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2026-03-06 17:42:06 +01:00
Compare commits
4 Commits
4871559257
...
84734df417
| Author | SHA1 | Date | |
|---|---|---|---|
| 84734df417 | |||
| 9627cd0786 | |||
| b6468bd29e | |||
| 2a04bb07b0 |
@@ -49,9 +49,8 @@
|
||||
, unstable
|
||||
, ... }@inputs:
|
||||
let
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = unstable.legacyPackages.${prev.system};
|
||||
};
|
||||
overlay-unstable = final: prev: { unstable = inputs.unstable.legacyPackages.${prev.system}; };
|
||||
overlays = [ overlay-unstable ];
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
];
|
||||
|
||||
programs.nix-index = {
|
||||
enableBashIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
@@ -14,7 +15,7 @@
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"rebuild" = "sudo nixos-rebuild switch -no-write-lock-file --flake git+https://github.com/adrlau/nix-dotfiles.git -L --impure";
|
||||
"rebuild" = "sudo nixos-rebuild switch --no-write-lock-file --flake git+https://github.com/adrlau/nix-dotfiles.git -L --impure";
|
||||
"nixedit" = "sudo vim /etc/nixos/nix-dotfiles/.";
|
||||
"nixdir" = "cd /etc/nixos/nix-dotfiles";
|
||||
|
||||
|
||||
@@ -63,8 +63,8 @@ let
|
||||
switch-events {
|
||||
lid-close { spawn "swaylock"; }
|
||||
//lid-open { spawn "notify-send" "The laptop lid is open!"; }
|
||||
tablet-mode-on { spawn "bash" "-c" "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true"; }
|
||||
tablet-mode-off { spawn "bash" "-c" "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false"; }
|
||||
tablet-mode-on { spawn "bash" "-c" "wvkbd-mobintl"; }
|
||||
tablet-mode-off { spawn "bash" "-c" "pkill wvkbd-mobintl"; }
|
||||
}
|
||||
|
||||
|
||||
@@ -306,6 +306,15 @@ window-rule {
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="onboard"
|
||||
match app-id="Onboard"
|
||||
open-floating true
|
||||
default-window-height { proportion 0.2; }
|
||||
default-column-width { proportion 0.8; }
|
||||
block-out-from "screen-capture"
|
||||
}
|
||||
|
||||
binds {
|
||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||
// in the end. To find an XKB name for a particular key, you may use a program
|
||||
@@ -621,6 +630,8 @@ in
|
||||
|
||||
emote
|
||||
|
||||
|
||||
wvkbd
|
||||
|
||||
|
||||
xdg-desktop-portal-gtk
|
||||
|
||||
@@ -11,6 +11,13 @@ let
|
||||
in "rgba(${rgb},${alpha})";
|
||||
in
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
fuzzel
|
||||
wvkbd
|
||||
];
|
||||
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package = pkgs.waybar;
|
||||
@@ -19,11 +26,12 @@ in
|
||||
settings = [
|
||||
(builtins.fromJSON ''
|
||||
{
|
||||
"layer": "top",
|
||||
"height": 36,
|
||||
"spacing": 2,
|
||||
"tray-position": "right",
|
||||
"tray-all-outputs": true,
|
||||
"modules-left": ["custom/overview", "custom/launcher", "sway/workspaces", "niri/workspaces"],
|
||||
"modules-left": ["custom/overview", "custom/launcher", "custom/keyboard", "sway/workspaces", "niri/workspaces"],
|
||||
"modules-center": ["niri/window"],
|
||||
"modules-right": [
|
||||
"idle_inhibitor", "backlight", "pulseaudio", "keyboard-state",
|
||||
@@ -63,6 +71,11 @@ in
|
||||
"tooltip": "Toggle Overview",
|
||||
"on-click": "niri msg action toggle-overview"
|
||||
},
|
||||
"custom/keyboard": {
|
||||
"format": "",
|
||||
"tooltip": "On-Screen Keyboard",
|
||||
"on-click": "pkill wvkbd-mobintl || wvkbd-mobintl"
|
||||
},
|
||||
|
||||
|
||||
"niri/window": {
|
||||
@@ -164,7 +177,7 @@ in
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 8
|
||||
"spacing": 12
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
|
||||
@@ -39,6 +39,8 @@ imports =
|
||||
memoryPercent = 25;
|
||||
};
|
||||
|
||||
boot.plymouth.enable = true;
|
||||
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Oslo";
|
||||
|
||||
Reference in New Issue
Block a user