refactor: rename home modules/general cleanup
This commit is contained in:
parent
16dd61d968
commit
653640b484
86 changed files with 230 additions and 322 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./editor # Still need to implement nvim
|
./editor # Still need to implement nvim
|
||||||
./fileManager
|
./fileManager
|
||||||
# ./language
|
|
||||||
./multiplexer # Still need to implement tmux and screen
|
./multiplexer # Still need to implement tmux and screen
|
||||||
./prompt # only Starship is currently implemented
|
./prompt # only Starship is currently implemented
|
||||||
./shell
|
./shell
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# ./nvim
|
# ./nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.console.editor = {
|
options.homeModules.console.editor = {
|
||||||
helix = {
|
helix = {
|
||||||
enable = lib.mkEnableOption "Enable helix text editor";
|
enable = lib.mkEnableOption "Enable helix text editor";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ inputs, config, pkgs, lib, ... }:
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.editor.helix;
|
cfg = config.homeModules.console.editor.helix;
|
||||||
inherit (config) colorscheme;
|
inherit (config) colorscheme;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
108
home/modules/console/editor/helix/languages.nix
Normal file
108
home/modules/console/editor/helix/languages.nix
Normal file
|
|
@ -0,0 +1,108 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.console.editor.helix;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.helix.languages = {
|
||||||
|
language = let
|
||||||
|
deno = lang: {
|
||||||
|
command = "${pkgs.deno}/bin/deno";
|
||||||
|
args = ["fmt" "-" "--ext" lang];
|
||||||
|
};
|
||||||
|
|
||||||
|
prettier = lang: {
|
||||||
|
command = "${pkgs.nodePackages.prettier}/bin/prettier";
|
||||||
|
args = ["--parser" lang];
|
||||||
|
};
|
||||||
|
prettierLangs = map (e: {
|
||||||
|
name = e;
|
||||||
|
formatter = prettier e;
|
||||||
|
});
|
||||||
|
langs = ["css" "scss" "html"];
|
||||||
|
in
|
||||||
|
[
|
||||||
|
{
|
||||||
|
name = "bash";
|
||||||
|
auto-format = true;
|
||||||
|
formatter = {
|
||||||
|
command = "${pkgs.shfmt}/bin/shfmt";
|
||||||
|
args = ["-i" "2"];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "clojure";
|
||||||
|
injection-regex = "(clojure|clj|edn|boot|yuck)";
|
||||||
|
file-types = ["clj" "cljs" "cljc" "clje" "cljr" "cljx" "edn" "boot" "yuck"];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "javascript";
|
||||||
|
auto-format = true;
|
||||||
|
language-servers = ["deno-lsp"];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "json";
|
||||||
|
formatter = deno "json";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "markdown";
|
||||||
|
auto-format = true;
|
||||||
|
formatter = deno "md";
|
||||||
|
}
|
||||||
|
]
|
||||||
|
++ prettierLangs langs;
|
||||||
|
|
||||||
|
language-server = {
|
||||||
|
bash-language-server = {
|
||||||
|
command = "${pkgs.nodePackages.bash-language-server}/bin/bash-language-server";
|
||||||
|
args = ["start"];
|
||||||
|
};
|
||||||
|
|
||||||
|
clangd = {
|
||||||
|
command = "${pkgs.clang-tools}/bin/clangd";
|
||||||
|
clangd.fallbackFlags = ["-std=c++2b"];
|
||||||
|
};
|
||||||
|
|
||||||
|
deno-lsp = {
|
||||||
|
command = "${pkgs.deno}/bin/deno";
|
||||||
|
args = ["lsp"];
|
||||||
|
environment.NO_COLOR = "1";
|
||||||
|
config.deno = {
|
||||||
|
enable = true;
|
||||||
|
lint = true;
|
||||||
|
unstable = true;
|
||||||
|
suggest = {
|
||||||
|
completeFunctionCalls = false;
|
||||||
|
imports = {hosts."https://deno.land" = true;};
|
||||||
|
};
|
||||||
|
inlayHints = {
|
||||||
|
enumMemberValues.enabled = true;
|
||||||
|
functionLikeReturnTypes.enabled = true;
|
||||||
|
parameterNames.enabled = "all";
|
||||||
|
parameterTypes.enabled = true;
|
||||||
|
propertyDeclarationTypes.enabled = true;
|
||||||
|
variableTypes.enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nil = {
|
||||||
|
command = lib.getExe pkgs.nil;
|
||||||
|
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
||||||
|
};
|
||||||
|
|
||||||
|
vscode-css-language-server = {
|
||||||
|
command = "${pkgs.nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
|
||||||
|
args = ["--stdio"];
|
||||||
|
config = {
|
||||||
|
provideFormatter = true;
|
||||||
|
css.validate.enable = true;
|
||||||
|
scss.validate.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
# ./ranger
|
# ./ranger
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.console.fileManager = {
|
options.homeModules.console.fileManager = {
|
||||||
lf = {
|
lf = {
|
||||||
enable = lib.mkEnableOption "Enable lf file manager";
|
enable = lib.mkEnableOption "Enable lf file manager";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
# - ripdrag support
|
# - ripdrag support
|
||||||
# - color parity with eza
|
# - color parity with eza
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.fileManager.lf;
|
cfg = config.homeModules.console.fileManager.lf;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#./tmux
|
#./tmux
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.console.multiplexer = {
|
options.homeModules.console.multiplexer = {
|
||||||
zellij = {
|
zellij = {
|
||||||
enable = lib.mkEnableOption "Enable zellij multiplexer";
|
enable = lib.mkEnableOption "Enable zellij multiplexer";
|
||||||
};
|
};
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
inherit (config) colorscheme;
|
inherit (config) colorscheme;
|
||||||
inherit (colorscheme) colors;
|
inherit (colorscheme) colors;
|
||||||
cfg = config.programs.console.multiplexer.zellij;
|
cfg = config.homeModules.console.multiplexer.zellij;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
./starship
|
./starship
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.console.prompt = {
|
options.homeModules.console.prompt = {
|
||||||
starship = {
|
starship = {
|
||||||
enable = lib.mkEnableOption "Enable starship prompt";
|
enable = lib.mkEnableOption "Enable starship prompt";
|
||||||
};
|
};
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.prompt.starship;
|
cfg = config.homeModules.console.prompt.starship;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.shell.bash;
|
cfg = config.homeModules.console.shell.bash;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
./bash
|
./bash
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.console.shell = {
|
options.homeModules.console.shell = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = lib.mkEnableOption "Enable fish configuration";
|
enable = lib.mkEnableOption "Enable fish configuration";
|
||||||
};
|
};
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.shell.fish;
|
cfg = config.homeModules.console.shell.fish;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages;
|
hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages;
|
||||||
hasEza = hasPackage "eza";
|
hasEza = hasPackage "eza";
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./tools
|
./tools
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.console.utility = {
|
options.homeModules.console.utility = {
|
||||||
nixIndex = {
|
nixIndex = {
|
||||||
enable = lib.mkEnableOption "Enable nixIndex configuration";
|
enable = lib.mkEnableOption "Enable nixIndex configuration";
|
||||||
};
|
};
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.utility.git;
|
cfg = config.homeModules.console.utility.git;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.utility.nixIndex;
|
cfg = config.homeModules.console.utility.nixIndex;
|
||||||
update-script = pkgs.writeShellApplication {
|
update-script = pkgs.writeShellApplication {
|
||||||
name = "fetch-nix-index-database";
|
name = "fetch-nix-index-database";
|
||||||
runtimeInputs = with pkgs; [ wget coreutils ];
|
runtimeInputs = with pkgs; [ wget coreutils ];
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.console.utility.tools;
|
cfg = config.homeModules.console.utility.tools;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#./brave -- still needs tio be implemented
|
#./brave -- still needs tio be implemented
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.browser = {
|
options.homeModules.desktop.browser = {
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = lib.mkEnableOption "Enable firefox browser";
|
enable = lib.mkEnableOption "Enable firefox browser";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
addons = inputs.firefox-addons.packages.${pkgs.system};
|
addons = inputs.firefox-addons.packages.${pkgs.system};
|
||||||
cfg = config.programs.desktop.browser.firefox;
|
cfg = config.homeModules.desktop.browser.firefox;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
./discord
|
./discord
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.communication = {
|
options.homeModules.desktop.communication = {
|
||||||
discord = {
|
discord = {
|
||||||
enable = lib.mkEnableOption "Enable discord module";
|
enable = lib.mkEnableOption "Enable discord module";
|
||||||
};
|
};
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.communication.discord;
|
cfg = config.homeModules.desktop.communication.discord;
|
||||||
inherit (config.colorscheme) colors;
|
inherit (config.colorscheme) colors;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
@ -4,12 +4,10 @@
|
||||||
./browser # done -- firefox still need: chrome, brave
|
./browser # done -- firefox still need: chrome, brave
|
||||||
#./creative -- still needs to be implemented
|
#./creative -- still needs to be implemented
|
||||||
./communication # only discord implemented
|
./communication # only discord implemented
|
||||||
#./desktopEnvironment -- still needs to be implemented
|
|
||||||
./media # done -- spotify gui still needs to be implemented
|
./media # done -- spotify gui still needs to be implemented
|
||||||
./terminal # done -- wezterm still needs to be implemented
|
./terminal # done -- wezterm still needs to be implemented
|
||||||
#./wallpaper -- still needs to be implemented
|
#./wallpaper -- still needs to be implemented
|
||||||
#./utility -- still needs to be implemented
|
#./utility -- still needs to be implemented
|
||||||
#./vm -- still needs to be implemented
|
|
||||||
./wayland # -- almost done, need to implement eww
|
./wayland # -- almost done, need to implement eww
|
||||||
#./productivity -- still needs to be implemented
|
#./productivity -- still needs to be implemented
|
||||||
# ./gaming
|
# ./gaming
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
./imv
|
./imv
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.media.image = {
|
options.homeModules.desktop.media.image = {
|
||||||
imv = {
|
imv = {
|
||||||
enable = lib.mkEnableOption "Enable imv image viewer";
|
enable = lib.mkEnableOption "Enable imv image viewer";
|
||||||
};
|
};
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.media.image.imv;
|
cfg = config.homeModules.desktop.media.image.imv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
./tui
|
./tui
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.media.music = {
|
options.homeModules.desktop.media.music = {
|
||||||
tui = {
|
tui = {
|
||||||
enable = lib.mkEnableOption "Enable tui music";
|
enable = lib.mkEnableOption "Enable tui music";
|
||||||
};
|
};
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.media.music.tui;
|
cfg = config.homeModules.desktop.media.music.tui;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./mpv
|
./mpv
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.media.video = {
|
options.homeModules.desktop.media.video = {
|
||||||
mpv = {
|
mpv = {
|
||||||
enable = lib.mkEnableOption "Enable mpv video player";
|
enable = lib.mkEnableOption "Enable mpv video player";
|
||||||
};
|
};
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.media.video.jellyfin;
|
cfg = config.homeModules.desktop.media.video.jellyfin;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.media.video.mpv;
|
cfg = config.homeModules.desktop.media.video.mpv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, pkgs, ...}:
|
{ lib, config, pkgs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.media.video.youtube;
|
cfg = config.homeModules.desktop.media.video.youtube;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.terminal;
|
cfg = config.homeModules.desktop.terminal;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
./kitty
|
./kitty
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.terminal = {
|
options.homeModules.desktop.terminal = {
|
||||||
foot = {
|
foot = {
|
||||||
enable = lib.mkEnableOption "Enable foot terminal";
|
enable = lib.mkEnableOption "Enable foot terminal";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
@ -2,17 +2,16 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) colors;
|
inherit (config.colorscheme) colors;
|
||||||
|
cfg = config.homeModules.desktop.terminal.foot;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.sessionVariables = lib.mkIf cfg.default {
|
||||||
home.sessionVariables = lib.mkIf config.programs.desktop.terminal.foot.default {
|
|
||||||
TERMINAL = "foot";
|
TERMINAL = "foot";
|
||||||
TERM = "foot";
|
TERM = "foot";
|
||||||
};
|
};
|
||||||
|
programs.foot = {
|
||||||
programs.foot = lib.mkIf config.programs.desktop.terminal.foot.enable {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
server.enable = true;
|
server.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -2,17 +2,16 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) colors;
|
inherit (config.colorscheme) colors;
|
||||||
cfg = config.programs.desktop.terminal.kitty;
|
cfg = config.homeModules.desktop.terminal.kitty;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
home.sessionVariables = lib.mkIf cfg.default {
|
home.sessionVariables = lib.mkIf cfg.default {
|
||||||
TERMINAL = "kitty -1";
|
TERMINAL = "kitty -1";
|
||||||
TERM = "kitty -1";
|
TERM = "kitty -1";
|
||||||
};
|
};
|
||||||
|
programs.kitty = {
|
||||||
programs.kitty = lib.mkIf cfg.enable {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
font = {
|
||||||
name = config.fontProfiles.monospace.family;
|
name = config.fontProfiles.monospace.family;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.themeSettings;
|
cfg = config.homeModules.desktop.themeSettings;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# settings to be expanded on in the future
|
# settings to be expanded on in the future
|
||||||
options.programs.desktop.themeSettings = {
|
options.homeModules.desktop.themeSettings = {
|
||||||
enable = lib.mkEnableOption "Enable theme settings";
|
enable = lib.mkEnableOption "Enable theme settings";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.themeSettings;
|
cfg = config.homeModules.desktop.themeSettings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib. mkIf cfg.enable {
|
config = lib. mkIf cfg.enable {
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
||||||
cfg = config.programs.desktop.themeSettings;
|
cfg = config.homeModules.desktop.themeSettings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable (rec {
|
config = lib.mkIf cfg.enable (rec {
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.themeSettings;
|
cfg = config.homeModules.desktop.themeSettings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
21
home/modules/desktop/utility/gammastep.nix
Normal file
21
home/modules/desktop/utility/gammastep.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.desktop.utility.gammastep;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.gammastep = lib.mkif config.programs.desktop.windowManager.hyprland.enable {
|
||||||
|
enable = true;
|
||||||
|
provider = "geoclue2";
|
||||||
|
temperature = {
|
||||||
|
day = 6000;
|
||||||
|
night = 4600;
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
general.adjustment-method = "wayland";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#./waybar -- needs to be implemented
|
#./waybar -- needs to be implemented
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.wayland.bar = {
|
options.homeModules.desktop.wayland.bar = {
|
||||||
eww = {
|
eww = {
|
||||||
enable = lib.mkEnableOption "Enable Eww bar";
|
enable = lib.mkEnableOption "Enable Eww bar";
|
||||||
};
|
};
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
# ./launcher
|
# ./launcher
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.wayland = {
|
options.homeModules.desktop.wayland = {
|
||||||
base = {
|
base = {
|
||||||
enable = lib.mkEnableOption "Enable wayland specific utilities";
|
enable = lib.mkEnableOption "Enable wayland specific utilities";
|
||||||
};
|
};
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./swaylock
|
./swaylock
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.wayland.lockscreen = {
|
options.homeModules.desktop.wayland.lockscreen = {
|
||||||
swaylock = {
|
swaylock = {
|
||||||
enable = lib.mkEnableOption "Enable Swaylock screen";
|
enable = lib.mkEnableOption "Enable Swaylock screen";
|
||||||
};
|
};
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) colors;
|
inherit (config.colorscheme) colors;
|
||||||
cfg = config.programs.desktop.wayland.lockscreen.swaylock;
|
cfg = config.homeModules.desktop.wayland.lockscreen.swaylock;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.swaylock = lib.mkIf cfg.enable {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
font = config.fontProfiles.monospace.family;
|
font = config.fontProfiles.monospace.family;
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#./dunst -- still needs to be implemented
|
#./dunst -- still needs to be implemented
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.wayland.notification = {
|
options.homeModules.desktop.wayland.notification = {
|
||||||
mako = {
|
mako = {
|
||||||
enable = lib.mkEnableOption "Enable mako notification daemon";
|
enable = lib.mkEnableOption "Enable mako notification daemon";
|
||||||
};
|
};
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) colors kind;
|
inherit (config.colorscheme) colors kind;
|
||||||
cfg = config.programs.desktop.wayland.notification.mako;
|
cfg = config.homeModules.desktop.wayland.notification.mako;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
services.mako = lib.mkIf cfg.enable {
|
services.mako = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconPath =
|
iconPath =
|
||||||
if kind == "dark" then
|
if kind == "dark" then
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.wayland.base;
|
cfg = config.homeModules.desktop.wayland.base;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -35,16 +35,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gammastep = {
|
# services.gammastep = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
provider = "geoclue2";
|
# provider = "geoclue2";
|
||||||
temperature = {
|
# temperature = {
|
||||||
day = 6000;
|
# day = 6000;
|
||||||
night = 4600;
|
# night = 4600;
|
||||||
};
|
# };
|
||||||
settings = {
|
# settings = {
|
||||||
general.adjustment-method = "wayland";
|
# general.adjustment-method = "wayland";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
./hyprland
|
./hyprland
|
||||||
];
|
];
|
||||||
|
|
||||||
options.programs.desktop.wayland.windowManager = {
|
options.homeModules.desktop.wayland.windowManager = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = lib.mkEnableOption "Enable Hyprland window-manager";
|
enable = lib.mkEnableOption "Enable Hyprland window-manager";
|
||||||
};
|
};
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.wayland.windowManager.hyprland;
|
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
wayland.windowManager.hyprland = lib.mkIf cfg.enable {
|
wayland.windowManager.hyprland = {
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 10;
|
gaps_in = 10;
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.wayland.windowManager.hyprland;
|
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
||||||
light = "${pkgs.light}/bin/light";
|
|
||||||
notifysend = "${pkgs.libnotify}/bin/notify-send";
|
notifysend = "${pkgs.libnotify}/bin/notify-send";
|
||||||
#pamixer = "${pkgs.pamixer}/bin/pamixer";
|
#pamixer = "${pkgs.pamixer}/bin/pamixer";
|
||||||
|
|
||||||
|
|
@ -10,15 +9,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$1" == "up" ]; then
|
if [ "$1" == "up" ]; then
|
||||||
${light} -A 10
|
brillo -q -u 30000 -A 5
|
||||||
elif [ "$1" == "down" ]; then
|
elif [ "$1" == "down" ]; then
|
||||||
${light} -U 10
|
brillo -q -u 30000 -U 5
|
||||||
else
|
else
|
||||||
echo "Invalid argument"
|
echo "Invalid argument"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BRIGHTNESS=$(${light} -G | awk -F'.' '{print$1}')
|
BRIGHTNESS=$(brillo -G | awk -F'.' '{print$1}')
|
||||||
|
|
||||||
${notifysend} --app-name="system-notify" -h string:x-canonical-private-synchronous:sys-notify " $BRIGHTNESS%"
|
${notifysend} --app-name="system-notify" -h string:x-canonical-private-synchronous:sys-notify " $BRIGHTNESS%"
|
||||||
'';
|
'';
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.wayland.windowManager.hyprland;
|
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -19,6 +19,8 @@ in
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
inputs.hyprwm-contrib.grimblast
|
inputs.hyprwm-contrib.grimblast
|
||||||
hyprpicker
|
hyprpicker
|
||||||
|
light
|
||||||
|
hyprshade
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home = lib.mkIf config.programs.desktop.wayland.windowManager.hyprland.enable {
|
home = lib.mkIf config.homeModules.desktop.wayland.windowManager.hyprland.enable {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
# GTK_IM_MODULE = "fcitx5";
|
# GTK_IM_MODULE = "fcitx5";
|
||||||
# QT_IM_MODULE = "fcitx5";
|
# QT_IM_MODULE = "fcitx5";
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.wayland.windowManager.hyprland;
|
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -13,6 +13,7 @@ in
|
||||||
"${pkgs._1password-gui}/bin/1password --silent"
|
"${pkgs._1password-gui}/bin/1password --silent"
|
||||||
"${pkgs.live-buds-cli}/bin/earbuds -d"
|
"${pkgs.live-buds-cli}/bin/earbuds -d"
|
||||||
"eww daemon && eww open bar"
|
"eww daemon && eww open bar"
|
||||||
|
"systemctl --user start clight"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.programs.desktop.wayland.windowManager.hyprland;
|
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -7,7 +7,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nix-colors.homeManagerModule
|
inputs.nix-colors.homeManagerModule
|
||||||
../../programs
|
../../modules
|
||||||
] ++ (builtins.attrValues outputs.homeManagerModules);
|
] ++ (builtins.attrValues outputs.homeManagerModules);
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -44,7 +44,7 @@ in
|
||||||
|
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
|
|
||||||
programs = {
|
homeModules = {
|
||||||
console = {
|
console = {
|
||||||
editor.helix = {
|
editor.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ in
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../programs
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.desktop = {
|
homeModules.desktop = {
|
||||||
wayland = {
|
wayland = {
|
||||||
base.enable = true;
|
base.enable = true;
|
||||||
windowManager.hyprland.enable = true;
|
windowManager.hyprland.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,101 +0,0 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
programs.helix.languages = {
|
|
||||||
language = let
|
|
||||||
deno = lang: {
|
|
||||||
command = "${pkgs.deno}/bin/deno";
|
|
||||||
args = ["fmt" "-" "--ext" lang];
|
|
||||||
};
|
|
||||||
|
|
||||||
prettier = lang: {
|
|
||||||
command = "${pkgs.nodePackages.prettier}/bin/prettier";
|
|
||||||
args = ["--parser" lang];
|
|
||||||
};
|
|
||||||
prettierLangs = map (e: {
|
|
||||||
name = e;
|
|
||||||
formatter = prettier e;
|
|
||||||
});
|
|
||||||
langs = ["css" "scss" "html"];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
{
|
|
||||||
name = "bash";
|
|
||||||
auto-format = true;
|
|
||||||
formatter = {
|
|
||||||
command = "${pkgs.shfmt}/bin/shfmt";
|
|
||||||
args = ["-i" "2"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "clojure";
|
|
||||||
injection-regex = "(clojure|clj|edn|boot|yuck)";
|
|
||||||
file-types = ["clj" "cljs" "cljc" "clje" "cljr" "cljx" "edn" "boot" "yuck"];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "javascript";
|
|
||||||
auto-format = true;
|
|
||||||
language-servers = ["deno-lsp"];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "json";
|
|
||||||
formatter = deno "json";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "markdown";
|
|
||||||
auto-format = true;
|
|
||||||
formatter = deno "md";
|
|
||||||
}
|
|
||||||
]
|
|
||||||
++ prettierLangs langs;
|
|
||||||
|
|
||||||
language-server = {
|
|
||||||
bash-language-server = {
|
|
||||||
command = "${pkgs.nodePackages.bash-language-server}/bin/bash-language-server";
|
|
||||||
args = ["start"];
|
|
||||||
};
|
|
||||||
|
|
||||||
clangd = {
|
|
||||||
command = "${pkgs.clang-tools}/bin/clangd";
|
|
||||||
clangd.fallbackFlags = ["-std=c++2b"];
|
|
||||||
};
|
|
||||||
|
|
||||||
deno-lsp = {
|
|
||||||
command = "${pkgs.deno}/bin/deno";
|
|
||||||
args = ["lsp"];
|
|
||||||
environment.NO_COLOR = "1";
|
|
||||||
config.deno = {
|
|
||||||
enable = true;
|
|
||||||
lint = true;
|
|
||||||
unstable = true;
|
|
||||||
suggest = {
|
|
||||||
completeFunctionCalls = false;
|
|
||||||
imports = {hosts."https://deno.land" = true;};
|
|
||||||
};
|
|
||||||
inlayHints = {
|
|
||||||
enumMemberValues.enabled = true;
|
|
||||||
functionLikeReturnTypes.enabled = true;
|
|
||||||
parameterNames.enabled = "all";
|
|
||||||
parameterTypes.enabled = true;
|
|
||||||
propertyDeclarationTypes.enabled = true;
|
|
||||||
variableTypes.enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nil = {
|
|
||||||
command = lib.getExe pkgs.nil;
|
|
||||||
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
|
||||||
};
|
|
||||||
|
|
||||||
vscode-css-language-server = {
|
|
||||||
command = "${pkgs.nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
|
|
||||||
args = ["--stdio"];
|
|
||||||
config = {
|
|
||||||
provideFormatter = true;
|
|
||||||
css.validate.enable = true;
|
|
||||||
scss.validate.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,102 +0,0 @@
|
||||||
:root {
|
|
||||||
--nix-bg1: #32302f; /*base00*/
|
|
||||||
--nix-bg2: #3c3836; /*base01*/
|
|
||||||
--nix-bg3: #504945; /*base02*/
|
|
||||||
|
|
||||||
--nix-fg1: #d5c4a1; /*base05*/
|
|
||||||
--nix-fg2: #fbf1c7; /*base07*/
|
|
||||||
--nix-fg3: #665c54; /*base03*/
|
|
||||||
--nix-link: #83a598; /*base0D*/
|
|
||||||
|
|
||||||
--nix-accent: #fb4934; /*base08*/
|
|
||||||
--nix-hi: #b8bb26; /*base0B*/
|
|
||||||
|
|
||||||
/* server collapse */
|
|
||||||
--sb-collapsed-width: 12px;
|
|
||||||
--sb-transition-duration: 0.15s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-dark {
|
|
||||||
--background-primary: var(--nix-bg1);
|
|
||||||
--background-secondary: var(--nix-bg2);
|
|
||||||
--background-secondary-alt: var(--nix-bg3);
|
|
||||||
--header-primary: var(--nix-fg1);
|
|
||||||
--header-secondary: var(--nix-hi);
|
|
||||||
--text-normal: var(--nix-fg1);
|
|
||||||
--text-muted: var(--nix-fg1);
|
|
||||||
--text-link: var(--nix-link);
|
|
||||||
--background-accent: var(--nix-accent); /*base08*/
|
|
||||||
--background-tertiary: var(--nix-bg2); /*base01*/
|
|
||||||
--background-floating: var(--nix-bg1); /*base00*/
|
|
||||||
--background-mentioned: var(--nix-hi);
|
|
||||||
--background-mentioned: var(--nix-hi);
|
|
||||||
--interactive-normal: var(--nix-fg1); /*base05*/
|
|
||||||
--interactive-hover: var(--nix-hi); /*base0B*/
|
|
||||||
--interactive-active: var(--nix-fg2);
|
|
||||||
--interactive-muted: var(--nix-fg3); /*base03*/
|
|
||||||
--channels-default: var(--nix-fg1);
|
|
||||||
--background-mobile: var(--nix-bg1);
|
|
||||||
--background-mobile-secondary: var(--nix-bg2);
|
|
||||||
--background-modifier-selected: var(--nix-bg1);
|
|
||||||
--scrollbar-thin-thun: var(--nix-hi);
|
|
||||||
--scrollbar-auto-thumb: var(--nix-fg1);
|
|
||||||
--scrollbar-auto-track: var(--nix-bg2);
|
|
||||||
--channeltextarea-background: var(--nix-bg2);
|
|
||||||
--background-modifier-hover: var(--nix-bg1);
|
|
||||||
--activity-card-background: var(--nix-bg2);
|
|
||||||
--text-warning: var(--nix-accent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.link__95dc0 /* text channel*/ {
|
|
||||||
border-radius: 0px;
|
|
||||||
margin-left: var(--csu-init-margin);
|
|
||||||
font-family: JetBrains Mono Nerd Font;
|
|
||||||
transition:
|
|
||||||
margin-left var(--csu-anim-duration) var(--csu-anim-transition),
|
|
||||||
background-color var(--csu-anim-duration);
|
|
||||||
}
|
|
||||||
|
|
||||||
.containerDefault__3187b .wrapper__7bcde:before /* text channel */ {
|
|
||||||
content: "";
|
|
||||||
display: inline-block;
|
|
||||||
background: var(--nix-hi);
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* server collapse */
|
|
||||||
.guilds__2b93a /* servers */ {
|
|
||||||
overflow: hidden !important;
|
|
||||||
width: var(--sb-collapsed-width, 75px);
|
|
||||||
transition: width var(--sb-transition-duration);
|
|
||||||
}
|
|
||||||
.guilds__2b93a:hover /* expand server bar on hover */ {
|
|
||||||
width: 72px;
|
|
||||||
overflow: visible !important;
|
|
||||||
animation: server-bar-overflow 0s linear 0ms forwards;
|
|
||||||
}
|
|
||||||
.guilds__2b93a ~ .base__3e6af /* friends list, chat */ {
|
|
||||||
position: absolute;
|
|
||||||
left: var(--sb-collapsed-left, var(--sb-collapsed-width));
|
|
||||||
top: var(--sb-collapsed-top, 0px);
|
|
||||||
bottom: var(--sb-collapsed-bottom, 0px);
|
|
||||||
right: var(--sb-collapsed-right, 0px);
|
|
||||||
transition-property: var(--sb-transition-property, left);
|
|
||||||
transition-duration: var(--sb-transition-duration);
|
|
||||||
}
|
|
||||||
.guilds__2b93a:hover ~ .base__3e6af /* friends list, chat */ {
|
|
||||||
position: absolute;
|
|
||||||
left: var(--sb-left, 60px);
|
|
||||||
top: var(--sb-top, 0px);
|
|
||||||
bottom: var(--sb-bottom, 0px);
|
|
||||||
right: var(--sb-right, 0px);
|
|
||||||
}
|
|
||||||
@keyframes server-bar-overflow {
|
|
||||||
from {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
{ lib, ... }
|
|
||||||
{
|
|
||||||
import = [
|
|
||||||
./window-manager
|
|
||||||
#./gnome -- still needs to be implemented
|
|
||||||
#./kde -- still needs to implemented
|
|
||||||
./appearance
|
|
||||||
];
|
|
||||||
|
|
||||||
options.programs.desktop.desktopEnvironment = {
|
|
||||||
hyprland = {
|
|
||||||
enable = lib.mkEnableOption "Enable Hyprland window-manager";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
{
|
|
||||||
services.gammastep = lib.mkif config.programs.desktop.windowManager.hyprland.enable {
|
|
||||||
enable = true;
|
|
||||||
provider = "geoclue2";
|
|
||||||
temperature = {
|
|
||||||
day = 6000;
|
|
||||||
night = 4600;
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
general.adjustment-method = "wayland";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
inputs.hardware.nixosModules.lenovo-thinkpad-t480s
|
inputs.hardware.nixosModules.lenovo-thinkpad-t480s
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../profiles
|
../../profiles
|
||||||
# ../../modules
|
|
||||||
];
|
];
|
||||||
|
|
||||||
activeProfiles = ["base" "laptop"];
|
activeProfiles = ["base" "laptop"];
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,18 @@ in
|
||||||
hardware.brillo.enable = true;
|
hardware.brillo.enable = true;
|
||||||
services.clight = {
|
services.clight = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
temperature = {
|
||||||
|
night = 1000;
|
||||||
|
day = 6000;
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
verbose = true;
|
verbose = true;
|
||||||
backlight.disabled = true;
|
backlight.disabled = true;
|
||||||
dpms.timeouts = [900 300];
|
dpms.timeouts = [900 300];
|
||||||
dimmer.timeouts = [870 270];
|
dimmer.timeouts = [870 270];
|
||||||
gamma.long_transition = true;
|
|
||||||
screen.disabled = true;
|
screen.disabled = true;
|
||||||
|
sunrise = "9:00";
|
||||||
|
sunset = "20:00";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -46,9 +46,19 @@ in
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
opengl.enable = true;
|
opengl = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
libva
|
||||||
|
vaapiVdpau
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
|
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||||
|
vaapiVdpau
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = lib.mkDefault "23.11";
|
system.stateVersion = lib.mkDefault "23.11";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ in
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
power.enable = true;
|
power.enable = true;
|
||||||
# backlight.enable = true;
|
backlight.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue