add files
This commit is contained in:
parent
919f3ba969
commit
d3ff717341
6 changed files with 122 additions and 58 deletions
|
|
@ -81,12 +81,42 @@ in
|
|||
bluetooth.enable = true;
|
||||
flatpak.enable = true;
|
||||
|
||||
symlink = {
|
||||
"SteamApps" = ".local/share/Steam/steamapps";
|
||||
"Development/Quickshell" = ".config/quickshell";
|
||||
# "Development/KDE-Widget" = ".local/share/plasma/plasmoids";
|
||||
# "Development/SplashScreen" = ".local/share/plasma/look-and-feel";
|
||||
# "Development/DesktopEffects" = ".local/share/kwin/effects";
|
||||
files = {
|
||||
force = {
|
||||
".config/dolphinrc" = true;
|
||||
};
|
||||
|
||||
mkForce = {
|
||||
".mozilla/firefox/default/search.json.mozlz4" = true;
|
||||
};
|
||||
|
||||
source = {
|
||||
".config/qt5ct/colors/Catppuccin-Mocha.conf" =
|
||||
"${pkgs.catppuccin-qt5ct}/share/qt5ct/colors/catppuccin-mocha-sapphire.conf";
|
||||
".config/qt6ct/colors/Catppuccin-Mocha.conf" =
|
||||
"${pkgs.catppuccin-qt5ct}/share/qt6ct/colors/catppuccin-mocha-sapphire.conf";
|
||||
|
||||
".config/dolphinrc" = libs.root "/configs/dolphinrc";
|
||||
|
||||
".local/share/kio/servicemenus/copy-server-public-url.desktop" =
|
||||
libs.root "/configs/services-menu/copy-server-public-url.desktop";
|
||||
".local/share/kio/servicemenus/open-with-code.desktop" =
|
||||
libs.root "/configs/services-menu/open-with-code.desktop";
|
||||
".local/share/kio/servicemenus/open-with-nvim.desktop" =
|
||||
libs.root "/configs/services-menu/open-with-nvim.desktop";
|
||||
".local/share/kio/servicemenus/open-with-antigravity.desktop" =
|
||||
libs.root "/configs/services-menu/open-with-antigravity.desktop";
|
||||
".local/share/kio/servicemenus/open-ghostty-here.desktop" =
|
||||
libs.root "/configs/services-menu/open-ghostty-here.desktop";
|
||||
};
|
||||
|
||||
symlink = {
|
||||
"SteamApps" = ".local/share/Steam/steamapps";
|
||||
"Development/Quickshell" = ".config/quickshell";
|
||||
# "Development/KDE-Widget" = ".local/share/plasma/plasmoids";
|
||||
# "Development/SplashScreen" = ".local/share/plasma/look-and-feel";
|
||||
# "Development/DesktopEffects" = ".local/share/kwin/effects";
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
|
|||
|
|
@ -1,35 +1,50 @@
|
|||
{ pkgs, lib, osconfig, config, ... }:
|
||||
{
|
||||
home.file = {
|
||||
".config/qt5ct/colors/Catppuccin-Mocha.conf".source = "${pkgs.catppuccin-qt5ct}/share/qt5ct/colors/catppuccin-mocha-sapphire.conf";
|
||||
".config/qt6ct/colors/Catppuccin-Mocha.conf".source = "${pkgs.catppuccin-qt5ct}/share/qt6ct/colors/catppuccin-mocha-sapphire.conf";
|
||||
pkgs,
|
||||
lib,
|
||||
osconfig,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.file = lib.mkMerge [
|
||||
(builtins.mapAttrs (_: path: {
|
||||
source = path;
|
||||
}) osconfig.device.files.source)
|
||||
|
||||
".local/share/kio/servicemenus/copy-server-public-url.desktop".source = ../../../configs/services-menu/copy-server-public-url.desktop;
|
||||
(builtins.mapAttrs (_: path: {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/${path}";
|
||||
}) osconfig.device.files.symlink)
|
||||
|
||||
".local/share/kio/servicemenus/open-with-code.desktop".source = ../../../configs/services-menu/open-with-code.desktop;
|
||||
".local/share/kio/servicemenus/open-with-nvim.desktop".source = ../../../configs/services-menu/open-with-nvim.desktop;
|
||||
".local/share/kio/servicemenus/open-with-antigravity.desktop".source = ../../../configs/services-menu/open-with-antigravity.desktop;
|
||||
".local/share/kio/servicemenus/open-ghostty-here.desktop".source = ../../../configs/services-menu/open-ghostty-here.desktop;
|
||||
(lib.mkMerge (
|
||||
builtins.map (name: lib.setAttrByPath [ name "force" ] true) (
|
||||
builtins.attrNames osconfig.device.files.force
|
||||
)
|
||||
))
|
||||
|
||||
".mozilla/firefox/default/search.json.mozlz4".force = lib.mkForce true;
|
||||
".config/dolphinrc" = {
|
||||
force = true;
|
||||
source = ../../../configs/dolphinrc;
|
||||
};
|
||||
} // builtins.mapAttrs (key: path: { source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/${path}"; }) osconfig.device.symlink;
|
||||
(lib.mkMerge (
|
||||
builtins.map (name: lib.setAttrByPath [ name "force" ] (lib.mkForce true)) (
|
||||
builtins.attrNames osconfig.device.files.mkForce
|
||||
)
|
||||
))
|
||||
];
|
||||
|
||||
xdg.configFile = {
|
||||
kdeglobals.text = builtins.readFile ((pkgs.catppuccin-kde.override { flavour = ["mocha"]; accents = ["sapphire"]; }) + "/share/color-schemes/CatppuccinMochaSapphire.colors") +
|
||||
''
|
||||
xdg.configFile.kdeglobals.text =
|
||||
builtins.readFile (
|
||||
(pkgs.catppuccin-kde.override {
|
||||
flavour = [ "mocha" ];
|
||||
accents = [ "sapphire" ];
|
||||
})
|
||||
+ "/share/color-schemes/CatppuccinMochaSapphire.colors"
|
||||
)
|
||||
+ ''
|
||||
|
||||
[UiSettings]
|
||||
ColorScheme=qt6ct
|
||||
|
||||
[General]
|
||||
TerminalApplication=${osconfig.device.programs.terminal}
|
||||
[UiSettings]
|
||||
ColorScheme=qt6ct
|
||||
|
||||
[Icons]
|
||||
Theme=Papirus
|
||||
'';
|
||||
};
|
||||
}
|
||||
[General]
|
||||
TerminalApplication=${osconfig.device.programs.terminal}
|
||||
|
||||
[Icons]
|
||||
Theme=Papirus
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
imports = [ ./programs.nix ];
|
||||
imports = [
|
||||
./programs.nix
|
||||
./file.nix
|
||||
];
|
||||
|
||||
options.device = {
|
||||
flatpak.enable = lib.mkEnableOption "flatpak";
|
||||
|
|
|
|||
24
options/common/file.nix
Normal file
24
options/common/file.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.device.files = {
|
||||
symlink = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
};
|
||||
|
||||
source = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.path;
|
||||
};
|
||||
|
||||
force = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.bool;
|
||||
};
|
||||
|
||||
mkForce = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.bool;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,18 +1,18 @@
|
|||
{ lib, ... }: {
|
||||
imports = [
|
||||
../common/default.nix
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../common/default.nix
|
||||
|
||||
./environment.nix
|
||||
./programs.nix
|
||||
./hardware.nix
|
||||
./file.nix
|
||||
];
|
||||
./environment.nix
|
||||
./programs.nix
|
||||
./hardware.nix
|
||||
];
|
||||
|
||||
options.device = {
|
||||
cursors = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "aemeath";
|
||||
description = "Cursor theme to use for the desktop";
|
||||
};
|
||||
options.device = {
|
||||
cursors = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "aemeath";
|
||||
description = "Cursor theme to use for the desktop";
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
{ lib, ... }: {
|
||||
options.device = {
|
||||
symlink = lib.mkOption {
|
||||
default = {};
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue