rfactoring working now

This commit is contained in:
Charlie Root 2024-07-21 17:36:55 +02:00
commit 147dedbca8
10 changed files with 48 additions and 29 deletions

View file

@ -5,7 +5,7 @@
}: let
cfg = config.modules.usrEnv.programs.media.beets;
inherit (config.modules.other.system) username;
inherit (config.modules.services.mpd) musicDirectory;
inherit (config.modules.usrEnv.services.media.mpd) musicDirectory;
inherit (lib) mkIf;
in {
config = mkIf cfg.enable {

View file

@ -1 +1,13 @@
_: {imports = [./cli ./gui ./tui ./other ./services ./editors ./wms ./styling];}
_: {
imports = [
./cli
./gui
./tui
./other
./services
./editors
./wms
./styling
./options
];
}

View file

@ -28,12 +28,12 @@ in {
environment.systemPackages = with pkgs; [
typstyle
];
imports = concatLists [
# neovim-flake home-manager module
[nvf.nixosModules.default]
# construct this entire directory as a module
# which means all default.nix files will be imported automtically
(mkNeovimModule {path = ./.;})
];
};
imports = concatLists [
# neovim-flake home-manager module
[nvf.nixosModules.default]
# construct this entire directory as a module
# which means all default.nix files will be imported automtically
(mkNeovimModule {path = ./.;})
];
}

View file

@ -12,7 +12,7 @@
inherit (lib.attrsets) genAttrs;
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.editors.neovim;
cfg = config.modules.system.programs.editors.neovim;
nvf = inputs.neovim-flake;
inherit (nvf.lib.nvim.dag) entryBefore entryAnywhere;
@ -24,7 +24,6 @@
path = toString finalPath;
};
in {
options.modules.editors.neovim.enable = mkEnableOption "neovim";
config = mkIf cfg.enable {
programs.neovim-flake = {
enable = true;

View file

@ -0,0 +1,3 @@
_: {
imports = [./style/module.nix ./system/module.nix ./usrEnv/module.nix];
}

View file

@ -0,0 +1,8 @@
_: {
imports = [
./desktop.nix
./programs/media.nix
./programs/launchers.nix
./services/default.nix
];
}

View file

@ -37,7 +37,7 @@ in {
'';
};
home-manager.users.${username} = {
home.Packages = with pkgs; [mpc-cli];
home.packages = with pkgs; [mpc-cli];
services = {
mpd-mpris = {
enable = true;

View file

@ -5,7 +5,7 @@
lib,
...
}: let
cfg = config.modules.theming.stylix;
cfg = config.modules.usrEnv.style.stylix;
inherit (config.modules.usrEnv.style.stylix) scheme image cursor fontsizes;
inherit (lib) mkIf;
in {

View file

@ -7,7 +7,7 @@
with lib; let
cfg = config.modules.usrEnv.programs.media.ncmpcpp;
inherit (config.modules.other.system) username;
inherit (config.modules.services.mpd) musicDirectory;
inherit (config.modules.usrEnv.services.media.mpd) musicDirectory;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {