mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-05-07 13:36:24 +00:00
refactor: move common modules to modules/ directory
This commit is contained in:
parent
3abbd61cfa
commit
bf7e249d5b
35 changed files with 67 additions and 63 deletions
8
modules/graphical/environment.nix
Normal file
8
modules/graphical/environment.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.sessionVariables = {
|
||||
# WLR_NO_HARDWARE_CURSORS = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
}
|
||||
19
modules/graphical/flatpak.nix
Normal file
19
modules/graphical/flatpak.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
packages = [
|
||||
"org.vinegarhq.Sober"
|
||||
"org.vinegarhq.Vinegar"
|
||||
];
|
||||
overrides = {
|
||||
"org.vinegarhq.Sober".Context = {
|
||||
filesystems = [
|
||||
"xdg-run/app/com.discordapp.Discord:create"
|
||||
"xdg-run/discord-ipc-0"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
modules/graphical/greetd.nix
Normal file
14
modules/graphical/greetd.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --remember-session";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
useTextGreeter = true;
|
||||
};
|
||||
}
|
||||
10
modules/graphical/hyprland.nix
Normal file
10
modules/graphical/hyprland.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
withUWSM = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
}
|
||||
3
modules/graphical/ratbagd.nix
Normal file
3
modules/graphical/ratbagd.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.ratbagd.enable = true;
|
||||
}
|
||||
5
modules/graphical/steam.nix
Normal file
5
modules/graphical/steam.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.steam.enable = true;
|
||||
}
|
||||
12
modules/graphical/thunar.nix
Normal file
12
modules/graphical/thunar.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
services.tumbler.enable = true; # Thumbnail support for images
|
||||
}
|
||||
5
modules/graphical/xfconf.nix
Normal file
5
modules/graphical/xfconf.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.xfconf.enable = true;
|
||||
}
|
||||
8
modules/graphical/xserver.nix
Normal file
8
modules/graphical/xserver.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.xserver = {
|
||||
xkb.layout = "us";
|
||||
videoDrivers = [ "nvidia" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue