restructure and further configure sway

This commit is contained in:
Astreaprtcl 2025-12-21 00:44:47 +01:00
parent f9138672e8
commit 8f5c2ff8f6
25 changed files with 476 additions and 256 deletions

View file

@ -1,28 +1,32 @@
{ config, lib, pkgs, home-manager, ... }:
{
config,
lib,
pkgs,
home-manager,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.users.mara;
in
{
options.users.mara.enable = mkEnableOption "Enable the user Mara";
options.users.mara.enable = lib.mkEnableOption "Enable the user Mara";
config = mkIf cfg.enable {
home-manager.users.mara = { config, pkgs, ... }:
config = lib.mkIf cfg.enable {
home-manager.users.mara =
{ config, pkgs, ... }:
{
imports = [
../home-default.nix
./config/all.nix
];
{
imports = (
[ ../default.nix ] ++ lib.fileset.toList (lib.fileset.fileFilter (f: f.hasExt "nix") ./config)
);
home = {
username = "mara";
homeDirectory = "/home/mara";
home = {
username = "mara";
homeDirectory = "/home/mara";
};
};
custom.backgroundDir = config.home.homeDirectory + "/Pictures/Archive/Wallpaper/Landscape";
};
programs.fish.enable = true;