reformat with nixpkgs-fmt

This commit is contained in:
Adithya 2023-11-04 16:12:45 +05:30
parent 26a9022f4b
commit 24ae3a3bc1
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
79 changed files with 344 additions and 333 deletions

View file

@ -1,3 +1,3 @@
{...}: {
imports = [./nix.nix ./users];
{ ... }: {
imports = [ ./nix.nix ./users ];
}

View file

@ -1,16 +1,15 @@
{
nixpkgs,
pkgs,
...
{ nixpkgs
, pkgs
, ...
}: {
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix = {
package = pkgs.nixFlakes;
nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
nixPath = [ "nixpkgs=/etc/nix/inputs/nixpkgs" ];
registry.nixpkgs.flake = nixpkgs;
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes" "auto-allocate-uids" "cgroups" "ca-derivations"];
experimental-features = [ "nix-command" "flakes" "auto-allocate-uids" "cgroups" "ca-derivations" ];
auto-allocate-uids = true;
sandbox = true;
trusted-substituters = [

View file

@ -1,10 +1,11 @@
{
pkgs,
secrets,
...
}: let
{ pkgs
, secrets
, ...
}:
let
user = secrets.users;
in {
in
{
users.mutableUsers = false;
users.users = {
root = {
@ -15,7 +16,7 @@ in {
inherit (user.primary) hashedPassword;
description = user.primary.realName;
isNormalUser = true;
extraGroups = ["docker" "libvirtd" "networkmanager" "tss" "wheel"];
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
user.primary.sshPublicKey

View file

@ -60,23 +60,25 @@
};
};
outputs = {
self,
nixpkgs,
flake-utils,
home-manager,
impermanence,
lanzaboote,
nixvim,
www,
wiki,
if3,
} @ inputs: let
secrets = import ./secrets.nix;
nixpkgs-config = {
allowUnfree = true;
};
in
outputs =
{ self
, nixpkgs
, flake-utils
, home-manager
, impermanence
, lanzaboote
, nixvim
, www
, wiki
, if3
,
} @ inputs:
let
secrets = import ./secrets.nix;
nixpkgs-config = {
allowUnfree = true;
};
in
{
nixosConfigurations = {
Skipper = nixpkgs.lib.nixosSystem rec {
@ -84,9 +86,9 @@
pkgs = import nixpkgs {
inherit system;
config = nixpkgs-config;
overlays = [(import ./packages)];
overlays = [ (import ./packages) ];
};
specialArgs = inputs // {inherit secrets;};
specialArgs = inputs // { inherit secrets; };
modules = [
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
@ -103,8 +105,8 @@
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {inherit secrets;};
users.${secrets.users.primary.userName} = {pkgs, ...}: {
extraSpecialArgs = { inherit secrets; };
users.${secrets.users.primary.userName} = { pkgs, ... }: {
imports = [
impermanence.nixosModules.home-manager.impermanence
nixvim.homeManagerModules.nixvim
@ -121,7 +123,7 @@
inherit system;
config = nixpkgs-config;
};
specialArgs = inputs // {inherit secrets;};
specialArgs = inputs // { inherit secrets; };
modules = [
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
@ -137,7 +139,7 @@
inherit system;
config = nixpkgs-config;
};
specialArgs = inputs // {inherit secrets;};
specialArgs = inputs // { inherit secrets; };
modules = [
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
@ -150,20 +152,21 @@
};
}
// flake-utils.lib.eachDefaultSystem (
system: let
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
with pkgs; {
formatter = pkgs.alejandra;
devShells.default = mkShell {
buildInputs = [
git
git-crypt
statix
];
};
}
with pkgs; {
formatter = nixpkgs-fmt;
devShells.default = mkShell {
buildInputs = [
git
git-crypt
statix
];
};
}
);
}

View file

@ -1,5 +1,5 @@
_: {
imports = [./programs ./services ./wm ./gtk.nix ./persistence.nix];
imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ];
home.stateVersion = "23.11";
@ -9,12 +9,12 @@ _: {
mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = ["org.gnome.Evince.desktop"];
"image/gif" = ["org.gnome.eog.desktop"];
"image/jpeg" = ["org.gnome.eog.desktop"];
"image/png" = ["org.gnome.eog.desktop"];
"image/webp" = ["org.gnome.eog.desktop"];
"x-scheme-handler/tg" = ["org.telegram.desktop.desktop"];
"application/pdf" = [ "org.gnome.Evince.desktop" ];
"image/gif" = [ "org.gnome.eog.desktop" ];
"image/jpeg" = [ "org.gnome.eog.desktop" ];
"image/png" = [ "org.gnome.eog.desktop" ];
"image/webp" = [ "org.gnome.eog.desktop" ];
"x-scheme-handler/tg" = [ "org.telegram.desktop.desktop" ];
};
};
userDirs.enable = true;

View file

@ -1,8 +1,8 @@
{
lib,
pkgs,
...
}: let
{ lib
, pkgs
, ...
}:
let
gtkTheme = {
name = "Dracula";
package = pkgs.dracula-gtk;
@ -10,14 +10,15 @@
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme.override {color = "black";};
package = pkgs.papirus-icon-theme.override { color = "black"; };
};
cursorTheme = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
};
in {
in
{
gtk = {
enable = true;
theme = gtkTheme;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
imports = [
./aria2.nix
./bat.nix

View file

@ -2,7 +2,7 @@ _: {
programs.eza = {
enable = true;
enableAliases = true;
extraOptions = ["--group-directories-first" "--group"];
extraOptions = [ "--group-directories-first" "--group" ];
git = true;
icons = true;
};

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
home.packages = [pkgs.gnome.nautilus];
{ pkgs, ... }: {
home.packages = [ pkgs.gnome.nautilus ];
dconf.settings = {
"io/elementary/files/preferences" = {
singleclick-select = true;

View file

@ -1,7 +1,6 @@
{
pkgs,
osConfig,
...
{ pkgs
, osConfig
, ...
}: {
programs = {
firefox = {

View file

@ -1,6 +1,8 @@
{secrets, ...}: let
{ secrets, ... }:
let
user = secrets.users;
in {
in
{
programs.git = {
enable = true;
delta = {
@ -27,6 +29,6 @@ in {
push.autoSetupRemote = true;
pull.rebase = true;
};
ignores = ["/.nix" "/.direnv"];
ignores = [ "/.nix" "/.direnv" ];
};
}

View file

@ -1,7 +1,7 @@
{pkgs, ...}: {
{ pkgs, ... }: {
programs.gh = {
enable = true;
settings.git_protocol = "ssh";
extensions = [pkgs.gh-dash];
extensions = [ pkgs.gh-dash ];
};
}

View file

@ -1,14 +1,16 @@
{pkgs, ...}: let
{ pkgs, ... }:
let
dracula-kitty = pkgs.fetchFromGitHub {
owner = "dracula";
repo = "kitty";
rev = "87717a3f00e3dff0fc10c93f5ff535ea4092de70";
hash = "sha256-78PTH9wE6ktuxeIxrPp0ZgRI8ST+eZ3Ok2vW6BCIZkc=";
};
in {
in
{
programs.kitty = {
enable = true;
font.package = pkgs.nerdfonts.override {fonts = ["FiraCode"];};
font.package = pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; };
font.name = "FiraCode Nerd Font";
extraConfig = ''
font_size 14

View file

@ -1,15 +1,15 @@
{pkgs, ...}: {
{ pkgs, ... }: {
programs.mpv = {
enable = true;
package = pkgs.mpv.override {youtubeSupport = true;};
package = pkgs.mpv.override { youtubeSupport = true; };
config = {
cache = "yes";
cache-secs = "120";
hwdec = "auto-safe";
gpu-context = "wayland";
};
defaultProfiles = ["gpu-hq"];
scripts = with pkgs.mpvScripts; [mpris];
defaultProfiles = [ "gpu-hq" ];
scripts = with pkgs.mpvScripts; [ mpris ];
};
xdg.desktopEntries = {

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
xdg.desktopEntries = {
"nvim".name = "Neovim wrapper";
"nvim".exec = "nvim %F";
@ -154,10 +154,10 @@
enable = true;
snippet.expand = "luasnip";
sources = [
{name = "nvim_lsp";}
{name = "luasnip";}
{name = "buffers";}
{name = "treesitter";}
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{ name = "buffers"; }
{ name = "treesitter"; }
];
};
telescope = {

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
programs.tmux = {
enable = true;
escapeTime = 0;

View file

@ -1,18 +1,18 @@
{pkgs, ...}: {
home.packages = [pkgs.virt-manager];
{ pkgs, ... }: {
home.packages = [ pkgs.virt-manager ];
dconf.settings = {
"org/virt-manager/virt-manager/confirm" = {
forcepoweroff = false;
};
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
"org/virt-manager/virt-manager/new-vm" = {firmware = "uefi";};
"org/virt-manager/virt-manager/new-vm" = { firmware = "uefi"; };
"org/virt-manager/virt-manager/stats" = {
enable-disk-poll = true;
enable-net-poll = true;
};
"org/virt-manager/virt-manager/vmlist-fields" = {network-traffic = true;};
"org/virt-manager/virt-manager/vmlist-fields" = { network-traffic = true; };
};
}

View file

@ -1,7 +1,6 @@
{
config,
pkgs,
...
{ config
, pkgs
, ...
}: {
programs.zsh = {
enable = true;

View file

@ -1,17 +1,16 @@
{
config,
pkgs,
secrets,
...
{ config
, pkgs
, secrets
, ...
}: {
systemd.user.services = {
ariang = {
Unit = {
Description = "AriaNg: Web frontend for aria2c";
After = ["network.target" "aria2c.service"];
After = [ "network.target" "aria2c.service" ];
};
Install = {
WantedBy = ["default.target"];
WantedBy = [ "default.target" ];
};
Service = {
Type = "simple";
@ -23,11 +22,11 @@
aria2c = {
Unit = {
Description = "Aria2c Download Manager";
Documentation = ["man:aria2c(1)"];
After = ["network.target"];
Documentation = [ "man:aria2c(1)" ];
After = [ "network.target" ];
};
Install = {
WantedBy = ["default.target" "ariang.service"];
WantedBy = [ "default.target" "ariang.service" ];
};
Service = {
Type = "simple";

View file

@ -1,7 +1,6 @@
{
pkgs,
secrets,
...
{ pkgs
, secrets
, ...
}: {
services = {
spotifyd = {

View file

@ -1,4 +1,4 @@
{...}: {
{ ... }: {
imports = [
./rofi
./waybar

View file

@ -1,11 +1,12 @@
{
config,
pkgs,
...
}: let
{ config
, pkgs
, ...
}:
let
dmenu = "${config.programs.rofi.package}/bin/rofi -dmenu";
firefox = "${config.programs.firefox.package}/bin/firefox";
in {
in
{
services.dunst = {
enable = true;
iconTheme.name = config.gtk.iconTheme.name;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
programs.rofi = {
enable = true;
cycle = false;

View file

@ -1,7 +1,9 @@
{pkgs, ...}: let
{ pkgs, ... }:
let
swaylock = "${pkgs.swaylock}/bin/swaylock";
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
in {
in
{
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
programs.waybar = {
enable = true;
package = pkgs.waybar.override {
@ -12,9 +12,9 @@
layer = "top";
position = "top";
height = 28;
modules-left = ["hyprland/workspaces" "hyprland/window" "hyprland/submap"];
modules-center = [];
modules-right = ["tray" "idle_inhibitor" "network" "bluetooth" "wireplumber" "backlight" "battery" "clock"];
modules-left = [ "hyprland/workspaces" "hyprland/window" "hyprland/submap" ];
modules-center = [ ];
modules-right = [ "tray" "idle_inhibitor" "network" "bluetooth" "wireplumber" "backlight" "battery" "clock" ];
idle_inhibitor = {
format = "{icon}";
format-icons = {
@ -31,7 +31,7 @@
};
backlight = {
format = "{icon}";
format-icons = ["󰃚" "󰃛" "󰃜" "󰃝" "󰃞" "󰃟" "󰃠"];
format-icons = [ "󰃚" "󰃛" "󰃜" "󰃝" "󰃞" "󰃟" "󰃠" ];
tooltip = false;
};
battery = {
@ -44,7 +44,7 @@
format-alt = "{icon} {capacity}% ({time})";
format-charging = "󰂄 {capacity}%";
format-plugged = "󰚥 {capacity}%";
format-icons = ["󰂃" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
format-icons = [ "󰂃" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
tooltip = false;
};
network = {
@ -59,7 +59,7 @@
format = "{icon}";
format-muted = "󰝟";
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
format-icons = ["󰕿" "󰖀" "󰕾"];
format-icons = [ "󰕿" "󰖀" "󰕾" ];
tooltip = false;
};
bluetooth = {

View file

@ -1,4 +1,4 @@
{...}: {
{ ... }: {
imports = [
./hyprland
./addon

View file

@ -1,8 +1,8 @@
{
config,
pkgs,
...
}: let
{ config
, pkgs
, ...
}:
let
dbus-update-activation-environment = "${pkgs.dbus}/bin/dbus-update-activation-environment";
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
grim = "${pkgs.grim}/bin/grim";
@ -17,7 +17,8 @@
xdg-user-dir = "${pkgs.xdg-user-dirs}/bin/xdg-user-dir";
change-wallpaper = "${pkgs.scripts}/bin/chpaper ${config.xdg.userDirs.pictures}/Wallpapers";
wallhaven-wallpaper = "${pkgs.scripts}/bin/chpaper \$(${pkgs.scripts}/bin/wallhaven ${config.xdg.userDirs.pictures}/Wallpapers)";
in {
in
{
home.packages = with pkgs; [
hyprland
];
@ -25,11 +26,11 @@ in {
systemd.user.targets = {
hyprland-session = {
Unit = {
After = ["graphical-session-pre.target"];
BindsTo = ["graphical-session.target"];
After = [ "graphical-session-pre.target" ];
BindsTo = [ "graphical-session.target" ];
Description = "Hyprland session";
Documentation = ["man:systemd.special(7)"];
Wants = ["graphical-session-pre.target"];
Documentation = [ "man:systemd.special(7)" ];
Wants = [ "graphical-session-pre.target" ];
};
};
};

View file

@ -1,5 +1,5 @@
_: {
imports = [];
imports = [ ];
virtualisation.oci-containers = {
backend = "podman";

View file

@ -1,4 +1,4 @@
{...}: {
{ ... }: {
imports = [
./hardware
./programs
@ -25,7 +25,7 @@
LC_TIME = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
};
supportedLocales = ["en_US.UTF-8/UTF-8"];
supportedLocales = [ "en_US.UTF-8/UTF-8" ];
};
time.timeZone = "Asia/Kolkata";

View file

@ -1,3 +1,3 @@
{...}: {
imports = [./filesystem.nix ./kernel.nix];
{ ... }: {
imports = [ ./filesystem.nix ./kernel.nix ];
}

View file

@ -2,7 +2,7 @@ _: {
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXOS_ROOT";
fsType = "btrfs";
options = ["noatime" "compress=zstd"];
options = [ "noatime" "compress=zstd" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/ESP";

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
...
{ lib
, pkgs
, ...
}: {
boot = {
initrd = {

View file

@ -1,5 +1,5 @@
{lib, ...}: {
imports = [./wireguard.nix];
{ lib, ... }: {
imports = [ ./wireguard.nix ];
networking = {
hostName = "Rico1";
useDHCP = lib.mkDefault false;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
imports = [
./neovim.nix
./starship.nix

View file

@ -6,5 +6,5 @@ _: {
syntaxHighlighting.enable = true;
};
};
environment.pathsToLink = ["/share/zsh"];
environment.pathsToLink = [ "/share/zsh" ];
}

View file

@ -1,4 +1,4 @@
{secrets, ...}: {
{ secrets, ... }: {
services.caddy = {
enable = true;
inherit (secrets.caddy_config) email;

View file

@ -1,4 +1,4 @@
{...}: {
{ ... }: {
imports = [
./caddy.nix
./dendrite

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
services = {
caddy.virtualHosts."matrix.adtya.xyz" = {
extraConfig = ''
@ -9,8 +9,8 @@
};
systemd.services.dendrite = {
description = "Dendrite Matrix homeserver";
after = ["network.target"];
wantedBy = ["multi-user.target"];
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
DynamicUser = true;

View file

@ -1,10 +1,11 @@
{
pkgs,
secrets,
...
}: let
{ pkgs
, secrets
, ...
}:
let
inherit (secrets) frp_config;
in {
in
{
services.frp = {
enable = true;
role = "client";

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
services.postgresql = {
enable = true;
authentication = pkgs.lib.mkOverride 10 ''
@ -6,7 +6,7 @@
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
ensureDatabases = ["dendrite"];
ensureDatabases = [ "dendrite" ];
ensureUsers = [
{
name = "dendrite";

View file

@ -1,11 +1,12 @@
{
config,
secrets,
...
}: let
{ config
, secrets
, ...
}:
let
inherit (secrets.wireguard_config) peers;
in {
networking.firewall.trustedInterfaces = ["wg0"];
in
{
networking.firewall.trustedInterfaces = [ "wg0" ];
networking.wireguard = {
enable = true;
interfaces = {

View file

@ -1,5 +1,5 @@
{...}: {
imports = [];
{ ... }: {
imports = [ ];
virtualisation.oci-containers = {
backend = "podman";

View file

@ -1,4 +1,4 @@
{...}: {
{ ... }: {
imports = [
./hardware
./programs
@ -25,7 +25,7 @@
LC_TIME = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
};
supportedLocales = ["en_US.UTF-8/UTF-8"];
supportedLocales = [ "en_US.UTF-8/UTF-8" ];
};
time.timeZone = "Asia/Kolkata";

View file

@ -1,3 +1,3 @@
{...}: {
imports = [./filesystem.nix ./kernel.nix];
{ ... }: {
imports = [ ./filesystem.nix ./kernel.nix ];
}

View file

@ -2,7 +2,7 @@ _: {
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXOS_ROOT";
fsType = "btrfs";
options = ["noatime" "compress=zstd"];
options = [ "noatime" "compress=zstd" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/ESP";

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
...
{ lib
, pkgs
, ...
}: {
boot = {
initrd = {

View file

@ -1,5 +1,5 @@
{lib, ...}: {
imports = [./wireguard.nix];
{ lib, ... }: {
imports = [ ./wireguard.nix ];
networking = {
hostName = "Rico2";
useDHCP = lib.mkDefault false;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
imports = [
./neovim.nix
./starship.nix

View file

@ -6,5 +6,5 @@ _: {
syntaxHighlighting.enable = true;
};
};
environment.pathsToLink = ["/share/zsh"];
environment.pathsToLink = [ "/share/zsh" ];
}

View file

@ -1,14 +1,15 @@
{
pkgs,
www,
secrets,
...
}: let
{ pkgs
, www
, secrets
, ...
}:
let
system = pkgs.system;
in {
in
{
services = {
caddy.virtualHosts."adtya.xyz" = {
serverAliases = ["www.adtya.xyz"];
serverAliases = [ "www.adtya.xyz" ];
extraConfig = ''
handle /.well-known/matrix/server {
header Content-Type application/json

View file

@ -1,7 +1,6 @@
{
config,
secrets,
...
{ config
, secrets
, ...
}: {
services.caddy = {
enable = true;

View file

@ -1,3 +1,3 @@
_: {
imports = [./adtya.xyz.nix ./caddy.nix ./frpc.nix ./if3.nix ./proofs.nix ./ssh.nix ./wiki.nix];
imports = [ ./adtya.xyz.nix ./caddy.nix ./frpc.nix ./if3.nix ./proofs.nix ./ssh.nix ./wiki.nix ];
}

View file

@ -1,10 +1,11 @@
{
pkgs,
secrets,
...
}: let
{ pkgs
, secrets
, ...
}:
let
inherit (secrets) frp_config;
in {
in
{
services.frp = {
enable = true;
role = "client";

View file

@ -1,10 +1,11 @@
{
pkgs,
if3,
...
}: let
{ pkgs
, if3
, ...
}:
let
system = pkgs.system;
in {
in
{
services = {
caddy.virtualHosts = {
"if3.adtya.xyz" = {

View file

@ -1,7 +1,6 @@
{
config,
secrets,
...
{ config
, secrets
, ...
}: {
services = {
caddy.virtualHosts = {

View file

@ -1,10 +1,11 @@
{
pkgs,
wiki,
...
}: let
{ pkgs
, wiki
, ...
}:
let
system = pkgs.system;
in {
in
{
services = {
caddy.virtualHosts = {
"wiki.adtya.xyz" = {

View file

@ -1,11 +1,12 @@
{
config,
secrets,
...
}: let
{ config
, secrets
, ...
}:
let
inherit (secrets.wireguard_config) peers;
in {
networking.firewall.trustedInterfaces = ["wg0"];
in
{
networking.firewall.trustedInterfaces = [ "wg0" ];
networking.wireguard = {
enable = true;
interfaces = {

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
imports = [
./hardware
./programs
@ -24,7 +24,7 @@
packages = with pkgs; [
cantarell-fonts
liberation_ttf
(nerdfonts.override {fonts = ["FiraCode"];})
(nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
@ -47,7 +47,7 @@
LC_TIME = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
};
supportedLocales = ["en_US.UTF-8/UTF-8"];
supportedLocales = [ "en_US.UTF-8/UTF-8" ];
};
location.provider = "geoclue2";
@ -57,7 +57,7 @@
xdg.portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk xdg-desktop-portal-hyprland];
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ];
};
system.stateVersion = "23.11";

View file

@ -1,9 +1,8 @@
{
lib,
pkgs,
...
{ lib
, pkgs
, ...
}: {
imports = [./kernel.nix ./filesystem.nix];
imports = [ ./kernel.nix ./filesystem.nix ];
boot = {
initrd.luks.devices = {
@ -16,10 +15,10 @@
};
loader.efi.canTouchEfiVariables = true;
resumeDevice = "/dev/vg0/swap";
supportedFilesystems = ["btrfs"];
supportedFilesystems = [ "btrfs" ];
};
swapDevices = [{device = "/dev/vg0/swap";}];
swapDevices = [{ device = "/dev/vg0/swap"; }];
hardware = {
bluetooth = {
@ -30,20 +29,20 @@
KernelExperimental = true;
};
};
package = pkgs.bluez.override {withExperimental = true;};
package = pkgs.bluez.override { withExperimental = true; };
};
cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true;
gpgSmartcards.enable = true;
opengl = {
enable = true;
extraPackages = [pkgs.intel-media-driver];
extraPackages = [ pkgs.intel-media-driver ];
driSupport = true;
driSupport32Bit = true;
};
sensor.hddtemp = {
enable = true;
drives = ["/dev/disk/by-path/pci-0000:01:00.0-nvme-1"];
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
};
xone.enable = true;
};

View file

@ -3,30 +3,30 @@ _: {
"/" = {
device = "/dev/vg0/system";
fsType = "btrfs";
options = ["subvol=@root" "compress-force=zstd" "noatime"];
options = [ "subvol=@root" "compress-force=zstd" "noatime" ];
neededForBoot = true;
};
"/home" = {
device = "/dev/vg0/system";
fsType = "btrfs";
options = ["subvol=@home" "compress-force=zstd" "noatime"];
options = [ "subvol=@home" "compress-force=zstd" "noatime" ];
};
"/nix" = {
device = "/dev/vg0/system";
fsType = "btrfs";
options = ["subvol=/@nix" "compress-force=zstd" "noatime"];
options = [ "subvol=/@nix" "compress-force=zstd" "noatime" ];
neededForBoot = true;
};
"/persist" = {
device = "/dev/vg0/system";
fsType = "btrfs";
options = ["subvol=/@persist" "compress-force=zstd" "noatime"];
options = [ "subvol=/@persist" "compress-force=zstd" "noatime" ];
neededForBoot = true;
};
"/mnt/system" = {
device = "/dev/vg0/system";
fsType = "btrfs";
options = ["subvol=/" "compress-force=zstd" "noatime"];
options = [ "subvol=/" "compress-force=zstd" "noatime" ];
};
"/boot" = {
device = "/dev/disk/by-partlabel/ESP";

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
...
{ lib
, pkgs
, ...
}: {
boot = {
consoleLogLevel = 3;
@ -15,12 +14,12 @@
"sd_mod"
"rtsx_pci_sdmmc"
];
kernelModules = ["i915"];
kernelModules = [ "i915" ];
systemd.enable = true;
};
kernelModules = ["kvm-intel"];
kernelModules = [ "kvm-intel" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
kernelParams = ["quiet"];
kernelParams = [ "quiet" ];
kernel.sysctl = {
"vm.swappiness" = 0;
};

View file

@ -1,5 +1,5 @@
{lib, ...}: {
imports = [./wireguard.nix];
{ lib, ... }: {
imports = [ ./wireguard.nix ];
networking = {
hostName = "Skipper";
networkmanager = {

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
boot.plymouth = {
enable = true;
themePackages = [

View file

@ -12,5 +12,5 @@ _: {
xwayland.enable = true;
zsh.enable = true;
};
environment.pathsToLink = ["/share/zsh"];
environment.pathsToLink = [ "/share/zsh" ];
}

View file

@ -1,9 +1,9 @@
_: {
boot.initrd.systemd.services.rollback = {
description = "Rollback root subvolume to blank state";
wantedBy = ["initrd.target"];
after = ["dev-vg0-system.device"];
before = ["sysroot.mount"];
wantedBy = [ "initrd.target" ];
after = [ "dev-vg0-system.device" ];
before = [ "sysroot.mount" ];
unitConfig.DefaultDependencies = "no";
serviceConfig.Type = "oneshot";
script = ''

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
...
{ lib
, pkgs
, ...
}: {
boot = {
bootspec.enable = true;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
security = {
apparmor = {
enable = true;
@ -10,7 +10,7 @@
services = {
passwd.enableGnomeKeyring = true;
login.enableGnomeKeyring = true;
swaylock = {};
swaylock = { };
};
u2f = {
enable = true;
@ -21,7 +21,7 @@
polkit.enable = true;
rtkit.enable = true;
sudo = {
package = pkgs.sudo.override {withInsults = true;};
package = pkgs.sudo.override { withInsults = true; };
extraConfig = ''
Defaults lecture="never"
'';

View file

@ -1,7 +1,7 @@
{pkgs, ...}: {
{ pkgs, ... }: {
services.dbus = {
enable = true;
apparmor = "enabled";
packages = with pkgs; [gcr gcr_4];
packages = with pkgs; [ gcr gcr_4 ];
};
}

View file

@ -1,6 +1,8 @@
{secrets, ...}: let
{ secrets, ... }:
let
user = secrets.users;
in {
in
{
imports = [
./dbus.nix
./keyd.nix

View file

@ -3,7 +3,7 @@ _: {
enable = true;
keyboards = {
builtin = {
ids = ["0001:0001"];
ids = [ "0001:0001" ];
settings = {
main = {
pageup = "noop";

View file

@ -1,6 +1,6 @@
{pkgs, ...}: {
{ pkgs, ... }: {
services.udev = {
enable = true;
packages = [pkgs.yubikey-personalization];
packages = [ pkgs.yubikey-personalization ];
};
}

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
specialisation = {
linux_lts = {
configuration = {

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{ pkgs, ... }: {
virtualisation = {
docker = {
enable = true;
@ -9,7 +9,7 @@
enable = true;
qemu.ovmf = {
enable = true;
packages = [pkgs.OVMFFull.fd];
packages = [ pkgs.OVMFFull.fd ];
};
};
};

View file

@ -1,11 +1,12 @@
{
config,
secrets,
...
}: let
{ config
, secrets
, ...
}:
let
inherit (secrets.wireguard_config) peers;
in {
networking.firewall.trustedInterfaces = ["wg0"];
in
{
networking.firewall.trustedInterfaces = [ "wg0" ];
networking.wireguard = {
enable = true;
interfaces = {

View file

@ -1,9 +1,9 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
pack ? "pack_1",
theme ? "cuts",
{ lib
, stdenvNoCC
, fetchFromGitHub
, pack ? "pack_1"
, theme ? "cuts"
,
}:
stdenvNoCC.mkDerivation {
pname = "adi1090x-plymouth";

View file

@ -1,6 +1,6 @@
self: super: {
adi1090x-plymouth = super.callPackage ./adi1090x-plymouth {};
dracula-gtk = super.callPackage ./dracula-gtk {};
scripts = super.callPackage ./scripts {};
rofi-bluetooth = super.callPackage ./rofi-bluetooth {};
adi1090x-plymouth = super.callPackage ./adi1090x-plymouth { };
dracula-gtk = super.callPackage ./dracula-gtk { };
scripts = super.callPackage ./scripts { };
rofi-bluetooth = super.callPackage ./rofi-bluetooth { };
}

View file

@ -1,10 +1,10 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
gtk3,
gnome-themes-extra,
gtk-engine-murrine,
{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, gnome-themes-extra
, gtk-engine-murrine
,
}:
stdenvNoCC.mkDerivation {
pname = "dracula-gtk";
@ -16,13 +16,13 @@ stdenvNoCC.mkDerivation {
rev = "a0b0ab451447d374600a74519abaa0588f2fa536";
hash = "sha256-0Ndk9Mh58KU2eoG1Z/CzZPiLNxy2bdloq9p4gzMDu2M=";
};
nativeBuildInputs = [gtk3];
nativeBuildInputs = [ gtk3 ];
buildInputs = [
gnome-themes-extra
];
propagatedUserEnvPkgs = [gtk-engine-murrine];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
@ -37,7 +37,7 @@ stdenvNoCC.mkDerivation {
downloadPage = "https://github.com/dracula/gtk";
homepage = "https://draculatheme.com/gtk";
license = licenses.gpl3;
maintainers = with maintainers; [adtya];
maintainers = with maintainers; [ adtya ];
platforms = platforms.linux;
};
}

View file

@ -1,10 +1,10 @@
{
lib,
fetchFromGitHub,
makeWrapper,
stdenvNoCC,
bluez,
rofi-wayland,
{ lib
, fetchFromGitHub
, makeWrapper
, stdenvNoCC
, bluez
, rofi-wayland
,
}:
stdenvNoCC.mkDerivation {
pname = "rofi-bluetooth";
@ -16,7 +16,7 @@ stdenvNoCC.mkDerivation {
hash = "sha256-1Xe3QFThIvJDCUznDP5ZBzwZEMuqmxpDIV+BcVvQDG8=";
};
nativeBuildInputs = [makeWrapper];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin

View file

@ -1,25 +1,25 @@
{
lib,
stdenvNoCC,
makeWrapper,
libnotify,
rofi-wayland,
tmux,
kitty,
imagemagick,
hyprland,
swww,
jq,
curl,
ytfzf,
libsecret,
{ lib
, stdenvNoCC
, makeWrapper
, libnotify
, rofi-wayland
, tmux
, kitty
, imagemagick
, hyprland
, swww
, jq
, curl
, ytfzf
, libsecret
,
}:
stdenvNoCC.mkDerivation {
pname = "scripts";
version = "1.0";
src = ./.;
nativeBuildInputs = [makeWrapper];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin