repo: clean code

This commit is contained in:
Anthony Rodriguez 2024-09-25 09:02:43 +02:00
parent 9af73f65f4
commit 87eff73b58
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
22 changed files with 121 additions and 113 deletions

View file

@ -1,3 +1,3 @@
{...}: {
_: {
services.udiskie.enable = true;
}

View file

@ -1,6 +1,8 @@
{inputs, ...}: {
home.username = "nezia";
home.homeDirectory = "/home/nezia";
_: {
home = {
username = "nezia";
homeDirectory = "/home/nezia";
stateVersion = "24.05";
};
programs.home-manager.enable = true;
home.stateVersion = "24.05";
}

View file

@ -1,4 +1,4 @@
{...}: {
_: {
xdg.mimeApps = {
enable = true;
defaultApplications = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.git = {
enable = true;
userName = "Anthony Rodriguez";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.gpg = {
enable = true;
publicKeys = [

View file

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

View file

@ -20,7 +20,7 @@ in {
plugins = [
{
name = "fzf";
src = pkgs.fishPlugins.fzf.src;
inherit (pkgs.fishPlugins.fzf) src;
}
];
};

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.zoxide = {
enable = true;
enableBashIntegration = false;

View file

@ -4,9 +4,10 @@ _: {
./syncthing
./sops.nix
];
modules.gnome.enable = true;
modules.stylix.enable = true;
modules.docker.enable = true;
modules.pipewire.enable = true;
modules = {
gnome.enable = true;
stylix.enable = true;
docker.enable = true;
pipewire.enable = true;
};
}

View file

@ -3,10 +3,12 @@
username,
...
}: {
sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/${username}/.config/sops/age/keys.txt";
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/${username}/.config/sops/age/keys.txt";
sops.secrets."syncthing/${hostname}/key" = {};
sops.secrets."syncthing/${hostname}/cert" = {};
secrets."syncthing/${hostname}/key" = {};
secrets."syncthing/${hostname}/cert" = {};
};
}

View file

@ -1,4 +1,4 @@
{...}: {
_: {
boot = {
loader = {
timeout = 0;

View file

@ -1,10 +1,16 @@
{hostname, ...}: {
networking.hostName = hostname;
networking.networkmanager.enable = true;
services = {
xserver.xkb = {
layout = "us";
variant = "";
};
services.xserver.xkb = {
layout = "us";
variant = "";
# automount
udisks2.enable = true;
fwupd.enable = true;
};
users.users.nezia = {
@ -16,11 +22,6 @@
];
};
# automount
services.udisks2.enable = true;
services.fwupd.enable = true;
nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
# Set your time zone.
time.timeZone = "Europe/Paris";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
# fix direnv integration with fish
environment.pathsToLink = ["/share/fish"];

View file

@ -1,18 +1,24 @@
{pkgs, ...}: {
# setup printing service
services.printing.enable = true;
services = {
# setup printing service
printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
printing.drivers = [
pkgs.gutenprint
pkgs.hplip
];
udev.packages = [
pkgs.sane-airscan
pkgs.utsushi
];
};
services.printing.drivers = [
pkgs.gutenprint
pkgs.hplip
];
hardware.sane.enable = true; # enables support for SANE scanners
hardware.sane.extraBackends = [
pkgs.sane-airscan # generic
@ -20,8 +26,4 @@
pkgs.epkowa # Epson
pkgs.utsushi # other printers
];
services.udev.packages = [
pkgs.sane-airscan
pkgs.utsushi
];
}

View file

@ -4,25 +4,25 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
boot = {
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
initrd.kernelModules = [];
kernelModules = ["kvm-amd"];
extraModulePackages = [];
};
fileSystems."/" = {
device = "/dev/disk/by-label/NIXROOT";

View file

@ -3,17 +3,18 @@
./hardware-configuration.nix
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
];
services.fprintd.enable = true;
services.power-profiles-daemon.enable = true;
services.keyd = {
enable = true;
keyboards = {
default = {
ids = ["*"];
settings = {
main = {
capslock = "overload(control, esc)";
services = {
fprintd.enable = true;
power-profiles-daemon.enable = true;
keyd = {
enable = true;
keyboards = {
default = {
ids = ["*"];
settings = {
main = {
capslock = "overload(control, esc)";
};
};
};
};

View file

@ -4,31 +4,33 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [
"amdgpu"
"dm-snapshot"
];
boot.kernelModules = [
"kvm-amd"
"cryptd"
];
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/39d0e0c6-ea32-4ee4-ac76-b28fbff687f8";
boot.extraModulePackages = [];
boot = {
initrd = {
availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
kernelModules = [
"amdgpu"
"dm-snapshot"
];
luks.devices."crypt".device = "/dev/disk/by-uuid/39d0e0c6-ea32-4ee4-ac76-b28fbff687f8";
};
kernelModules = [
"kvm-amd"
"cryptd"
];
extraModulePackages = [];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/4ef04567-9633-45b9-addc-55c3020f45b7";

View file

@ -27,26 +27,24 @@ in {
};
};
environment.gnome.excludePackages = (
with pkgs; [
gnome-console
gnome-photos
gnome-tour
gnome-software
iagno
hitori
atomix
gnome-contacts
gnome-initial-setup
gnome-music
gedit
cheese
tali
epiphany
geary
yelp
]
);
environment.gnome.excludePackages = with pkgs; [
gnome-console
gnome-photos
gnome-tour
gnome-software
iagno
hitori
atomix
gnome-contacts
gnome-initial-setup
gnome-music
gedit
cheese
tali
epiphany
geary
yelp
];
environment.systemPackages = with pkgs; [
gnome-tweaks

View file

@ -1,7 +1,6 @@
{
config,
lib,
inputs,
username,
...
}: let