moved basics out of sway.nix

This commit is contained in:
k 2024-09-25 20:01:30 -04:00
parent 7ce35c7655
commit 4a31a114a9
3 changed files with 24 additions and 10 deletions

View File

@ -1,7 +1,7 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ./waybar.nix ];
imports = [ ./waybar.nix ./tile.nix ];
wayland.windowManager.sway = {
enable = true;
@ -12,7 +12,7 @@
window.titlebar = false;
terminal = "${pkgs.foot}/bin/foot";
menu = "${pkgs.rofi}/bin/rofi -show drun -modi drun";
bars = [{ "command" = "${pkgs.waybar}/bin/waybar"; }];
bars = [];
gaps = {
inner = 10;
outer = 5;
@ -30,16 +30,8 @@
_JAVA_AWT_WM_NONREPARENTING = 1;
};
services = {
mako = { enable = true; };
swayidle = { enable = true; };
};
home.packages = with pkgs; [ rofi alacritty waybar swaylock ];
programs = {
rofi = { enable = true; };
mako = { enable = true; };
alacritty = { enable = true; };
foot = { enable = true; };
};
}

20
hosts/home/tile.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, pkgs, inputs, ... }:
{
services = {
mako = { enable = true; };
};
programs = {
mako = { enable = true; };
foot = { enable = true; };
swaylock = {enable = true;};
rofi = {
enable = true;
package = pkgs.rofi-wayland;
show-icons = true;
};
};
}

View File

@ -7,6 +7,8 @@
system.autoUpgrade.enable = true;
time.timeZone = "America/New_York";
security.rtkit.enable = true;
security.polkit.enable = true;
security.pam.services.swaylock = {};
powerManagement.enable = true;
nix = {