Finally switch to flakes.
This commit is contained in:
parent
a90e09db74
commit
5e0b713756
116 changed files with 5443 additions and 3 deletions
42
home-manager/sway/sway.nix
Normal file
42
home-manager/sway/sway.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{config, pkgs, ...}: {
|
||||
# Import modules
|
||||
imports = [
|
||||
#"./swayfx.nix"
|
||||
./hardware.nix
|
||||
./theme.nix
|
||||
./hotkeys.nix
|
||||
./rules.nix
|
||||
./autostart.nix
|
||||
./swaylock.nix
|
||||
./waybar.nix
|
||||
./swayshot.nix
|
||||
];
|
||||
|
||||
# Enable Sway and write some scripts
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
#package = pkgs.unstable.swayfx;
|
||||
wrapperFeatures.gtk = true;
|
||||
checkConfig = false;
|
||||
extraConfig = let
|
||||
border = import ../common/border.nix;
|
||||
ws = import ./workspaces.nix;
|
||||
in ''
|
||||
# Options I can't find in Nix yet
|
||||
default_floating_border pixel ${border.weight}
|
||||
hide_edge_borders --i3 smart
|
||||
titlebar_padding 10 1
|
||||
primary_selection disabled
|
||||
|
||||
# Include extra window icons
|
||||
include ${pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/iguanajuice/sway-font-awesome/6b7a9d08974eea1b9cddb8d444e1c89d6837083a/icons";
|
||||
sha256 = "09ki5qw1h91kd33k3fwzq7cb6ck8sq4haswgizrsy387sfr2a75x";
|
||||
}}
|
||||
|
||||
# Switch to workspace 1
|
||||
workspace ${ws.w7}
|
||||
workspace ${ws.w1}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue