Everything works for now except dashboard and maybe some other
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.home-audio.enable;
|
||||
in {
|
||||
options.azos.home-audio.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
# home.packages = with pkgs; [pavucontrol];
|
||||
};
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
imports = [./mail.nix ./encryption.nix];
|
||||
imports = [./mail.nix ./encryption.nix ./kubernetes.nix ./git.nix ./mpris-proxy.nix ./qutebrowser-config.nix ./audio.nix];
|
||||
}
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
[commit]
|
||||
gpgsign = true
|
||||
[user]
|
||||
name = Aner Zakobar
|
||||
email = aner@zakobar.com
|
||||
signingkey = 6D17E295C70E2674
|
||||
[credential]
|
||||
helper = !pass-git-helper $@
|
||||
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.git.enable;
|
||||
config.azos.git-config.enable;
|
||||
in {
|
||||
optionns.azos.git.enable = lib.mkOption {
|
||||
options.azos.git-config.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.kubectl.enable;
|
||||
in {
|
||||
options.azos.kubectl.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
kubectl
|
||||
kubernetes-helm
|
||||
velero
|
||||
];
|
||||
};
|
||||
}
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.mpris-proxy.enable;
|
||||
in {
|
||||
options.azos.mpris-proxy.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
services.mpris-proxy.enable = true;
|
||||
};
|
||||
}
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.qutebrowser-config.enable;
|
||||
in {
|
||||
options.azos.qutebrowser-config.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.file.".config/qutebrowser/config.py".source = ./qutebrowser-config.py;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
# Basing this heavily on ii.com qutebrowser template
|
||||
|
||||
config.load_autoconfig(True)
|
||||
|
||||
#Using a lot from DTs config
|
||||
#https://gitlab.com/dwt1/dotfiles/-/blob/master/.config/qutebrowser/config.py
|
||||
#Also using this https://github.com/miseran/tabs_are_windows/blob/main/config.py
|
||||
|
||||
c.tabs.show = 'never'
|
||||
c.tabs.tabs_are_windows = True
|
||||
c.window.title_format = 'qute: {private}{host}{perc}{title_sep}{current_title}'
|
||||
|
||||
#Search engines from DT
|
||||
c.url.searchengines = {
|
||||
'DEFAULT': 'https://duckduckgo.com/?q={}',
|
||||
'am': 'https://www.amazon.com/s?k={}', #Amazon
|
||||
'aw': 'https://wiki.archlinux.org/?search={}', #Arch Wiki
|
||||
'go': 'https://www.google.com/search?q={}', #Google
|
||||
're': 'https://www.reddit.com/r/{}', 'wi': #Reddit
|
||||
'https://en.wikipedia.org/wiki/{}', #Wikipedia
|
||||
'yt': 'https://www.youtube.com/results?search_query={}', #Youtube
|
||||
'gh': 'https://github.com/search?q={}', #Qutebrowser
|
||||
'wa' : 'https://www.wolframalpha.com/input/?i={}' #Wolfram alpha
|
||||
}
|
||||
|
||||
#Youtube stuff from DT.
|
||||
#Added media-title to MPV and youtube-dl with exwm process to track progress.
|
||||
config.bind('M', 'hint links spawn mpv --title=\'${media-title}\' {hint-url}')
|
||||
config.bind('Z',
|
||||
'hint links spawn emacsclient -e "(start-process '\
|
||||
'\\"youtube-dl {hint-url}\\" \\"youtube-dl {hint-url}\\" '\
|
||||
'\\"youtube-dl\\" \\"-o\\" \\"~/downloads/%(title)s.%(ext)s\\" '\
|
||||
'\\"{hint-url}\\" \\"--newline\\")"')
|
||||
|
||||
config.bind('xb', 'config-cycle statusbar.show always in-mode')
|
||||
c.statusbar.show = 'in-mode'
|
||||
|
||||
#Only confirm if downloads
|
||||
c.confirm_quit = ['downloads']
|
||||
|
||||
c.downloads.location.directory = '~/downloads'
|
||||
c.downloads.location.prompt = False
|
||||
|
||||
c.editor.command = ['emacsclient', '-e', '(find-file "{}")']
|
||||
|
||||
monospace = "10pt 'LiberationMono'"
|
||||
c.fonts.completion.category = f"bold{monospace}"
|
||||
c.fonts.completion.entry = monospace
|
||||
c.fonts.debug_console = monospace
|
||||
c.fonts.downloads = monospace
|
||||
c.fonts.keyhint = monospace
|
||||
c.fonts.messages.error = monospace
|
||||
c.fonts.messages.info = monospace
|
||||
c.fonts.messages.warning = monospace
|
||||
c.fonts.prompts = monospace
|
||||
c.fonts.statusbar = monospace
|
||||
c.fonts.hints = "bold 13px 'LiberationMono'"
|
||||
@@ -0,0 +1,16 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.hardware-audio.enable;
|
||||
in {
|
||||
options.azos.hardware-audio.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
hardware.pulseaudio.enable = true;
|
||||
environment.systemPackages = with pkgs; [pavucontrol];
|
||||
};
|
||||
}
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.bluetooth.enable;
|
||||
in {
|
||||
options.azos.bluetooth.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
# Add your reusable NixOS modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
|
||||
# These should be stuff you would like to share with others, not your personal configurations.
|
||||
{
|
||||
# List your module files here
|
||||
# my-module = import ./my-module.nix;
|
||||
imports = [./audio.nix ./bluetooth.nix];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user