config,
pkgs,
...
-}:
-{
+}: {
services.pipewire = {
enable = true;
audio.enable = true;
systemd.user.services.mpd = {
description = "Music Player Daemon";
- wantedBy = [ "default.target" ];
+ wantedBy = ["default.target"];
serviceConfig = {
ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon /home/andrew/.config/mpd/mpd.conf";
Restart = "on-failure";
users.users.nginx.extraGroups = ["git"];
systemd.services.nginx.serviceConfig = {
SupplementaryGroups = ["git"];
- ReadOnlyPaths = ["/srv/git" "/srv"];
- InaccessiblePaths = ["/srv/git/.ssh" "/srv/git/migrate_from_gh.sh" "/srv/git/make_new_repo.sh"];
+ ReadOnlyPaths = [
+ "/srv/git"
+ "/srv"
+ ];
+ InaccessiblePaths = [
+ "/srv/git/.ssh"
+ "/srv/git/migrate_from_gh.sh"
+ "/srv/git/make_new_repo.sh"
+ ];
};
# systemd.services.fcgiwrap.serviceConfig.ReadOnlyPaths = ["/srv/git"];
# Define a user account. Don't forget to set a password with ‘passwd’.
home = "/srv/git";
createHome = true;
homeMode = "755";
- openssh.authorizedKeys.keyFiles = [../../pubkeys/desktop_ssh.pub ../../pubkeys/homelab_ssh.pub ../../pubkeys/laptop_ssh.pub];
+ openssh.authorizedKeys.keyFiles = [
+ ../../pubkeys/desktop_ssh.pub
+ ../../pubkeys/homelab_ssh.pub
+ ../../pubkeys/laptop_ssh.pub
+ ];
};
};
fileSystems."/srv/data" = {
device = "/dev/disk/by-uuid/9014f510-b08e-488f-8c43-20a4ac7f15cc";
fsType = "ext4";
- options = ["defaults" "nofail"];
+ options = [
+ "defaults"
+ "nofail"
+ ];
};
networking.hostName = "icon";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
};
# Open ports in the firewall.
- networking.firewall.allowedTCPPorts = [9418 8080 6667 2049]; # git, gitweb, irc, nfs
+ networking.firewall.allowedTCPPorts = [
+ 9418
+ 8080
+ 6667
+ 2049
+ ]; # git, gitweb, irc, nfs
networking.firewall.allowedUDPPorts = [55555]; # wireguard
# Or disable the firewall altogether.
# networking.firewall.enable = false;
pkgs,
modulesPath,
...
-}:
-
-{
+}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
"usbhid"
"sd_mod"
];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = ["kvm-intel"];
+ boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/2e969677-74d5-4c22-a708-fa27ba11f2f9";
};
swapDevices = [
- { device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae"; }
+ {device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae";}
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
pkgs,
modulesPath,
...
-}:
-
-{
+}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
"usb_storage"
"sd_mod"
];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-amd" ];
- boot.extraModulePackages = [ ];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = ["kvm-amd"];
+ boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a0aa3a6b-4970-4c7d-b793-57561ed4ae03";
};
swapDevices = [
- { device = "/dev/disk/by-uuid/1efeebba-c2ce-4ab9-87d6-e986933d7678"; }
+ {device = "/dev/disk/by-uuid/1efeebba-c2ce-4ab9-87d6-e986933d7678";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
fastfetch
pamixer
gcc
+ alejandra
];
fonts = {
-{ config, pkgs, ... }:
{
-
+ config,
+ pkgs,
+ ...
+}: {
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
enable = true;
package = pkgs.i3lock-color;
};
- security.pam.services.betterlockscreen = { };
+ security.pam.services.betterlockscreen = {};
services.xserver = {
xautolock = {
enable = true;
locker = "${pkgs.betterlockscreen}/bin/betterlockscreen -l dimblur";
};
};
-
}
-{ ... }:
-[
+{...}: [
# Top Pickers & Explorer
{
key = "<leader><space>";
-{ pkgs, ... }:
-{
+{pkgs, ...}: {
config.vim = {
# core
syntaxHighlighting = true;
enable = true;
format = {
enable = true;
- type = [ "alejandra" ];
+ type = ["alejandra"];
};
lsp = {
enable = true;
- servers = [ "nixd" ];
+ servers = ["nixd"];
};
treesitter.enable = true;
};
autopairs.nvim-autopairs.enable = true;
# keymaps
- keymaps = import ./keymaps.nix { };
+ keymaps = import ./keymaps.nix {};
# tools
extraPackages = with pkgs; [
-{ pkgs, inputs, ... }:
{
+ pkgs,
+ inputs,
+ ...
+}: {
nixpkgs.overlays = [
(final: prev: {
- lock-screen = import ./scripts/lock-screen.nix { pkgs = prev; };
+ lock-screen = import ./scripts/lock-screen.nix {pkgs = prev;};
})
(final: prev: {
- scrolling-title = import ./scripts/scrolling-title.nix { pkgs = prev; };
+ scrolling-title = import ./scripts/scrolling-title.nix {pkgs = prev;};
})
(final: prev: {
- surf_search = import ./scripts/surf_search.nix { pkgs = prev; };
+ surf_search = import ./scripts/surf_search.nix {pkgs = prev;};
})
(final: prev: {
-{ pkgs }:
+{pkgs}:
pkgs.writeShellApplication {
name = "lock-screen";
- runtimeInputs = [ pkgs.betterlockscreen ];
+ runtimeInputs = [pkgs.betterlockscreen];
text = ''
- if [ ! -f "$HOME/.cache/betterlockscreen/current/lock_dimblur.png" ]; then
- betterlockscreen -u "$HOME/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg" --fx dimblur
- fi
+ if [ ! -f "$HOME/.cache/betterlockscreen/current/lock_dimblur.png" ]; then
+ betterlockscreen -u "$HOME/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg" --fx dimblur
+ fi
- betterlockscreen -l dimblur
- '';
+ betterlockscreen -l dimblur
+ '';
}
-{ pkgs }:
+{pkgs}:
pkgs.writeShellApplication {
name = "scrolling-title";
runtimeInputs = with pkgs; [
];
text = ''
WIDTH=20
- PADDING=" "
+ PADDING=" "
RAW_STR=$(mpc current)
fi
STR="$RAW_STR$PADDING"
- LEN=''${#STR}
+ LEN=''${#STR}
T=$(date +%s)
INDEX=$(( T % LEN ))
-{ pkgs }:
+{pkgs}:
pkgs.writeShellApplication {
name = "surf_search";
runtimeInputs = with pkgs; [
-{ config, pkgs, ... }:
{
+ config,
+ pkgs,
+ ...
+}: {
programs.bash = {
enable = true;
interactiveShellInit = ''
shellAliases = {
nix-sw = "sudo nixos-rebuild switch --flake .";
nix-upd-sl = "sudo nix flake update my-slstatus my-dwm my-surf my-st my-dmenu";
-
};
};
{
config,
pkgs,
-
customNeovim,
...
-}:
-{
-
+}: {
environment.systemPackages = with pkgs; [
(lib.lowPrio pkgs.vim-full) # Lower Vim's priority
(pkgs.writeShellApplication {
name = "vi";
- runtimeInputs = [ pkgs.nvi ];
+ runtimeInputs = [pkgs.nvi];
text = ''
exec ${pkgs.nvi}/bin/vi "$@"
'';
# '';
# };
# };
-
}
-{ config, pkgs, ... }:
{
+ config,
+ pkgs,
+ ...
+}: {
services.displayManager.ly = {
enable = true;
settings = {
bigclock = "en";
bigclock_seconds = true;
};
-
};
services.dunst = {
displayManager = {
setupCommands = "";
sessionCommands = ''
- #!/bin/sh
- ${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360
- ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/andrew/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg'
+ #!/bin/sh
+ ${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360
+ ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/andrew/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg'
'';
};
xkb = {
ExecStart = "${pkgs.sxhkd}/bin/sxhkd";
Restart = "on-failure";
};
- wantedBy = [ "graphical-session.target" ];
+ wantedBy = ["graphical-session.target"];
};
systemd.user.services.slstatus = {
description = "slstatus bar";
- wantedBy = [ "graphical-session.target" ];
+ wantedBy = ["graphical-session.target"];
path = with pkgs; [
pamixer