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

View File

@ -12,7 +12,7 @@
nixosConfigurations = { nixosConfigurations = {
lift = lib.nixosSystem { lift = lib.nixosSystem {
system = "x64_64-linux"; 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;
};
}