Modularize sway desktop

This commit is contained in:
Johannes Rothe 2024-03-09 21:57:50 +01:00
parent 5a6e57d02a
commit 85492545ae
3 changed files with 21 additions and 16 deletions

View File

@ -93,7 +93,6 @@
cryptsetup
curl
dracula-theme
dmenu
evince
ffmpeg
fish
@ -114,14 +113,11 @@
google-cloud-sdk
gotools
htop
i3status
inkscape
ispell
jq
kanshi
keychain
libreoffice
mako
mosquitto
mypy
nextcloud-client
@ -135,17 +131,11 @@
python311
python311Packages.flake8
python311Packages.ipython
rofi # dmenu replacement
scrot # screenshot
signal-desktop
silver-searcher
shellcheck
spotify
sqlite
sway
sway-contrib.grimshot
swayidle
swaylock
syncthing
tailscale
telegram-desktop
@ -171,11 +161,6 @@
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
# enable sway window manager
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
programs.light.enable = true;
programs.fish.enable = true;
programs.gnupg.agent = {

View File

@ -12,7 +12,7 @@
nixosConfigurations = {
lift = lib.nixosSystem {
system = "x64_64-linux";
modules = [ ./configuration.nix ];
modules = [ ./configuration.nix ./sway.nix ];
};
};
};

20
sway.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
dmenu
i3status
kanshi
mako
rofi # dmenu replacement
scrot # screenshot
sway-contrib.grimshot
swayidle
swaylock
];
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
}