hah, fixed manwe only to break orome

This commit is contained in:
Chris Kruining 2025-03-18 21:57:16 +01:00
parent af58cfb4ab
commit 1172e2bd68
15 changed files with 133 additions and 105 deletions

View file

@ -16,7 +16,7 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
user.packages = with pkgs; [
(ungoogled-chromium.override {
commandLineArgs = [
"--enable-features=AcceleratedVideoEncoder"
@ -28,7 +28,7 @@ in {
})
];
home-manager.users.${user}.programs.chromium = {
programs.chromium = {
enable = true;
enablePlasmaBrowserIntegration = true;
extensions = [

View file

@ -6,6 +6,7 @@ let
inherit (lib.strings) concatStrings;
cfg = config.modules.${user}.desktop.browsers.firefox;
usr = config.users.users.${user};
in {
options.modules.${user}.desktop.browsers.firefox = let
inherit (lib.options) mkEnableOption;
@ -15,7 +16,7 @@ in {
enable = mkEnableOption "Gecko-based libre browser";
privacy.enable = mkEnableOption "Privacy Focused Firefox fork";
profileName = mkOpt str config.user.name;
profileName = mkOpt str usr.name;
settings = mkOpt' (attrsOf (oneOf [bool int str])) {} ''
Firefox preferences set in <filename>user.js</filename>
'';
@ -69,7 +70,7 @@ in {
# Enables userContent.css and userChrome.css for our theme modules
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
# Stop creating ~/Downloads!
"browser.download.dir" = "${config.user.home}/downloads";
"browser.download.dir" = "${usr.home}/downloads";
# Disables built-in password manager -> use external PM!
"signon.rememberSignons" = false;
# Firefox, DO NOT CHECK if you are the default browser..

View file

@ -11,7 +11,11 @@ in
in { enable = mkEnableOption "nano"; };
config = mkIf cfg.enable {
home-manager.users.${user}.programs.nano = {
user.packages = with pkgs; [
nano
];
programs.nano = {
enable = true;
syntaxHighlight = true;
nanorc = ''

View file

@ -15,7 +15,7 @@ in
config = mkIf cfg.enable {
modules.desktop.editors.nvim.enable = true;
home-manager.users.${user}.programs.nvf = {
programs.nvf = {
enable = true;
settings = {
vim = {

View file

@ -1,14 +1,14 @@
{ config, options, lib, pkgs, user, ... }:
let
inherit (lib.meta) getExe;
inherit (lib.modules) mkOption mkIf;
inherit (lib.modules) mkIf;
cfg = config.modules.${user}.desktop.plasma;
in
{
options.modules.${user}.desktop.plasma = let
inherit (lib.options) mkEnableOption;
in {
inherit (lib.options) mkEnableOption mkOption;
in {
enable = mkEnableOption "plasma 6";
autoLogin = mkOption {
@ -42,18 +42,20 @@ in
];
# should enable theme integration with gtk apps (i.e. firefox, thunderbird)
home-manager.users.${user}.programs.dconf.enable = true;
programs.dconf.enable = true;
home-manager.users.${user}.programs.plasma = {
enable = true;
home-manager.users.${user}.programs = {
plasma = {
enable = true;
kwin = {
edgeBarrier = 0;
cornerBarrier = false;
};
kwin = {
edgeBarrier = 0;
cornerBarrier = false;
};
spectacle.shortcuts = {
captureRectangularRegion = "Meta+Shift+S";
spectacle.shortcuts = {
captureRectangularRegion = "Meta+Shift+S";
};
};
};
};