rfactoring working now
This commit is contained in:
parent
26aa946bfa
commit
147dedbca8
10 changed files with 48 additions and 29 deletions
|
@ -46,11 +46,12 @@
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
sound.enable = true;
|
||||||
};
|
};
|
||||||
usrEnv = {
|
usrEnv = {
|
||||||
desktop.hyprland.enable = true;
|
desktops.hyprland.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
launchers.anyrun.enable = true;
|
launchers.anyrun.enable = false;
|
||||||
media = {
|
media = {
|
||||||
beets.enable = true;
|
beets.enable = true;
|
||||||
mpv.enable = true;
|
mpv.enable = true;
|
||||||
|
@ -58,13 +59,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
mpd.enable = true;
|
media.mpd = {
|
||||||
|
enable = true;
|
||||||
|
musicDirectory = "/home/${config.modules.other.system.username}/Nextcloud/Media/Music";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
style = {
|
style = {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
scheme = "${pkgs.base16-schemes}/share/themes/tomorrow-night.yaml";
|
scheme = "${pkgs.base16-schemes}/share/themes/tomorrow-night.yaml";
|
||||||
cursor.size = 28;
|
cursor = {
|
||||||
|
size = 28;
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
};
|
||||||
fontsizes = {
|
fontsizes = {
|
||||||
terminal = 18;
|
terminal = 18;
|
||||||
popups = 14;
|
popups = 14;
|
||||||
|
@ -93,19 +101,8 @@
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
waybar.enable = true;
|
waybar.enable = true;
|
||||||
};
|
};
|
||||||
editors = {
|
|
||||||
emacs.enable = true;
|
|
||||||
helix.enable = true;
|
|
||||||
kakoune.enable = true;
|
|
||||||
neovim.enable = true;
|
|
||||||
};
|
|
||||||
services = {
|
services = {
|
||||||
pipewire.enable = true;
|
|
||||||
dunst.enable = true;
|
dunst.enable = true;
|
||||||
mpd = {
|
|
||||||
enable = true;
|
|
||||||
musicDirectory = "/home/${config.modules.other.system.username}/Nextcloud/Media/Music";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
theming = {
|
theming = {
|
||||||
quickshell.enable = true;
|
quickshell.enable = true;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}: let
|
}: let
|
||||||
cfg = config.modules.usrEnv.programs.media.beets;
|
cfg = config.modules.usrEnv.programs.media.beets;
|
||||||
inherit (config.modules.other.system) username;
|
inherit (config.modules.other.system) username;
|
||||||
inherit (config.modules.services.mpd) musicDirectory;
|
inherit (config.modules.usrEnv.services.media.mpd) musicDirectory;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -1 +1,13 @@
|
||||||
_: {imports = [./cli ./gui ./tui ./other ./services ./editors ./wms ./styling];}
|
_: {
|
||||||
|
imports = [
|
||||||
|
./cli
|
||||||
|
./gui
|
||||||
|
./tui
|
||||||
|
./other
|
||||||
|
./services
|
||||||
|
./editors
|
||||||
|
./wms
|
||||||
|
./styling
|
||||||
|
./options
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
@ -28,12 +28,12 @@ in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
typstyle
|
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 = ./.;})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
inherit (lib.attrsets) genAttrs;
|
inherit (lib.attrsets) genAttrs;
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.editors.neovim;
|
cfg = config.modules.system.programs.editors.neovim;
|
||||||
nvf = inputs.neovim-flake;
|
nvf = inputs.neovim-flake;
|
||||||
inherit (nvf.lib.nvim.dag) entryBefore entryAnywhere;
|
inherit (nvf.lib.nvim.dag) entryBefore entryAnywhere;
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@
|
||||||
path = toString finalPath;
|
path = toString finalPath;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
options.modules.editors.neovim.enable = mkEnableOption "neovim";
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.neovim-flake = {
|
programs.neovim-flake = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
3
modules/options/default.nix
Normal file
3
modules/options/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
_: {
|
||||||
|
imports = [./style/module.nix ./system/module.nix ./usrEnv/module.nix];
|
||||||
|
}
|
8
modules/options/usrEnv/module.nix
Normal file
8
modules/options/usrEnv/module.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./desktop.nix
|
||||||
|
./programs/media.nix
|
||||||
|
./programs/launchers.nix
|
||||||
|
./services/default.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -37,7 +37,7 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
home.Packages = with pkgs; [mpc-cli];
|
home.packages = with pkgs; [mpc-cli];
|
||||||
services = {
|
services = {
|
||||||
mpd-mpris = {
|
mpd-mpris = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.modules.theming.stylix;
|
cfg = config.modules.usrEnv.style.stylix;
|
||||||
inherit (config.modules.usrEnv.style.stylix) scheme image cursor fontsizes;
|
inherit (config.modules.usrEnv.style.stylix) scheme image cursor fontsizes;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.usrEnv.programs.media.ncmpcpp;
|
cfg = config.modules.usrEnv.programs.media.ncmpcpp;
|
||||||
inherit (config.modules.other.system) username;
|
inherit (config.modules.other.system) username;
|
||||||
inherit (config.modules.services.mpd) musicDirectory;
|
inherit (config.modules.usrEnv.services.media.mpd) musicDirectory;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue