cityseventeen: rename and make tokyo night
This commit is contained in:
parent
6004b4eac5
commit
0d7aa6843b
36 changed files with 394 additions and 438 deletions
|
@ -1,19 +1,11 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment = {
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
nil
|
||||
statix
|
||||
deadnix
|
||||
alejandra
|
||||
;
|
||||
};
|
||||
systemPackages = [ pkgs.amadaluzian-zsh ];
|
||||
sessionVariables.EDITOR = "emacsclient -c";
|
||||
shellAliases = {
|
||||
"e" = "$EDITOR";
|
||||
|
@ -24,7 +16,7 @@
|
|||
programs = {
|
||||
swaybg = {
|
||||
enable = true;
|
||||
wallpaper = inputs.wallpkgs.wallpapers.dracula.dracula-ship.path;
|
||||
wallpaper = inputs.wallpkgs.wallpapers.tokyo-night.tokyo_night-05.path;
|
||||
};
|
||||
waybar = {
|
||||
enable = true;
|
||||
|
@ -33,37 +25,18 @@
|
|||
direnv.enable = true;
|
||||
openssh.enable = true;
|
||||
};
|
||||
shells.nushell = {
|
||||
enable = true;
|
||||
package = pkgs.amadaluzian-nu;
|
||||
};
|
||||
system.pipewire.enable = true;
|
||||
wms.niri.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
package = pkgs.symlinkJoin {
|
||||
name = "nh";
|
||||
paths = [
|
||||
pkgs.nh
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pkgs.makeWrapper
|
||||
];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/nh \
|
||||
--set FLAKE "/home/artur/.config/nixos"
|
||||
'';
|
||||
meta = { inherit (pkgs.nh.meta) mainProgram; };
|
||||
};
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
package = pkgs.gitFull;
|
||||
};
|
||||
zsh = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
@ -71,23 +44,20 @@
|
|||
enable = true;
|
||||
web.enable = false;
|
||||
};
|
||||
rsyncd.enable = true;
|
||||
emacs = {
|
||||
enable = true;
|
||||
package = inputs.pankomacs.packages.${pkgs.system}.pgtk;
|
||||
startWithGraphical = true;
|
||||
install = true;
|
||||
};
|
||||
rsyncd.enable = true;
|
||||
};
|
||||
|
||||
virtualisation.virtualbox.host = {
|
||||
enable = true;
|
||||
enableKvm = true;
|
||||
addNetworkInterface = false;
|
||||
nix.gc = {
|
||||
dates = "weekly";
|
||||
automatic = true;
|
||||
};
|
||||
|
||||
nix.gc.automatic = lib.mkForce false;
|
||||
|
||||
xdg.mime = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
|
@ -5,9 +5,8 @@
|
|||
}:
|
||||
{
|
||||
imports = [
|
||||
./users/artur
|
||||
./users/arturm
|
||||
./hardware.nix
|
||||
./disks.nix
|
||||
./theme.nix
|
||||
./apps.nix
|
||||
./fonts.nix
|
||||
|
@ -17,7 +16,14 @@
|
|||
|
||||
config = {
|
||||
boot = {
|
||||
initrd.systemd.additionalUpstreamUnits = [ "systemd-boot.service" ];
|
||||
initrd = {
|
||||
systemd.additionalUpstreamUnits = [ "systemd-boot.service" ];
|
||||
luks.devices = {
|
||||
"luks-c354eb7f-1e69-4054-afa2-8c4e81a761fa" = {
|
||||
device = "/dev/disk/by-uuid/c354eb7f-1e69-4054-afa2-8c4e81a761fa";
|
||||
};
|
||||
};
|
||||
};
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
@ -28,22 +34,21 @@
|
|||
inputs.alqages.overlays.default
|
||||
];
|
||||
|
||||
nix.package = pkgs.lix;
|
||||
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "us";
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver.xkb = {
|
||||
layout = "us";
|
||||
options = "eurosign:e,ctrl:nocaps";
|
||||
};
|
||||
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
xserver = {
|
||||
xkb = {
|
||||
layout = "us";
|
||||
options = "eurosign:e,ctrl:nocaps";
|
||||
};
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
|
||||
udev.packages = [
|
||||
|
@ -61,7 +66,7 @@
|
|||
|
||||
networking.networkmanager.enable = true;
|
||||
time.timeZone = "Europe/London";
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
system.stateVersion = "24.11";
|
||||
};
|
||||
}
|
|
@ -2,16 +2,16 @@
|
|||
{
|
||||
alqueva.system.fonts = {
|
||||
names = {
|
||||
sansSerif = [ "Inter" ];
|
||||
monospace = [ "Maple Mono NL" ];
|
||||
sansSerif = [ "Adwaita Sans" ];
|
||||
monospace = [ "Adwaita Mono" ];
|
||||
serif = [ "Merriweather" ];
|
||||
emoji = [ "Twitter Color Emoji" ];
|
||||
emoji = [ "Noto Fonts Color Emoji" ];
|
||||
};
|
||||
packages = {
|
||||
sansSerif = [ pkgs.inter ];
|
||||
monospace = [ pkgs.maple-mono.NL-TTF ];
|
||||
sansSerif = [ pkgs.adwaita-fonts ];
|
||||
monospace = [ pkgs.adwaita-fonts ];
|
||||
serif = [ pkgs.merriweather ];
|
||||
emoji = [ pkgs.twitter-color-emoji ];
|
||||
emoji = [ pkgs.noto-fonts-color-emoji ];
|
||||
extra = [
|
||||
pkgs.noto-fonts
|
||||
pkgs.nerd-fonts.symbols-only
|
|
@ -7,15 +7,17 @@
|
|||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
|
@ -23,12 +25,33 @@
|
|||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/1076cf01-0d74-44fa-b24f-a795191fad83";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-16d833f7-9082-4bf0-b027-98102c786a01".device =
|
||||
"/dev/disk/by-uuid/16d833f7-9082-4bf0-b027-98102c786a01";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/6143-FAFA";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/203bcb2c-a264-4243-9518-d1f975aea05c"; }
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
44
hosts/cityseventeen/theme.nix
Normal file
44
hosts/cityseventeen/theme.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
themes = {
|
||||
gtk = {
|
||||
name = "Tokyonight-Dark";
|
||||
package = pkgs.tokyonight-gtk-theme;
|
||||
};
|
||||
icons = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.adwaita-icon-theme;
|
||||
};
|
||||
cursor = {
|
||||
name = "Simp1e-Tokyo-Night";
|
||||
package = pkgs.simp1e-cursors;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
alqueva.system.dconf = {
|
||||
enable = true;
|
||||
luminosity = "dark";
|
||||
theme = themes.gtk.name;
|
||||
icon.theme = themes.icons.name;
|
||||
cursor = {
|
||||
size = 24;
|
||||
theme = themes.cursor.name;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "qt5ct";
|
||||
style = "kvantum";
|
||||
};
|
||||
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"L+ %h/.config/gtk-4.0 - - - - ${themes.gtk.package}/share/themes/${themes.gtk.name}/gtk-4.0"
|
||||
];
|
||||
|
||||
environment.systemPackages = builtins.attrValues (builtins.mapAttrs (_: v: v.package) themes);
|
||||
}
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
29
hosts/cityseventeen/users/arturm/configs/foot/foot.ini
Normal file
29
hosts/cityseventeen/users/arturm/configs/foot/foot.ini
Normal file
|
@ -0,0 +1,29 @@
|
|||
[main]
|
||||
pad=12x12
|
||||
font=monospace:size=16.5
|
||||
|
||||
[colors]
|
||||
foreground=a9b1d6
|
||||
background=1a1b26
|
||||
regular0=16161e # black
|
||||
regular1=c0caf5 # red
|
||||
regular2=9ece6a # green
|
||||
regular3=0db9d7 # yellow
|
||||
regular4=2ac3de # blue
|
||||
regular5=bb9af7 # magenta
|
||||
regular6=b4f9f8 # cyan
|
||||
regular7=cbccd1 # white
|
||||
bright0=2f3549 # bright black
|
||||
bright1=c0caf5 # bright red
|
||||
bright2=9ece6a # bright green
|
||||
bright3=0db9d7 # bright yellow
|
||||
bright4=2ac3de # bright blue
|
||||
bright5=bb9af7 # bright magenta
|
||||
bright6=b4f9f8 # bright cyan
|
||||
bright7=d5d6db # bright white
|
||||
16=a9b1d6
|
||||
17=f7768e
|
||||
18=16161e
|
||||
19=2f3549
|
||||
20=787c99
|
||||
21=cbccd1
|
113
hosts/cityseventeen/users/arturm/configs/fuzzel/fuzzel.ini
Normal file
113
hosts/cityseventeen/users/arturm/configs/fuzzel/fuzzel.ini
Normal file
|
@ -0,0 +1,113 @@
|
|||
# output=<not set>
|
||||
font=Monospace:size=16
|
||||
# dpi-aware=auto
|
||||
# use-bold=no
|
||||
# prompt="> "
|
||||
# placeholder=
|
||||
# icon-theme=hicolor
|
||||
# icons-enabled=yes
|
||||
# hide-before-typing=no
|
||||
# fields=filename,name,generic
|
||||
# password-character=*
|
||||
# filter-desktop=no
|
||||
# match-mode=fzf
|
||||
# sort-result=yes
|
||||
# match-counter=no
|
||||
# delayed-filter-ms=300
|
||||
# delayed-filter-limit=20000
|
||||
# show-actions=no
|
||||
# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here
|
||||
# launch-prefix=<not set>
|
||||
# list-executables-in-path=no
|
||||
|
||||
# anchor=center
|
||||
# x-margin=0
|
||||
# y-margin=0
|
||||
# lines=15
|
||||
# width=30
|
||||
# tabs=8
|
||||
# horizontal-pad=40
|
||||
# vertical-pad=8
|
||||
# inner-pad=0
|
||||
|
||||
# image-size-ratio=0.5
|
||||
|
||||
# line-height=<use font metrics>
|
||||
# letter-spacing=0
|
||||
|
||||
# layer=overlay
|
||||
# keyboard-focus=on-demand
|
||||
# exit-on-keyboard-focus-loss=yes
|
||||
|
||||
# cache=<not set>
|
||||
|
||||
# render-workers=<number of logical CPUs>
|
||||
# match-workers=<number of logical CPUs>
|
||||
|
||||
[colors]
|
||||
background=1A1B26ff
|
||||
text=A9B1D6ff
|
||||
match=2AC3DEff
|
||||
selection=444B6Aff
|
||||
selection-text=CBCCD1ff
|
||||
selection-match=2AC3DEff
|
||||
border=A9B1D6ff
|
||||
|
||||
[border]
|
||||
width=1
|
||||
radius=0
|
||||
|
||||
[dmenu]
|
||||
# mode=text # text|index
|
||||
# exit-immediately-if-empty=no
|
||||
|
||||
[key-bindings]
|
||||
# cancel=Escape Control+g Control+c Control+bracketleft
|
||||
# execute=Return KP_Enter Control+y
|
||||
# execute-or-next=Tab
|
||||
# execute-input=Shift+Return Shift+KP_Enter
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
# cursor-right-word=Control+Right Mod1+f
|
||||
# cursor-home=Home Control+a
|
||||
# cursor-end=End Control+e
|
||||
# delete-prev=BackSpace Control+h
|
||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w
|
||||
# delete-line-backward=Control+u
|
||||
# delete-next=Delete KP_Delete Control+d
|
||||
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
|
||||
# delete-line-forward=Control+k
|
||||
# prev=Up Control+p
|
||||
# prev-with-wrap=ISO_Left_Tab
|
||||
# prev-page=Page_Up KP_Page_Up
|
||||
# next=Down Control+n
|
||||
# next-with-wrap=none
|
||||
# next-page=Page_Down KP_Page_Down
|
||||
# expunge=Shift+Delete
|
||||
# clipboard-paste=Control+v XF86Paste
|
||||
# primary-paste=Shift+Insert Shift+KP_Insert
|
||||
|
||||
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
|
||||
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
|
||||
# with 12, and so on.
|
||||
|
||||
# custom-1=Mod1+1
|
||||
# custom-2=Mod1+2
|
||||
# custom-3=Mod1+3
|
||||
# custom-4=Mod1+4
|
||||
# custom-5=Mod1+5
|
||||
# custom-6=Mod1+6
|
||||
# custom-7=Mod1+7
|
||||
# custom-8=Mod1+8
|
||||
# custom-9=Mod1+9
|
||||
# custom-10=Mod1+0
|
||||
# custom-11=Mod1+exclam
|
||||
# custom-12=Mod1+at
|
||||
# custom-13=Mod1+numbersign
|
||||
# custom-14=Mod1+dollar
|
||||
# custom-15=Mod1+percent
|
||||
# custom-16=Mod1+dead_circumflex
|
||||
# custom-17=Mod1+ampersand
|
||||
# custom-18=Mod1+asterix
|
||||
# custom-19=Mod1+parentleft
|
7
hosts/cityseventeen/users/arturm/configs/mako/config
Normal file
7
hosts/cityseventeen/users/arturm/configs/mako/config
Normal file
|
@ -0,0 +1,7 @@
|
|||
font=monospace 15
|
||||
width=450
|
||||
height=220
|
||||
text-color=#A9B1D6ff
|
||||
background-color=#16161Eff
|
||||
border-color=#0DB9D7ff
|
||||
border-size=1
|
|
@ -190,8 +190,8 @@ layout {
|
|||
// off
|
||||
|
||||
width 1
|
||||
active-color "#bd93f9"
|
||||
inactive-color "#6272a4"
|
||||
active-color "#b4f9f8"
|
||||
inactive-color "#16161e"
|
||||
|
||||
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
|
||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
|
@ -302,7 +302,7 @@ binds {
|
|||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+E { spawn "emacsclient" "-c"; }
|
||||
Mod+T { spawn "foot"; }
|
||||
Mod+D { spawn "rofi" "-show" "drun"; }
|
||||
Mod+D { spawn "fuzzel"; }
|
||||
// Super+Alt+L { spawn "swaylock"; }
|
||||
|
||||
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||
|
@ -518,6 +518,6 @@ binds {
|
|||
}
|
||||
|
||||
cursor {
|
||||
xcursor-theme "Dracula-cursors"
|
||||
xcursor-theme "Simp1e-Tokyo-Night"
|
||||
xcursor-size 24
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
from theme import load_theme
|
||||
|
||||
config.load_autoconfig()
|
||||
|
||||
tokyo_night = {
|
||||
"base00": "#1a1b26",
|
||||
"base01": "#16161e",
|
||||
"base02": "#2f3549",
|
||||
"base03": "#444b6a",
|
||||
"base04": "#787c99",
|
||||
"base05": "#a9b1d6",
|
||||
"base06": "#cbccd1",
|
||||
"base07": "#d5d6db",
|
||||
"base08": "#c0caf5",
|
||||
"base09": "#a9b1d6",
|
||||
"base0A": "#0db9d7",
|
||||
"base0B": "#9ece6a",
|
||||
"base0C": "#b4f9f8",
|
||||
"base0D": "#2ac3de",
|
||||
"base0E": "#bb9af7",
|
||||
"base0F": "#f7768e",
|
||||
}
|
||||
|
||||
load_theme(c, tokyo_night)
|
||||
|
||||
c.colors.webpage.preferred_color_scheme = "dark"
|
||||
c.tabs.position = "top"
|
||||
c.tabs.width = 32
|
||||
c.fonts.default_size = "13pt"
|
||||
c.fonts.default_family = "sans-serif"
|
||||
c.tabs.padding = {
|
||||
"bottom": 4,
|
||||
"top": 4,
|
||||
"left": 6,
|
||||
"right": 6,
|
||||
}
|
||||
c.tabs.indicator.width = 0
|
38
hosts/cityseventeen/users/arturm/configs/waybar/style.css
Normal file
38
hosts/cityseventeen/users/arturm/configs/waybar/style.css
Normal file
|
@ -0,0 +1,38 @@
|
|||
@define-color base00 #1A1B26;
|
||||
@define-color base01 #16161E;
|
||||
@define-color base02 #2F3549;
|
||||
@define-color base03 #444B6A;
|
||||
@define-color base04 #787C99;
|
||||
@define-color base05 #A9B1D6;
|
||||
@define-color base06 #CBCCD1;
|
||||
@define-color base07 #D5D6DB;
|
||||
@define-color base08 #C0CAF5;
|
||||
@define-color base09 #A9B1D6;
|
||||
@define-color base0A #0DB9D7;
|
||||
@define-color base0B #9ECE6A;
|
||||
@define-color base0C #B4F9F8;
|
||||
@define-color base0D #2AC3DE;
|
||||
@define-color base0E #BB9AF7;
|
||||
@define-color base0F #F7768E;
|
||||
|
||||
* {
|
||||
color: @base05;
|
||||
font-family: monospace;
|
||||
font-size: 17px;
|
||||
border-radius: 0px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @base01;
|
||||
}
|
||||
|
||||
.modules-right,
|
||||
.modules-left {
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
#custom-nixos {
|
||||
color: @base0D;
|
||||
font-size: 24px;
|
||||
}
|
|
@ -1,20 +1,19 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
alqueva.users.artur = {
|
||||
shell = config.alqueva.shells.nushell.package;
|
||||
alqueva.users.arturm = {
|
||||
shell = pkgs.zsh;
|
||||
tmpfiles = [
|
||||
"L+ %h/.config/qutebrowser/config.py - - - - ${./configs/qutebrowser/config.py}"
|
||||
"L+ %h/.config/qutebrowser/theme - - - - ${./configs/qutebrowser/theme}"
|
||||
"L+ %h/.config/kanshi/ - - - - ${./configs/kanshi}"
|
||||
"L+ %h/.config/mako/ - - - - ${./configs/mako}"
|
||||
"L+ %h/.config/niri/ - - - - ${./configs/niri}"
|
||||
"L+ %h/.config/rofi/ - - - - ${./configs/rofi}"
|
||||
"L+ %h/.config/foot - - - - ${./configs/foot}"
|
||||
"L+ %h/.config/fuzzel - - - - ${./configs/fuzzel}"
|
||||
"L+ %h/.config/waybar - - - - ${./configs/waybar}"
|
||||
"L+ %h/.face.icon - - - - ${./.face.icon}"
|
||||
"L+ %h/.gitconfig - - - - ${./configs/git/gitconfig}"
|
||||
|
@ -36,7 +35,7 @@
|
|||
qutebrowser
|
||||
mako
|
||||
gh
|
||||
rofi-wayland
|
||||
fuzzel
|
||||
foot
|
||||
signal-desktop
|
||||
dino
|
||||
|
@ -44,7 +43,6 @@
|
|||
vesktop
|
||||
;
|
||||
inherit (inputs.hetch.packages.${pkgs.system}) hetch;
|
||||
inherit (inputs.gimp-nixpkgs.legacyPackages.${pkgs.system}) gimp;
|
||||
};
|
||||
groups = [
|
||||
"wheel"
|
|
@ -9,7 +9,7 @@ in
|
|||
{
|
||||
flake = {
|
||||
nixosConfigurations = mkHosts {
|
||||
solterra = {
|
||||
cityseventeen = {
|
||||
system = "x86_64-linux";
|
||||
extraModules = [
|
||||
inputs.disko.nixosModules.disko
|
||||
|
|
|
@ -5,13 +5,22 @@
|
|||
}:
|
||||
let
|
||||
cfg = config.alqueva.system.dconf;
|
||||
inherit (lib) types;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types)
|
||||
str
|
||||
enum
|
||||
attrs
|
||||
listOf
|
||||
ints
|
||||
package
|
||||
;
|
||||
inherit (lib.modules) mkIf;
|
||||
in
|
||||
{
|
||||
options.alqueva.system.dconf = {
|
||||
enable = lib.mkEnableOption "configuration with DConf";
|
||||
luminosity = lib.mkOption {
|
||||
type = types.enum [
|
||||
enable = mkEnableOption "configuration with DConf";
|
||||
luminosity = mkOption {
|
||||
type = enum [
|
||||
"dark"
|
||||
"light"
|
||||
"default"
|
||||
|
@ -20,36 +29,36 @@ in
|
|||
description = "The luminosity you want to use for GTK.";
|
||||
apply = lum: if lum == "default" then lum else "prefer-${lum}";
|
||||
};
|
||||
theme = lib.mkOption {
|
||||
type = types.str;
|
||||
theme = mkOption {
|
||||
type = str;
|
||||
description = "The theme you want to use for GTK.";
|
||||
default = "";
|
||||
};
|
||||
icon.theme = lib.mkOption {
|
||||
type = types.str;
|
||||
icon.theme = mkOption {
|
||||
type = str;
|
||||
description = "The icon theme you want to use for GTK.";
|
||||
default = "";
|
||||
};
|
||||
cursor = {
|
||||
theme = lib.mkOption {
|
||||
type = types.str;
|
||||
theme = mkOption {
|
||||
type = str;
|
||||
description = "The cursor theme you want to use for GTK.";
|
||||
default = "";
|
||||
};
|
||||
size = lib.mkOption {
|
||||
type = types.ints.u32;
|
||||
size = mkOption {
|
||||
type = ints.u32;
|
||||
default = 24;
|
||||
description = "The cursor size you want to use for GTK.";
|
||||
apply = size: lib.gvariant.mkUint32 size;
|
||||
};
|
||||
};
|
||||
extraDconfPackages = lib.mkOption {
|
||||
type = types.listOf types.package;
|
||||
extraDconfPackages = mkOption {
|
||||
type = listOf package;
|
||||
description = "Extra packages to install for DConf.";
|
||||
default = [ ];
|
||||
};
|
||||
extraDconfSettings = lib.mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
extraDconfSettings = mkOption {
|
||||
type = attrs;
|
||||
description = "Extra settings you want to apply to DConf.";
|
||||
default = { };
|
||||
};
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/nvme-WDC_PC_SN520_SDAPNUW-256G-1014_20270F804683";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "512M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "defaults" ];
|
||||
};
|
||||
};
|
||||
luks = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "utero";
|
||||
passwordFile = "/tmp/secret.key"; # Interactive
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
};
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"/@root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/@home" = {
|
||||
mountpoint = "/home";
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/@nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/@swap" = {
|
||||
mountpoint = "/.swapvol";
|
||||
swap.swapfile.size = "8G";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
themes = {
|
||||
gtk-theme = pkgs.dracula-theme-git;
|
||||
icon-theme = pkgs.dracula-icon-theme;
|
||||
cursor-theme = themes.icon-theme;
|
||||
};
|
||||
in
|
||||
{
|
||||
alqueva.system.dconf = {
|
||||
enable = true;
|
||||
luminosity = "dark";
|
||||
theme = "Dracula";
|
||||
icon.theme = "Dracula";
|
||||
cursor = {
|
||||
size = 24;
|
||||
theme = "Dracula-cursors";
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gnome";
|
||||
style = "adwaita-dark";
|
||||
};
|
||||
|
||||
environment.systemPackages = builtins.attrValues themes;
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
[main]
|
||||
pad=12x12
|
||||
font=monospace:size=16.5
|
||||
|
||||
[colors]
|
||||
foreground=f8f8f2
|
||||
background=282a36
|
||||
regular0=363447 # black
|
||||
regular1=ff5555 # red
|
||||
regular2=50fa7b # green
|
||||
regular3=f1fa8c # yellow
|
||||
regular4=80bfff # blue
|
||||
regular5=ff79c6 # magenta
|
||||
regular6=8be9fd # cyan
|
||||
regular7=f0f1f4 # white
|
||||
bright0=44475a # bright black
|
||||
bright1=ff5555 # bright red
|
||||
bright2=50fa7b # bright green
|
||||
bright3=f1fa8c # bright yellow
|
||||
bright4=80bfff # bright blue
|
||||
bright5=ff79c6 # bright magenta
|
||||
bright6=8be9fd # bright cyan
|
||||
bright7=ffffff # bright white
|
||||
16=ffb86c
|
||||
17=bd93f9
|
||||
18=363447
|
||||
19=44475a
|
||||
20=9ea8c7
|
||||
21=f0f1f4
|
|
@ -1,7 +0,0 @@
|
|||
font=monospace 15
|
||||
width=450
|
||||
height=220
|
||||
text-color=#f8f8f2ff
|
||||
background-color=#282a36ff
|
||||
border-color=#80bfffff
|
||||
border-size=1
|
|
@ -1,37 +0,0 @@
|
|||
from theme import load_theme
|
||||
|
||||
config.load_autoconfig()
|
||||
|
||||
dracula = {
|
||||
"base00": "#282a36",
|
||||
"base01": "#363447",
|
||||
"base02": "#44475a",
|
||||
"base03": "#6272a4",
|
||||
"base04": "#9ea8c7",
|
||||
"base05": "#f8f8f2",
|
||||
"base06": "#f0f1f4",
|
||||
"base07": "#ffffff",
|
||||
"base08": "#ff5555",
|
||||
"base09": "#ffb86c",
|
||||
"base0A": "#f1fa8c",
|
||||
"base0B": "#50fa7b",
|
||||
"base0C": "#8be9fd",
|
||||
"base0D": "#80bfff",
|
||||
"base0E": "#ff79c6",
|
||||
"base0F": "#bd93f9",
|
||||
}
|
||||
|
||||
load_theme(c, dracula)
|
||||
|
||||
c.colors.webpage.preferred_color_scheme = "dark"
|
||||
c.tabs.position = "top"
|
||||
c.tabs.width = 32
|
||||
c.fonts.default_size = "13pt"
|
||||
c.fonts.default_family = "sans-serif"
|
||||
c.tabs.padding = {
|
||||
"bottom": 4,
|
||||
"top": 4,
|
||||
"left": 6,
|
||||
"right": 6,
|
||||
}
|
||||
c.tabs.indicator.width = 0
|
|
@ -1,98 +0,0 @@
|
|||
configuration{
|
||||
modi: "run,drun,window";
|
||||
lines: 5;
|
||||
font: "Iosevka 12";
|
||||
show-icons: true;
|
||||
icon-theme: "Paper Mono";
|
||||
terminal: "st";
|
||||
drun-display-format: "{icon} {name}";
|
||||
location: 0;
|
||||
disable-history: false;
|
||||
hide-scrollbar: true;
|
||||
display-drun: " Apps ";
|
||||
}
|
||||
|
||||
@theme "base16"
|
||||
|
||||
element-text, element-icon , mode-switcher {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
window {
|
||||
height: 360px;
|
||||
border: 3px;
|
||||
border-color: @border-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @bg-col;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @bg-col;
|
||||
border-radius: 3px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
text-color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 6px 0px 0px;
|
||||
margin: 10px 0px 0px 20px;
|
||||
columns: 2;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
background-color: @bg-col;
|
||||
text-color: @fg-col ;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 25px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected-col ;
|
||||
text-color: @fg-col2 ;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
background-color: @bg-col-light;
|
||||
text-color: @grey;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @bg-col;
|
||||
text-color: @blue;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
* {
|
||||
bg-col: #282a36;
|
||||
bg-col-light: #44475a;
|
||||
border-col: #44475a;
|
||||
selected-col: #44475a;
|
||||
blue: #bd93f9;
|
||||
fg-col: #f8f8f2;
|
||||
fg-col2: #f8f8f2;
|
||||
grey: #6272a4;
|
||||
width: 600;
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
@define-color base00 #282a36;
|
||||
@define-color base01 #363447;
|
||||
@define-color base02 #44475a;
|
||||
@define-color base03 #6272a4;
|
||||
@define-color base04 #9ea8c7;
|
||||
@define-color base05 #f8f8f2;
|
||||
@define-color base06 #f0f1f4;
|
||||
@define-color base07 #ffffff;
|
||||
@define-color base08 #ff5555;
|
||||
@define-color base09 #ffb86c;
|
||||
@define-color base0A #f1fa8c;
|
||||
@define-color base0B #50fa7b;
|
||||
@define-color base0C #8be9fd;
|
||||
@define-color base0D #80bfff;
|
||||
@define-color base0E #ff79c6;
|
||||
@define-color base0F #bd93f9;
|
||||
|
||||
* {
|
||||
font-family: monospace;
|
||||
font-size: 17px;
|
||||
border-radius: 0px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @base00;
|
||||
}
|
||||
|
||||
.modules-right,
|
||||
.modules-left {
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
#custom-nixos {
|
||||
color: @base0D;
|
||||
font-size: 24px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue