update desktop foo

This commit is contained in:
CherryKitten 2024-05-15 13:22:46 +02:00
parent cf626fef85
commit cda51d2990
Signed by: sammy
GPG key ID: 98D8F75FB0658276
4 changed files with 39 additions and 6 deletions

View file

@ -3,7 +3,7 @@ let
inherit (inputs) nixpkgs nixpkgs-unstable;
inherit (self) outputs;
pkgs = import nixpkgs { system = "x86_64-linux"; };
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config.allowUnfree = true; };
in
{
flake = rec {

View file

@ -12,9 +12,6 @@
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
# sound.enable = true;
hardware.pulseaudio.enable = true;
home-manager.users.sammy.programs.ssh.includes = [
"./famedly-config"

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, pkgs-unstable, ... }: {
imports = [
./sway
@ -9,8 +9,23 @@
users.users.sammy.packages = with pkgs; [
telegram-desktop
mpv
thunderbird
pkgs-unstable.obsidian
bluez-tools
blueman
pavucontrol
];
home-manager.users.sammy.services.nextcloud-client.enable = true;
services.rpcbind.enable = true; # needed for NFS
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.package = pkgs.pulseaudioFull;
hardware.bluetooth.enable = true;
services.logind.lidSwitch = "suspend-then-hibernate";
services.logind.powerKey = "hibernate";
services.logind.powerKeyLongPress = "poweroff";

View file

@ -47,6 +47,7 @@
];
timeouts = [
{ timeout = 300; command = lockCommand; }
{ timeout = 1800; command = "systemctl hybrid-sleep"; }
];
};
wayland.windowManager.sway =
@ -70,9 +71,15 @@
hideEdgeBorders = "both";
};
gaps.inner = 10;
gaps.smartGaps = true;
output = {
"*" = { };
"eDP-1" = {
position = "0 1080";
};
"DP-6" = {
position = "0 0";
};
};
input = {
@ -176,6 +183,11 @@
"${cfg.config.modifier}+9" = "workspace 9";
"${cfg.config.modifier}+0" = "workspace 10";
"${cfg.config.modifier}+Alt+Right" = "workspace next";
"${cfg.config.modifier}+Alt+Left" = "workspace prev";
"${cfg.config.modifier}+Alt+Up" = "move workspace to output up";
"${cfg.config.modifier}+Alt+Down" = "move workspace to output down";
"${cfg.config.modifier}+Shift+1" = "move container to workspace 1";
"${cfg.config.modifier}+Shift+2" = "move container to workspace 2";
"${cfg.config.modifier}+Shift+3" = "move container to workspace 3";
@ -187,6 +199,9 @@
"${cfg.config.modifier}+Shift+9" = "move container to workspace 9";
"${cfg.config.modifier}+Shift+0" = "move container to workspace 10";
"${cfg.config.modifier}+Alt+N" = "move container to workspace next";
"${cfg.config.modifier}+Alt+P" = "move container to workspace prev";
"XF86AudioRaiseVolume" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -i 5";
"XF86AudioLowerVolume" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -d 5";
"XF86AudioMute" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -t";
@ -196,6 +211,12 @@
"${cfg.config.modifier}+r" = "mode resize";
};
startup = [{
command = "systemctl --user restart nextcloud-client";
always = true;
}];
};
extraConfig = ''