mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 19:45:40 +00:00
refactor: modularize programs and services
This commit is contained in:
parent
191d3c3392
commit
f74e59d56b
16 changed files with 126 additions and 69 deletions
13
hosts/nixos/modules/programs/default.nix
Normal file
13
hosts/nixos/modules/programs/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./zsh.nix
|
||||
./hyprland.nix
|
||||
./thunar.nix
|
||||
./xfconf.nix
|
||||
./ssh.nix
|
||||
./ydotool.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
9
hosts/nixos/modules/programs/hyprland.nix
Normal file
9
hosts/nixos/modules/programs/hyprland.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
}
|
5
hosts/nixos/modules/programs/ssh.nix
Normal file
5
hosts/nixos/modules/programs/ssh.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.ssh.startAgent = true;
|
||||
}
|
5
hosts/nixos/modules/programs/steam.nix
Normal file
5
hosts/nixos/modules/programs/steam.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.steam.enable = true;
|
||||
}
|
12
hosts/nixos/modules/programs/thunar.nix
Normal file
12
hosts/nixos/modules/programs/thunar.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
services.tumbler.enable = true; # Thumbnail support for images
|
||||
}
|
5
hosts/nixos/modules/programs/xfconf.nix
Normal file
5
hosts/nixos/modules/programs/xfconf.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.xfconf.enable = true;
|
||||
}
|
5
hosts/nixos/modules/programs/ydotool.nix
Normal file
5
hosts/nixos/modules/programs/ydotool.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.ydotool.enable = true;
|
||||
}
|
5
hosts/nixos/modules/programs/zsh.nix
Normal file
5
hosts/nixos/modules/programs/zsh.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.zsh.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue