more stuff
This commit is contained in:
parent
28d1d1540b
commit
ed926635df
85
flake.lock
Normal file
85
flake.lock
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"nodes": {
|
||||
"home": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1608681543,
|
||||
"narHash": "sha256-6YNP8GBG0nhqLMQVkCBxRirTYaaGhI8gKCwgcJ5+sLc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "3627ec4de58d7fbda13c82dfec94eace10198f23",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"impermanence": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1607963610,
|
||||
"narHash": "sha256-GbThFdlYfh9ujQjXX6Ngn88s2ALd1aepKsbxj0lgm28=",
|
||||
"owner": "nix-community",
|
||||
"repo": "impermanence",
|
||||
"rev": "2cda5cd30bc7c56240a1a91ec8d44c6d5222ee17",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "impermanence",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mynex": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1607689647,
|
||||
"narHash": "sha256-pUpUCcp8usppbByFveRrV2NNS5sFrlvMndZt7xYOQL4=",
|
||||
"owner": "yusdacra",
|
||||
"repo": "nix-exprs",
|
||||
"rev": "e9c16b956180d23c3cb8ec3e2843b2be662d43ef",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"owner": "yusdacra",
|
||||
"repo": "nix-exprs",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1608700021,
|
||||
"narHash": "sha256-timIYNV0uwrbjg5L3zloUbPeFpBXnEtosbUaWdqR72U=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2ae527c50e049570dd25132f9325527aa2320e32",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-unstable-small",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home": "home",
|
||||
"impermanence": "impermanence",
|
||||
"mynex": "mynex",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
@ -15,7 +15,8 @@ let
|
||||
nixosPersistence = "${impermanence}/nixos.nix";
|
||||
};
|
||||
|
||||
modules = let
|
||||
modules =
|
||||
let
|
||||
inherit (home.nixosModules) home-manager;
|
||||
inherit (mynex.nixosModules) security networking;
|
||||
|
||||
@ -34,11 +35,13 @@ let
|
||||
};
|
||||
|
||||
local = import "${toString ./.}/${hostName}.nix";
|
||||
in [ core global local home-manager security networking ];
|
||||
in
|
||||
[ core global local home-manager security networking ];
|
||||
};
|
||||
|
||||
hosts = recImport {
|
||||
dir = ./.;
|
||||
_import = config;
|
||||
};
|
||||
in hosts
|
||||
in
|
||||
hosts
|
||||
|
@ -30,11 +30,13 @@ let
|
||||
|
||||
sudo umount /mnt
|
||||
'';
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../users/patriot
|
||||
../users/root
|
||||
../profiles/network
|
||||
# ../profiles/network/nginx.nix
|
||||
../profiles/develop
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
nixosPersistence
|
||||
@ -148,7 +150,7 @@ in {
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = [ btrfsDiff ];
|
||||
systemPackages = [ btrfsDiff pkgs.docker-compose ];
|
||||
pathsToLink = [ "/share/zsh" ];
|
||||
persistence."/persist" = {
|
||||
directories = [ "/etc/nixos" ];
|
||||
@ -161,6 +163,23 @@ in {
|
||||
# enable = true;
|
||||
# videoDrivers = [ "amdgpu" ];
|
||||
# };
|
||||
virtualisation.docker.enable = true;
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
local all all trust
|
||||
host all all 0.0.0.0/0 md5
|
||||
'';
|
||||
settings = {
|
||||
listen_addresses = "*";
|
||||
};
|
||||
initialScript = pkgs.writeText "backend-initScript" ''
|
||||
CREATE ROLE harmony WITH LOGIN PASSWORD 'harmony' CREATEDB;
|
||||
CREATE DATABASE harmony;
|
||||
GRANT ALL PRIVILEGES ON DATABASE harmony TO harmony;
|
||||
'';
|
||||
};
|
||||
|
||||
system.stateVersion = "20.09";
|
||||
}
|
||||
|
@ -3,7 +3,8 @@ let
|
||||
inherit (builtins) attrNames isAttrs isInt readDir toJSON;
|
||||
|
||||
inherit (lib) filterAttrs hasSuffix mapAttrs' nameValuePair removeSuffix;
|
||||
in rec {
|
||||
in
|
||||
rec {
|
||||
# mapFilterAttrs ::
|
||||
# (name -> value -> bool )
|
||||
# (name -> value -> { name = any; value = any; })
|
||||
@ -11,14 +12,16 @@ in rec {
|
||||
mapFilterAttrs = seive: f: attrs: filterAttrs seive (mapAttrs' f attrs);
|
||||
|
||||
recImport = { dir, _import ? base: import "${dir}/${base}.nix" }:
|
||||
mapFilterAttrs (_: v: v != null) (n: v:
|
||||
mapFilterAttrs (_: v: v != null)
|
||||
(n: v:
|
||||
if n != "default.nix" && hasSuffix ".nix" n && v == "regular"
|
||||
|
||||
then
|
||||
let name = removeSuffix ".nix" n; in nameValuePair (name) (_import name)
|
||||
|
||||
else
|
||||
nameValuePair ("") (null)) (readDir dir);
|
||||
nameValuePair ("") (null))
|
||||
(readDir dir);
|
||||
|
||||
pkgBin = name: "${pkgs."${name}"}/bin/${name}";
|
||||
}
|
||||
|
@ -1,3 +1,9 @@
|
||||
final: prev: {
|
||||
hikari = prev.hikari.overrideAttrs (old: rec { version = "2.2.2"; });
|
||||
hikari = prev.hikari.overrideAttrs (old: rec {
|
||||
src = prev.fetchzip {
|
||||
url = "https://hub.darcs.net/raichoo/hikari/dist/hikari.zip";
|
||||
sha256 = "sha256-wguyND2LDyWtIoFibuxfFf9fi2D/0v7/fnGXy3JGjgM=";
|
||||
};
|
||||
buildInputs = old.buildInputs ++ [ prev.pandoc ];
|
||||
});
|
||||
}
|
||||
|
@ -3,7 +3,8 @@ let
|
||||
inherit (util) pkgBin;
|
||||
inherit (lib) fileContents mkIf;
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [ ../local/locale.nix ];
|
||||
|
||||
boot = {
|
||||
@ -13,10 +14,12 @@ in {
|
||||
|
||||
console.font = "7x14";
|
||||
|
||||
environment = let
|
||||
environment =
|
||||
let
|
||||
coreBin = v: "${pkgs.coreutils}/bin/${v}";
|
||||
nixBin = "${config.nix.package}/bin/nix";
|
||||
in {
|
||||
in
|
||||
{
|
||||
systemPackages = with pkgs; [
|
||||
bat
|
||||
exa
|
||||
@ -28,10 +31,13 @@ in {
|
||||
iputils
|
||||
lm_sensors
|
||||
mkpasswd
|
||||
ntfs3g
|
||||
];
|
||||
|
||||
shellAliases = let ifSudo = string: mkIf config.security.sudo.enable string;
|
||||
in {
|
||||
shellAliases =
|
||||
let ifSudo = string: mkIf config.security.sudo.enable string;
|
||||
in
|
||||
{
|
||||
g = pkgBin "git";
|
||||
|
||||
grep = "${pkgs.ripgrep}/bin/rg";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ pkgs, ... }: {
|
||||
imports = [ ./kakoune.nix ];
|
||||
|
||||
environment.systemPackages = with pkgs; [ nixfmt ];
|
||||
environment.shellAliases = { nixf-all = "nixfmt **/**.nix"; };
|
||||
environment.systemPackages = with pkgs; [ nixpkgs-fmt ];
|
||||
environment.shellAliases = { nixf-all = "nixpkgs-fmt **/**.nix"; };
|
||||
}
|
||||
|
@ -1,8 +1,10 @@
|
||||
{
|
||||
services.stubby = {
|
||||
roundRobinUpstreams = false;
|
||||
upstreamServers = let nextDnsId = "75e43d";
|
||||
in ''
|
||||
upstreamServers =
|
||||
let nextDnsId = "75e43d";
|
||||
in
|
||||
''
|
||||
- address_data: 45.90.28.0
|
||||
tls_auth_name: "${nextDnsId}.dns1.nextdns.io"
|
||||
- address_data: 2a07:a8c0::0
|
||||
|
35
profiles/network/nginx.nix
Normal file
35
profiles/network/nginx.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ ... }: {
|
||||
# services.nginx = {
|
||||
# enable = true;
|
||||
# enableReload = true;
|
||||
# statusPage = true;
|
||||
# recommendedGzipSettings = true;
|
||||
# recommendedOptimisation = true;
|
||||
# recommendedProxySettings = true;
|
||||
# recommendedTlsSettings = true;
|
||||
# virtualHosts."yusdacras-host.ydns.eu" = {
|
||||
# # addSSL = true;
|
||||
# # enableACME = true;
|
||||
# listen = [
|
||||
# { addr = "0.0.0.0"; port = 8080; }
|
||||
# { addr = "[::]"; port = 8080; }
|
||||
# # { addr = "0.0.0.0"; port = 8081; ssl = true; }
|
||||
# ];
|
||||
# locations = {
|
||||
# "/matrix" = { proxyPass = "http://localhost:8000"; };
|
||||
# "/page" = {
|
||||
# root = "/var/www/yusdacras-host";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
|
||||
# security.acme = {
|
||||
# acceptTerms = true;
|
||||
# certs = {
|
||||
# "yusdacras-host.ydns.eu".email = "y.bera003.06@protonmail.com";
|
||||
# };
|
||||
# };
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8000 8448 ];
|
||||
}
|
@ -16,8 +16,8 @@ let
|
||||
|
||||
kideSrc = pkgs.fetchgit {
|
||||
url = "https://gitlab.com/yusdacra/kide.git";
|
||||
rev = "c4116d433add520d8e18382e0bfee9c49bf67fd0";
|
||||
sha256 = "sha256-RTYl0rFR7Tv5UisQXL4Wucrlw3NZeTKIqrXTdx095y0=";
|
||||
rev = "40cb21c7e553fcc0fed99ed93dabbc1ffca0dbd0";
|
||||
sha256 = "sha256-MLHyQWFs7/I12dzXGKJAIlyO3tw3y4otVeVjeXxrqY4=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
kideFiles =
|
||||
@ -46,6 +46,7 @@ let
|
||||
};
|
||||
normal = {
|
||||
black = "ece3cc";
|
||||
gray = "5b5b5b";
|
||||
red = "d2212d";
|
||||
green = "489100";
|
||||
yellow = "ad8900";
|
||||
@ -56,6 +57,7 @@ let
|
||||
};
|
||||
bright = {
|
||||
black = "d5cdb6";
|
||||
gray = "7b7b7b";
|
||||
red = "cc1729";
|
||||
green = "428b00";
|
||||
yellow = "a78300";
|
||||
@ -66,19 +68,20 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
colorSchemeDark = {
|
||||
colorSchemeDark = rec {
|
||||
primary = {
|
||||
normal = {
|
||||
background = "181818";
|
||||
foreground = "b9b9b9";
|
||||
};
|
||||
bright = {
|
||||
background = "3b3b3b";
|
||||
foreground = "dedede";
|
||||
background = bright.black;
|
||||
foreground = bright.white;
|
||||
};
|
||||
};
|
||||
normal = {
|
||||
black = "252525";
|
||||
gray = "5b5b5b";
|
||||
red = "ed4a46";
|
||||
green = "70b433";
|
||||
yellow = "dbb32d";
|
||||
@ -89,6 +92,7 @@ let
|
||||
};
|
||||
bright = {
|
||||
black = "3b3b3b";
|
||||
gray = "7b7b7b";
|
||||
red = "ff5e56";
|
||||
green = "83c746";
|
||||
yellow = "efc541";
|
||||
@ -100,7 +104,8 @@ let
|
||||
};
|
||||
|
||||
colorScheme =
|
||||
if builtins.pathExists ./light then colorSchemeLight else colorSchemeDark;
|
||||
# if builtins.pathExists ./light then colorSchemeLight else colorSchemeDark;
|
||||
colorSchemeDark;
|
||||
|
||||
bgColor = colorScheme.primary.normal.background;
|
||||
fgColor = colorScheme.primary.bright.foreground;
|
||||
@ -145,21 +150,45 @@ let
|
||||
indicator = "#111111"; # don't care
|
||||
};
|
||||
fonts = [ fontComb ];
|
||||
in {
|
||||
in
|
||||
{
|
||||
home-manager.users.patriot = { config, pkgs, ... }: {
|
||||
imports = [ ../profiles/hikari.nix ];
|
||||
|
||||
gtk = {
|
||||
# enable = true;
|
||||
font = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Sans 12";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.papirus-icon-theme;
|
||||
name = "Papirus Dark";
|
||||
};
|
||||
theme = {
|
||||
package = pkgs.numix-gtk-theme;
|
||||
name = "Numix Dark";
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
# enable = true;
|
||||
platformTheme = "gtk";
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
home = {
|
||||
homeDirectory = nixosConfig.users.users.patriot.home;
|
||||
packages = with pkgs;
|
||||
[
|
||||
darcs
|
||||
discord
|
||||
# Font stuff
|
||||
fontPackage
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji-blob-bin
|
||||
font-awesome
|
||||
nerdfonts
|
||||
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
||||
# Programs
|
||||
appimage-run
|
||||
bitwarden
|
||||
pfetch
|
||||
neofetch
|
||||
@ -169,15 +198,17 @@ in {
|
||||
youtube-dl
|
||||
ffmpeg
|
||||
mupdf
|
||||
transmission-gtk
|
||||
gitAndTools.gh
|
||||
steam-run
|
||||
lutris
|
||||
xdg_utils
|
||||
# xdg-user-dirs
|
||||
tagref
|
||||
# gnome3.zenity
|
||||
# x11 docker stuff
|
||||
# x11docker
|
||||
# weston
|
||||
xwayland
|
||||
# xpra
|
||||
# xdotool
|
||||
# xorg.setxkbmap
|
||||
@ -202,9 +233,12 @@ in {
|
||||
# use this if they aren't displayed properly:
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
'';
|
||||
wrapperFeatures.gtk = true;
|
||||
config = {
|
||||
inherit fonts;
|
||||
bars = [ ]; # no
|
||||
bars = [{
|
||||
command = "${pkgBin "waybar"}";
|
||||
}];
|
||||
colors = {
|
||||
background = "#${bgColor}";
|
||||
focused = addIndSway focusedWorkspace;
|
||||
@ -216,7 +250,8 @@ in {
|
||||
menu = "${pkgBin "rofi"} -show drun | ${pkgs.sway}/bin/swaymsg --";
|
||||
modifier = "Mod4";
|
||||
terminal = pkgBin "alacritty";
|
||||
keybindings = let
|
||||
keybindings =
|
||||
let
|
||||
mod = config.wayland.windowManager.sway.config.modifier;
|
||||
cat = pkgs.coreutils + "/bin/cat";
|
||||
grim = pkgBin "grim";
|
||||
@ -228,8 +263,11 @@ in {
|
||||
wl-paste = pkgs.wl-clipboard + "/bin/wl-paste";
|
||||
shotFile = config.home.homeDirectory
|
||||
+ "/shots/shot_$(date '+%Y_%m_%d_%H_%M')";
|
||||
in lib.mkOptionDefault {
|
||||
in
|
||||
lib.mkOptionDefault {
|
||||
"${mod}+q" = "kill";
|
||||
"${mod}+Shift+e" = "exit";
|
||||
"${mod}+Shift+r" = "reload";
|
||||
# Screenshot and copy it to clipboard
|
||||
"Mod1+s" = ''
|
||||
exec export SFILE="${shotFile}.png" && ${grim} "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png
|
||||
@ -293,14 +331,28 @@ in {
|
||||
set -g status off
|
||||
'';
|
||||
};
|
||||
qutebrowser = {
|
||||
chromium = {
|
||||
enable = true;
|
||||
# package = pkgs.ungoogled-chromium;
|
||||
extensions = [
|
||||
"gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere
|
||||
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock
|
||||
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
|
||||
"ldpochfccmkkmhdbclfhpagapcfdljkj" # decentraleyes
|
||||
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme
|
||||
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
|
||||
"hlepfoohegkhhmjieoechaddaejaokhf" # github refined
|
||||
];
|
||||
};
|
||||
qutebrowser = {
|
||||
# enable = true;
|
||||
settings = {
|
||||
content.javascript.enabled = false;
|
||||
colors.webpage.darkmode.enabled = true;
|
||||
tabs = { show = "multiple"; };
|
||||
};
|
||||
extraConfig = let
|
||||
extraConfig =
|
||||
let
|
||||
domains = [
|
||||
"github.com"
|
||||
"gitlab.com"
|
||||
@ -314,7 +366,8 @@ in {
|
||||
enableJsForDomain = d: ''
|
||||
config.set('content.javascript.enabled', True, 'https://*.${d}')
|
||||
'';
|
||||
in lib.concatStrings (map enableJsForDomain domains);
|
||||
in
|
||||
lib.concatStrings (map enableJsForDomain domains);
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
@ -354,14 +407,15 @@ in {
|
||||
compression = true;
|
||||
hashKnownHosts = true;
|
||||
userKnownHostsFile = "~/.local/share/ssh/known-hosts";
|
||||
extraConfig = ''
|
||||
Host hub.darcs.net
|
||||
ControlMaster no
|
||||
ForwardAgent no
|
||||
ForwardX11 no
|
||||
Ciphers +aes256-cbc
|
||||
MACs +hmac-sha1
|
||||
'';
|
||||
# Only needed for darcs
|
||||
# extraConfig = ''
|
||||
# Host hub.darcs.net
|
||||
# ControlMaster no
|
||||
# ForwardAgent no
|
||||
# ForwardX11 no
|
||||
# Ciphers +aes256-cbc
|
||||
# MACs +hmac-sha1
|
||||
# '';
|
||||
};
|
||||
zsh = {
|
||||
enable = true;
|
||||
@ -369,10 +423,11 @@ in {
|
||||
enableVteIntegration = true;
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
plugins = let
|
||||
fast-syntax-highlighting = {
|
||||
plugins =
|
||||
let
|
||||
fast-syntax-highlighting = rec {
|
||||
name = "fast-syntax-highlighting";
|
||||
src = "${pkgs.zsh-fast-syntax-highlighting}";
|
||||
src = pkgs."zsh-${name}".out;
|
||||
};
|
||||
per-directory-history = {
|
||||
name = "per-directory-history";
|
||||
@ -383,7 +438,8 @@ in {
|
||||
hash = "sha256-VHRgrVCqzILqOes8VXGjSgLek38BFs9eijmp0JHtD5Q=";
|
||||
};
|
||||
};
|
||||
in [ fast-syntax-highlighting per-directory-history ];
|
||||
in
|
||||
[ fast-syntax-highlighting per-directory-history ];
|
||||
# xdg compliant
|
||||
dotDir = ".config/zsh";
|
||||
history.path = ".local/share/zsh/history";
|
||||
@ -396,9 +452,13 @@ in {
|
||||
# use this if they aren't displayed properly:
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
'';
|
||||
loginExtra = ''
|
||||
loginExtra =
|
||||
let
|
||||
deCmd = if config.wayland.windowManager.sway.enable then "sway" else (if config.wayland.windowManager.hikari.enable then "hikari" else throw "Need a window manager to start!");
|
||||
in
|
||||
''
|
||||
if [ "$(${pkgs.coreutils}/bin/tty)" = "/dev/tty1" ]; then
|
||||
exec ${pkgBin "hikari"}
|
||||
exec ${pkgBin deCmd}
|
||||
fi
|
||||
'';
|
||||
initExtra = ''
|
||||
@ -428,11 +488,13 @@ in {
|
||||
enableNixDirenvIntegration = true;
|
||||
};
|
||||
fzf.enable = true;
|
||||
rofi = let
|
||||
rofi =
|
||||
let
|
||||
bgc = "#${bgColor}";
|
||||
fgc = "#${fgColor}";
|
||||
acc = "#${acColor}";
|
||||
in {
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
colors = {
|
||||
window = {
|
||||
@ -456,13 +518,17 @@ in {
|
||||
separator = "none";
|
||||
terminal = pkgBin "alacritty";
|
||||
};
|
||||
waybar = {
|
||||
waybar =
|
||||
let
|
||||
swayEnabled = config.wayland.windowManager.sway.enable;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
settings = [{
|
||||
layer = "top";
|
||||
position = "top";
|
||||
modules-left = [ ];
|
||||
modules-center = [ ];
|
||||
modules-left = if swayEnabled then [ "sway/workspaces" ] else [ ];
|
||||
modules-center = if swayEnabled then [ "sway/window" ] else [ ];
|
||||
modules-right =
|
||||
[ "pulseaudio" "cpu" "memory" "temperature" "clock" "tray" ];
|
||||
modules = {
|
||||
@ -483,7 +549,27 @@ in {
|
||||
};
|
||||
};
|
||||
}];
|
||||
style = ''
|
||||
style =
|
||||
let
|
||||
makeBorder = color: "border-bottom: 3px solid #${color};";
|
||||
makeInfo = color: ''
|
||||
color: #${color};
|
||||
${makeBorder color}
|
||||
'';
|
||||
|
||||
clockColor = colorScheme.bright.magenta;
|
||||
cpuColor = colorScheme.bright.green;
|
||||
memColor = colorScheme.bright.blue;
|
||||
pulseColor = {
|
||||
normal = colorScheme.bright.cyan;
|
||||
muted = colorScheme.bright.gray;
|
||||
};
|
||||
tmpColor = {
|
||||
normal = colorScheme.bright.yellow;
|
||||
critical = colorScheme.bright.red;
|
||||
};
|
||||
in
|
||||
''
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
@ -494,9 +580,9 @@ in {
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #222222;
|
||||
border-bottom: 0px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
background-color: #${bgColor};
|
||||
/* border-bottom: 0px solid rgba(100, 114, 125, 0.5); */
|
||||
color: #${fgColor};
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
@ -504,7 +590,7 @@ in {
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
color: #${fgColor};
|
||||
border-bottom: 3px solid transparent;
|
||||
}
|
||||
|
||||
@ -516,12 +602,12 @@ in {
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
border-bottom: 3px solid #${acColor};
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
background-color: #${acColor};
|
||||
color: #${bgColor};
|
||||
}
|
||||
|
||||
#mode {
|
||||
@ -544,64 +630,54 @@ in {
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
margin: 0 4px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
color: #000000;
|
||||
background-color: transparent;
|
||||
${makeInfo fgColor}
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#clock {
|
||||
${makeInfo clockColor}
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
${makeInfo cpuColor}
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
color: #000000;
|
||||
${makeInfo memColor}
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
${makeInfo pulseColor.normal}
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
${makeInfo pulseColor.muted}
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
color: #000000;
|
||||
${makeInfo tmpColor.normal}
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
${makeInfo tmpColor.critical}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
gpg-agent = {
|
||||
gpg-agent = rec {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
sshKeys = [ "8369D9CA26C3EAAAB8302A88CEE6FD14B58AA965" ];
|
||||
defaultCacheTtl = 3600 * 6;
|
||||
defaultCacheTtlSsh = 3600 * 6;
|
||||
defaultCacheTtlSsh = defaultCacheTtl;
|
||||
maxCacheTtl = 3600 * 24;
|
||||
maxCacheTtlSsh = 3600 * 24;
|
||||
maxCacheTtlSsh = maxCacheTtl;
|
||||
grabKeyboardAndMouse = false;
|
||||
pinentryFlavor = "gtk2";
|
||||
};
|
||||
|
@ -1,9 +1,14 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let cfg = config.wayland.windowManager.hikari;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wayland.windowManager.hikari = {
|
||||
enable = mkEnableOption "hikari window manager";
|
||||
xwayland = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
font = mkOption {
|
||||
type = types.str;
|
||||
default = "Iosevka";
|
||||
@ -11,7 +16,7 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [ hikari ];
|
||||
home.packages = with pkgs; [ hikari ] ++ (optional cfg.xwayland xwayland);
|
||||
|
||||
xdg = {
|
||||
enable = true;
|
||||
@ -50,6 +55,11 @@ in {
|
||||
}
|
||||
}
|
||||
}
|
||||
pointers {
|
||||
"*" {
|
||||
accel-profile = "flat"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
layouts {
|
||||
|
Loading…
Reference in New Issue
Block a user