formatted the code with alejandra

This commit is contained in:
2024-03-03 02:11:14 +05:30
parent 0528e06873
commit ef89207879
34 changed files with 1035 additions and 976 deletions

View File

@ -16,26 +16,29 @@
nur.url = "github:nix-community/nur"; nur.url = "github:nix-community/nur";
}; };
outputs = { self, nixpkgs, home-manager, ... } @ inputs: outputs = {
let self,
nixpkgs,
home-manager,
...
} @ inputs: let
inherit (self) outputs; inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [ forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux" "x86_64-linux"
]; ];
username = "tux"; username = "tux";
in in {
{
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
# Custom packages and modifications, exported as overlays # Custom packages and modifications, exported as overlays
overlays = import ./overlays { inherit inputs; }; overlays = import ./overlays {inherit inputs;};
# NixOS configuration entrypoint # NixOS configuration entrypoint
# 'nixos-rebuild switch --flake .#your-hostname' # 'nixos-rebuild switch --flake .#your-hostname'
nixosConfigurations = { nixosConfigurations = {
canopus = nixpkgs.lib.nixosSystem { canopus = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs username; }; specialArgs = {inherit inputs outputs username;};
modules = [ modules = [
./hosts/canopus ./hosts/canopus
@ -47,7 +50,7 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs username; }; home-manager.extraSpecialArgs = {inherit inputs outputs username;};
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ imports = [
./modules/home-manager ./modules/home-manager
@ -61,7 +64,7 @@
}; };
controller = nixpkgs.lib.nixosSystem { controller = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs username; }; specialArgs = {inherit inputs outputs username;};
modules = [ modules = [
./hosts/controller ./hosts/controller
./modules/nixos/headscale.nix ./modules/nixos/headscale.nix
@ -69,7 +72,7 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs username; }; home-manager.extraSpecialArgs = {inherit inputs outputs username;};
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ imports = [
./modules/home-manager ./modules/home-manager
@ -81,14 +84,14 @@
}; };
wsl = nixpkgs.lib.nixosSystem { wsl = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs username; }; specialArgs = {inherit inputs outputs username;};
modules = [ modules = [
./hosts/wsl ./hosts/wsl
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs username; }; home-manager.extraSpecialArgs = {inherit inputs outputs username;};
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ imports = [
./modules/home-manager ./modules/home-manager
@ -105,7 +108,7 @@
homeConfigurations = { homeConfigurations = {
"${username}@canopus" = home-manager.lib.homeManagerConfiguration { "${username}@canopus" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs username; }; extraSpecialArgs = {inherit inputs outputs username;};
modules = [ modules = [
./modules/home-manager ./modules/home-manager
]; ];

View File

@ -1,4 +1,12 @@
{ inputs, outputs, lib, config, pkgs, username, ... }: { {
inputs,
outputs,
lib,
config,
pkgs,
username,
...
}: {
imports = [ imports = [
inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503 inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503
./hardware-configuration.nix ./hardware-configuration.nix
@ -46,19 +54,25 @@
networkmanager.enable = true; networkmanager.enable = true;
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [ 80 443 3000 6666 ]; allowedTCPPorts = [80 443 3000 6666 8081];
allowedTCPPortRanges = [ allowedTCPPortRanges = [
{ from = 1714; to = 1764; } {
from = 1714;
to = 1764;
}
]; ];
allowedUDPPortRanges = [ allowedUDPPortRanges = [
{ from = 1714; to = 1764; } {
from = 1714;
to = 1764;
}
]; ];
}; };
}; };
boot = { boot = {
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = [ "ntfs" ]; supportedFilesystems = ["ntfs"];
initrd.systemd.enable = true; initrd.systemd.enable = true;
loader = { loader = {
@ -89,9 +103,9 @@
user = { user = {
services.polkit-gnome-authentication-agent-1 = { services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1"; description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ]; wantedBy = ["graphical-session.target"];
wants = [ "graphical-session.target" ]; wants = ["graphical-session.target"];
after = [ "graphical-session.target" ]; after = ["graphical-session.target"];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
@ -108,7 +122,7 @@
zsh.enable = true; zsh.enable = true;
thunar = { thunar = {
enable = true; enable = true;
plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ]; plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
}; };
nix-ld.enable = true; nix-ld.enable = true;
nm-applet.enable = true; nm-applet.enable = true;
@ -119,7 +133,7 @@
users.${username} = { users.${username} = {
initialPassword = "${username}"; initialPassword = "${username}";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "storage" ]; extraGroups = ["networkmanager" "wheel" "storage"];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
]; ];
@ -215,7 +229,7 @@
ollama.enable = true; ollama.enable = true;
}; };
fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; }) ]; fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View File

@ -1,15 +1,21 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: { {
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/e79e5cdf-4197-4f44-96c7-3ab9ba9878bb"; device = "/dev/disk/by-uuid/e79e5cdf-4197-4f44-96c7-3ab9ba9878bb";
@ -21,7 +27,7 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's

View File

@ -1,6 +1,12 @@
{ config, outputs, lib, pkgs, inputs, username, ... }:
{ {
config,
outputs,
lib,
pkgs,
inputs,
username,
...
}: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -64,17 +70,17 @@
users.${username} = { users.${username} = {
initialPassword = "${username}"; initialPassword = "${username}";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "storage" ]; extraGroups = ["networkmanager" "wheel" "storage"];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
]; ];
}; };
}; };
environment.systemPackages = with pkgs;[ environment.systemPackages = with pkgs; [
]; ];
fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; }) ]; fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View File

@ -1,32 +1,33 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ ]; boot.kernelModules = [];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{
device = "/dev/disk/by-uuid/b5a9a9f6-be72-4520-b2ac-439d0479a34b"; device = "/dev/disk/by-uuid/b5a9a9f6-be72-4520-b2ac-439d0479a34b";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/efi" = fileSystems."/efi" = {
{
device = "systemd-1"; device = "systemd-1";
fsType = "autofs"; fsType = "autofs";
}; };
swapDevices = [ ]; swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's

View File

@ -1,6 +1,11 @@
{ config, lib, pkgs, inputs, username, ... }:
{ {
config,
lib,
pkgs,
inputs,
username,
...
}: {
imports = [ imports = [
inputs.nixos-wsl.nixosModules.wsl inputs.nixos-wsl.nixosModules.wsl
]; ];
@ -32,16 +37,16 @@
users.${username} = { users.${username} = {
initialPassword = "${username}"; initialPassword = "${username}";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "storage" ]; extraGroups = ["networkmanager" "wheel" "storage"];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
]; ];
}; };
}; };
environment.systemPackages = with pkgs;[ ]; environment.systemPackages = with pkgs; [];
fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; }) ]; fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
# services.barrier.client.enable = true; # services.barrier.client.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs.rbw = { programs.rbw = {
enable = true; enable = true;
settings = { settings = {

View File

@ -1,4 +1,12 @@
{ inputs, outputs, lib, config, pkgs, username, ... }: { {
inputs,
outputs,
lib,
config,
pkgs,
username,
...
}: {
imports = [ imports = [
./picom ./picom
./shell ./shell

View File

@ -1,4 +1,9 @@
{ pkgs, inputs, username, ... }: { {
pkgs,
inputs,
username,
...
}: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "0xTux"; userName = "0xTux";

View File

@ -1,5 +1,8 @@
{ lib, pkgs, ... }: { {
lib,
pkgs,
...
}: {
programs = { programs = {
waybar = { waybar = {
enable = true; enable = true;
@ -9,8 +12,7 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
settings = settings = let
let
# Notify # Notify
notifycmd = "notify-send -h string:x-canonical-private-synchronous:hypr-cfg -u low"; notifycmd = "notify-send -h string:x-canonical-private-synchronous:hypr-cfg -u low";
@ -33,8 +35,7 @@
group_border_locked_active_col = "rgba(90ceaaff) rgba(ecd3a0ff) 45deg"; group_border_locked_active_col = "rgba(90ceaaff) rgba(ecd3a0ff) 45deg";
group_border_locked_inactive_col = "rgba(86aaeccc) rgba(93cee9cc) 45deg"; group_border_locked_inactive_col = "rgba(86aaeccc) rgba(93cee9cc) 45deg";
groupbar_text_color = "0xFFf1fcf9"; groupbar_text_color = "0xFFf1fcf9";
in in {
{
#-- General #-- General
general = { general = {
border_size = hypr_border_size; border_size = hypr_border_size;
@ -162,18 +163,15 @@
}; };
#-- Window Rules #-- Window Rules
windowrule = [ ]; windowrule = [];
#-- Keybindings #-- Keybindings
bind = bind = let
let
terminal = "alacritty"; terminal = "alacritty";
browser = "firefox"; browser = "firefox";
filemanager = "thunar"; filemanager = "thunar";
editor = "geany"; editor = "geany";
in in [
[
# groups # groups
"SUPER, G, togglegroup" "SUPER, G, togglegroup"
"SUPER, G, exec, ${notifycmd} 'Toggled Group Mode'" "SUPER, G, exec, ${notifycmd} 'Toggled Group Mode'"

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
services.kdeconnect = { services.kdeconnect = {
enable = true; enable = true;
indicator = true; indicator = true;

View File

@ -1,5 +1,8 @@
{ inputs, pkgs, ... }: { {
inputs,
pkgs,
...
}: {
# fix nvchad # fix nvchad
# xdg.configFile."nvim" = { # xdg.configFile."nvim" = {
# source = "${pkgs.nvchad}"; # source = "${pkgs.nvchad}";

View File

@ -1,4 +1,8 @@
{ config, pkgs, ... }: { {
config,
pkgs,
...
}: {
services.picom = { services.picom = {
enable = true; enable = true;
package = pkgs.picom-next; package = pkgs.picom-next;
@ -8,7 +12,7 @@
fade = true; fade = true;
fadeDelta = 10; fadeDelta = 10;
fadeSteps = [ 0.05 0.05 ]; fadeSteps = [0.05 0.05];
fadeExclude = [ fadeExclude = [
"window_type *= 'menu'" "window_type *= 'menu'"
]; ];

View File

@ -1,9 +1,7 @@
{ config, ... }: { {config, ...}: {
programs.rofi = programs.rofi = {
{
enable = true; enable = true;
extraConfig = extraConfig = {
{
terminal = "alacritty"; terminal = "alacritty";
modes = "combi,keys"; modes = "combi,keys";
@ -40,11 +38,9 @@
cycle = false; cycle = false;
fixed-num-lines = false; fixed-num-lines = false;
}; };
theme = theme = let
let
inherit (config.lib.formats.rasi) mkLiteral; inherit (config.lib.formats.rasi) mkLiteral;
in in {
{
"*" = { "*" = {
font = "JetBrains Mono 11"; font = "JetBrains Mono 11";

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs = { programs = {
bat.enable = true; bat.enable = true;
zsh = { zsh = {
@ -16,7 +16,7 @@
lazygit.enable = true; lazygit.enable = true;
zoxide = { zoxide = {
enable = true; enable = true;
options = [ "--cmd cd" ]; options = ["--cmd cd"];
}; };
ripgrep.enable = true; ripgrep.enable = true;
btop = { btop = {

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
programs.starship = { programs.starship = {
enable = true; enable = true;
settings = { settings = {

View File

@ -1,8 +1,7 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs.tmux = { programs.tmux = {
enable = true; enable = true;
plugins = with pkgs;[ plugins = with pkgs; [
{ {
plugin = tmuxPlugins.gruvbox; plugin = tmuxPlugins.gruvbox;
extraConfig = "set -g @tmux-gruvbox 'dark'"; extraConfig = "set -g @tmux-gruvbox 'dark'";
@ -42,5 +41,4 @@
"; ";
}; };
} }

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscodium; package = pkgs.vscodium;
@ -39,7 +38,7 @@
"terminal.integrated.fontFamily" = "FiraCode NF, FiraCode Nerd Font , FiraCode"; "terminal.integrated.fontFamily" = "FiraCode NF, FiraCode Nerd Font , FiraCode";
}; };
extensions = with pkgs.vscode-extensions;[ extensions = with pkgs.vscode-extensions; [
wakatime.vscode-wakatime wakatime.vscode-wakatime
ms-dotnettools.csharp ms-dotnettools.csharp
naumovs.color-highlight naumovs.color-highlight

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs = { programs = {
waybar = { waybar = {
enable = true; enable = true;
@ -41,10 +40,10 @@
"active-only" = false; "active-only" = false;
"on-click" = "activate"; "on-click" = "activate";
"persistent-workspaces" = { "persistent-workspaces" = {
"1" = [ ]; "1" = [];
"2" = [ ]; "2" = [];
"3" = [ ]; "3" = [];
"4" = [ ]; "4" = [];
}; };
}; };
@ -69,7 +68,7 @@
"format-charging" = " {capacity}%"; "format-charging" = " {capacity}%";
"format-plugged" = " {capacity}%"; "format-plugged" = " {capacity}%";
"format-alt" = "{time} {icon}"; "format-alt" = "{time} {icon}";
"format-icons" = [ "󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; "format-icons" = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
}; };
"bluetooth" = { "bluetooth" = {
@ -78,7 +77,7 @@
"format-connected" = " {num_connections}"; "format-connected" = " {num_connections}";
"format-connected-battery" = "{icon} {num_connections}"; "format-connected-battery" = "{icon} {num_connections}";
# "format-connected-battery"= "{icon} {device_alias}-{device_battery_percentage}%"; # "format-connected-battery"= "{icon} {device_alias}-{device_battery_percentage}%";
"format-icons" = [ "󰥇" "󰤾" "󰤿" "󰥀" "󰥁" "󰥂" "󰥃" "󰥄" "󰥅" "󰥆" "󰥈" ]; "format-icons" = ["󰥇" "󰤾" "󰤿" "󰥀" "󰥁" "󰥂" "󰥃" "󰥄" "󰥅" "󰥆" "󰥈"];
# "format-device-preference"= [ "device1"; "device2" ]; // preference list deciding the displayed device If this config option is not defined or none of the devices in the list are connected; it will fall back to showing the last connected device. # "format-device-preference"= [ "device1"; "device2" ]; // preference list deciding the displayed device If this config option is not defined or none of the devices in the list are connected; it will fall back to showing the last connected device.
"tooltip-format" = "{controller_alias}\n{num_connections} connected"; "tooltip-format" = "{controller_alias}\n{num_connections} connected";
"tooltip-format-connected" = "{controller_alias}\n{num_connections} connected\n\n{device_enumerate}"; "tooltip-format-connected" = "{controller_alias}\n{num_connections} connected\n\n{device_enumerate}";
@ -107,7 +106,7 @@
"interval" = 10; "interval" = 10;
"format" = "󰍛 {usage}%"; "format" = "󰍛 {usage}%";
"format-alt" = "{icon0}{icon1}{icon2}{icon3}"; "format-alt" = "{icon0}{icon1}{icon2}{icon3}";
"format-icons" = [ "" "" "" "" "" "" "" "" ]; "format-icons" = ["" "" "" "" "" "" "" ""];
}; };
"tray" = { "tray" = {
@ -156,11 +155,9 @@
"interval" = "once"; "interval" = "once";
"tooltip" = false; "tooltip" = false;
}; };
}; };
}; };
style = style = let
let
bar_bg = "rgba(23, 28, 34, 0.95)"; bar_bg = "rgba(23, 28, 34, 0.95)";
main_bg = "#101419"; main_bg = "#101419";
main_fg = "#93cee9"; main_fg = "#93cee9";
@ -170,8 +167,7 @@
wb_hvr_bg = "#90ceaa"; wb_hvr_bg = "#90ceaa";
wb_hvr_fg = "#1f2328"; wb_hvr_fg = "#1f2328";
in in ''
''
* { * {
border: none; border: none;
border-radius: 0px; border-radius: 0px;
@ -339,5 +335,4 @@
''; '';
}; };
}; };
} }

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;

View File

@ -1,4 +1,11 @@
{ inputs, outputs, lib, pkgs, username, ... }: { {
inputs,
outputs,
lib,
pkgs,
username,
...
}: {
services = { services = {
xserver = { xserver = {
enable = true; enable = true;
@ -34,7 +41,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
environment.systemPackages = with pkgs;[ environment.systemPackages = with pkgs; [
lua53Packages.lua lua53Packages.lua
wezterm wezterm
acpi acpi

View File

@ -1,3 +1,3 @@
{ ... }: { {...}: {
programs.hyprland.enable = true; programs.hyprland.enable = true;
} }

View File

@ -1,5 +1,9 @@
{ config, lib, pkgs, ... }: { {
config,
lib,
pkgs,
...
}: {
security = { security = {
acme = { acme = {
defaults.email = "0xtux@pm.me"; defaults.email = "0xtux@pm.me";
@ -56,6 +60,6 @@
}; };
}; };
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [80 443];
environment.systemPackages = with pkgs;[ headscale ]; environment.systemPackages = with pkgs; [headscale];
} }

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
programs.steam = { programs.steam = {
enable = true; enable = true;
}; };

View File

@ -1,7 +1,7 @@
{ username, ... }: { {username, ...}: {
virtualisation = { virtualisation = {
docker.enable = true; docker.enable = true;
}; };
users.users.${username}.extraGroups = [ "docker" ]; users.users.${username}.extraGroups = ["docker"];
} }

View File

@ -1,9 +1,13 @@
{ pkgs, username, ... }: { {
pkgs,
username,
...
}: {
virtualisation = { virtualisation = {
libvirtd.enable = true; libvirtd.enable = true;
}; };
users.users.${username}.extraGroups = [ "libvirtd" ]; users.users.${username}.extraGroups = ["libvirtd"];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
virt-manager virt-manager

View File

@ -1,4 +1,4 @@
{ ... }: { {...}: {
virtualisation = { virtualisation = {
waydroid.enable = true; waydroid.enable = true;
}; };

View File

@ -1,5 +1,5 @@
{ inputs, ... }: { {inputs, ...}: {
additions = final: _prev: import ../pkgs { pkgs = final; }; additions = final: _prev: import ../pkgs {pkgs = final;};
modifications = final: prev: { modifications = final: prev: {
#vscode = prev.vscode.overrideAttrs (oldAttrs: rec { #vscode = prev.vscode.overrideAttrs (oldAttrs: rec {
@ -11,7 +11,7 @@
# buildInputs = oldAttrs.buildInputs; # buildInputs = oldAttrs.buildInputs;
#}); #});
awesome = inputs.nixpkgs-f2k.packages.${prev.system}.awesome-git.override { lua = prev.lua53Packages.lua; }; awesome = inputs.nixpkgs-f2k.packages.${prev.system}.awesome-git.override {lua = prev.lua53Packages.lua;};
}; };
# When applied, the unstable nixpkgs set (declared in the flake inputs) will # When applied, the unstable nixpkgs set (declared in the flake inputs) will

View File

@ -1,9 +1,11 @@
{ lib, stdenv, pkgs }: {
lib,
let stdenv,
pkgs,
}: let
user = ./user; user = ./user;
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "astronvim"; pname = "astronvim";
version = "3.44.1"; version = "3.44.1";
@ -27,4 +29,4 @@ stdenv.mkDerivation {
platforms = platforms.all; platforms = platforms.all;
license = licenses.gpl3; license = licenses.gpl3;
}; };
} }

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
nvchad = pkgs.callPackage ./nvchad { }; nvchad = pkgs.callPackage ./nvchad {};
astronvim = pkgs.callPackage ./astronvim { }; astronvim = pkgs.callPackage ./astronvim {};
} }

View File

@ -1,9 +1,11 @@
{ stdenv, lib, fetchFromGitHub }: {
stdenv,
let lib,
fetchFromGitHub,
}: let
custom = ./custom; custom = ./custom;
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "nvchad"; pname = "nvchad";
version = "2.0.0"; version = "2.0.0";
@ -27,4 +29,4 @@ stdenv.mkDerivation {
platforms = platforms.all; platforms = platforms.all;
license = licenses.gpl3; license = licenses.gpl3;
}; };
} }