repo: format with alejandra
This commit is contained in:
parent
9078b65d49
commit
8473772fe5
32 changed files with 79 additions and 135 deletions
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
services.udiskie.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
{inputs, ...}: {
|
||||
home.username = "nezia";
|
||||
home.homeDirectory = "/home/nezia";
|
||||
programs.home-manager.enable = true;
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"default-web-browser" = [ "firefox.desktop" ];
|
||||
"text/html" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/about" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
||||
"application/pdf" = [ "org.gnome.Evince.desktop" ];
|
||||
"audio/wav" = [ "rhythmbox" ];
|
||||
"default-web-browser" = ["firefox.desktop"];
|
||||
"text/html" = ["firefox.desktop"];
|
||||
"x-scheme-handler/http" = ["firefox.desktop"];
|
||||
"x-scheme-handler/https" = ["firefox.desktop"];
|
||||
"x-scheme-handler/about" = ["firefox.desktop"];
|
||||
"x-scheme-handler/unknown" = ["firefox.desktop"];
|
||||
"application/pdf" = ["org.gnome.Evince.desktop"];
|
||||
"audio/wav" = ["rhythmbox"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Anthony Rodriguez";
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
publicKeys = [
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.fzf.enable = true;
|
||||
programs.fastfetch.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
prefix = "C-space";
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
{pkgs, ...}: let
|
||||
catppuccin-fish = pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "fish";
|
||||
rev = "a3b9eb5eaf2171ba1359fe98f20d226c016568cf";
|
||||
hash = "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=";
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableTransience = true;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableBashIntegration = false;
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
protonup-qt
|
||||
bottles
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{ hostname, username, ... }:
|
||||
|
||||
{
|
||||
hostname,
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
sops.defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
sops.defaultSopsFormat = "yaml";
|
||||
sops.age.keyFile = "/home/${username}/.config/sops/age/keys.txt";
|
||||
|
||||
sops.secrets."syncthing/${hostname}/key" = { };
|
||||
sops.secrets."syncthing/${hostname}/cert" = { };
|
||||
sops.secrets."syncthing/${hostname}/key" = {};
|
||||
sops.secrets."syncthing/${hostname}/cert" = {};
|
||||
}
|
||||
|
|
|
@ -3,14 +3,11 @@
|
|||
username,
|
||||
hostname,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
}: let
|
||||
homeDir = "/home/${username}";
|
||||
devices = import ./devices.nix;
|
||||
otherDevices = builtins.removeAttrs devices [ hostname ];
|
||||
in
|
||||
{
|
||||
otherDevices = builtins.removeAttrs devices [hostname];
|
||||
in {
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# TODO: add to sops directly instead of relying on another nix file
|
||||
# TODO: add to sops directly instead of relying on another nix file
|
||||
{
|
||||
"vamos" = {
|
||||
id = "UO6JWVU-MTLZGVQ-Z3QAFYH-6PW2QR6-SBOVM6P-S6JXR2S-A7VYAU2-RLRXEQY";
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
boot = {
|
||||
loader = {
|
||||
timeout = 0;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ hostname, ... }:
|
||||
|
||||
{
|
||||
{hostname, ...}: {
|
||||
networking.hostName = hostname;
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
_: {
|
||||
|
||||
imports = [
|
||||
./core.nix
|
||||
./boot.nix
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
|
@ -18,5 +16,4 @@
|
|||
LC_TELEPHONE = "fr_CH.UTF-8";
|
||||
LC_TIME = "fr_CH.UTF-8";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
# fix direnv integration with fish
|
||||
environment.pathsToLink = [ "/share/fish" ];
|
||||
environment.pathsToLink = ["/share/fish"];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ username, ... }:
|
||||
|
||||
{
|
||||
{username, ...}: {
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
|
@ -10,5 +8,4 @@
|
|||
environment.sessionVariables = {
|
||||
FLAKE = "/home/${username}/.dotfiles";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
git
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
# setup printing service
|
||||
services.printing.enable = true;
|
||||
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
@ -22,9 +20,9 @@
|
|||
"usbhid"
|
||||
"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-label/NIXROOT";
|
||||
|
@ -40,7 +38,7 @@
|
|||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
swapDevices = [];
|
||||
|
||||
# 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
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
@ -30,7 +28,7 @@
|
|||
"cryptd"
|
||||
];
|
||||
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/39d0e0c6-ea32-4ee4-ac76-b28fbff687f8";
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/4ef04567-9633-45b9-addc-55c3020f45b7";
|
||||
|
@ -46,7 +44,7 @@
|
|||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
swapDevices = [];
|
||||
|
||||
# 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
|
||||
|
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.modules.docker;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.modules.docker.enable = lib.mkEnableOption "docker module";
|
||||
config = lib.mkIf cfg.enable {
|
||||
virtualisation.docker = {
|
||||
|
@ -17,6 +15,6 @@ in
|
|||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
users.users.${username}.extraGroups = [ "docker" ];
|
||||
users.users.${username}.extraGroups = ["docker"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,12 +4,10 @@
|
|||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.modules.gnome;
|
||||
stylixEnabled = config.modules.stylix.enable or false;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
modules.gnome = {
|
||||
enable = lib.mkEnableOption "Enable Gnome";
|
||||
|
@ -21,7 +19,7 @@ in
|
|||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome = {
|
||||
enable = true;
|
||||
extraGSettingsOverridePackages = [ pkgs.mutter ];
|
||||
extraGSettingsOverridePackages = [pkgs.mutter];
|
||||
extraGSettingsOverrides = ''
|
||||
[org.gnome.mutter]
|
||||
experimental-features=['scale-monitor-framebuffer']
|
||||
|
@ -30,8 +28,7 @@ in
|
|||
};
|
||||
|
||||
environment.gnome.excludePackages = (
|
||||
with pkgs;
|
||||
[
|
||||
with pkgs; [
|
||||
gnome-console
|
||||
gnome-photos
|
||||
gnome-tour
|
||||
|
@ -86,7 +83,7 @@ in
|
|||
];
|
||||
};
|
||||
"org/gnome/desktop/input-sources" = {
|
||||
xkb-options = [ "compose:ralt" ];
|
||||
xkb-options = ["compose:ralt"];
|
||||
};
|
||||
"org/gnome/desktop/interface" = {
|
||||
enable-hot-corners = false;
|
||||
|
@ -119,7 +116,6 @@ in
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
home.packages = with pkgs.gnomeExtensions; [
|
||||
appindicator
|
||||
|
|
|
@ -1,23 +1,24 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.modules.nvidia;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.nvidia;
|
||||
in {
|
||||
options = {
|
||||
modules.nvidia = {
|
||||
enable = lib.mkEnableOption "Enable the Nvidia module";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
hardware.nvidia = {
|
||||
|
||||
# Modesetting is required.
|
||||
modesetting.enable = true;
|
||||
|
||||
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||
# of just the bare essentials.
|
||||
powerManagement.enable = false;
|
||||
|
||||
|
@ -27,9 +28,9 @@ in
|
|||
|
||||
# Use the NVidia open source kernel module (not to be confused with the
|
||||
# independent third-party "nouveau" open source driver).
|
||||
# Support is limited to the Turing and later architectures. Full list of
|
||||
# supported GPUs is at:
|
||||
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||
# Support is limited to the Turing and later architectures. Full list of
|
||||
# supported GPUs is at:
|
||||
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||
# Only available from driver 515.43.04+
|
||||
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||
open = false;
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.modules.pipewire;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.pipewire;
|
||||
in {
|
||||
options.modules.pipewire.enable = lib.mkEnableOption "pipewire module";
|
||||
options.modules.pipewire.latencyFix.enable = lib.mkEnableOption "enable latency fixes";
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -22,10 +23,9 @@ in
|
|||
services.pipewire.extraConfig.pipewire."92-low-latency" = lib.mkIf cfg.latencyFix.enable {
|
||||
"context.properties" = {
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.allowed-rates" = [ 48000 ];
|
||||
"default.clock.allowed-rates" = [48000];
|
||||
"default.clock.quantum" = 2048;
|
||||
"default.clock.min-quantum" = 1024;
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,11 +3,9 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.modules.stylix;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
modules.stylix = {
|
||||
enable = lib.mkEnableOption "Enable the stylix module";
|
||||
|
@ -33,7 +31,7 @@ in
|
|||
name = "Noto Sans";
|
||||
};
|
||||
monospace = lib.mkDefault {
|
||||
package = pkgs.nerdfonts.override { fonts = [ "IntelOneMono" ]; };
|
||||
package = pkgs.nerdfonts.override {fonts = ["IntelOneMono"];};
|
||||
name = "IntoneMono Nerd Font";
|
||||
};
|
||||
emoji = {
|
||||
|
|
|
@ -4,11 +4,9 @@
|
|||
inputs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
cfg = config.modules.wezterm;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options = {
|
||||
modules.wezterm = {
|
||||
enable = lib.mkEnableOption "enable wezterm";
|
||||
|
|
Loading…
Reference in a new issue