chore: run fmt

This commit is contained in:
installer
2025-02-06 18:25:39 +01:00
parent 9600761c92
commit 75281a05ea
20 changed files with 380 additions and 272 deletions

View File

@@ -1,11 +1,15 @@
{ config, pkgs, inputs, ... }:
{
config,
pkgs,
inputs,
...
}:
{
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
imports = [
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
# Bootloader.
boot = {
@@ -22,19 +26,31 @@
fileSystems."/mnt/apps" = {
device = "/dev/disk/by-label/Apps";
fsType = "ntfs-3g";
options = [ "rw" "uid=1000" ];
options = [
"rw"
"uid=1000"
];
};
fileSystems."/mnt/photos" = {
device = "/dev/disk/by-label/Photos";
fsType = "ntfs-3g";
options = [ "rw" "uid=1000" ];
options = [
"rw"
"uid=1000"
];
};
fileSystems."/mnt/ext" = {
device = "/dev/disk/by-label/Externe";
fsType = "ntfs-3g";
options = [ "auto" "nofail" "noatime" "rw" "uid=1000" ];
options = [
"auto"
"nofail"
"noatime"
"rw"
"uid=1000"
];
};
networking.hostName = "arcueid"; # Define your hostname.
@@ -42,13 +58,17 @@
nix = {
settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
experimental-features = [
"nix-command"
"flakes"
];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
};
time.timeZone = "Europe/Paris";
@@ -78,13 +98,17 @@
security = {
rtkit.enable = true;
sudo.extraRules = [{
users = [ "yoru" ];
commands = [{
command = "ALL";
options = [ "NOPASSWD" ];
}];
}];
sudo.extraRules = [
{
users = [ "yoru" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
};
services = {
@@ -118,9 +142,11 @@
shell = pkgs.fish;
isNormalUser = true;
description = "Yoru";
extraGroups = [ "networkmanager" "wheel" "scanner" "lp"];
packages = with pkgs; [
extraGroups = [
"networkmanager"
"wheel"
"scanner"
"lp"
];
};
home-manager = {

View File

@@ -1,26 +1,41 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "xhci_pci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules = [
"ehci_pci"
"ahci"
"xhci_pci"
"firewire_ohci"
"usb_storage"
"usbhid"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/78a2cf35-4b53-4277-9742-f3077e7d5b32";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/78a2cf35-4b53-4277-9742-f3077e7d5b32";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/59dd4af7-bb20-4b88-82fe-97010227bd06"; }
];
swapDevices = [
{ device = "/dev/disk/by-uuid/59dd4af7-bb20-4b88-82fe-97010227bd06"; }
];
# 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

View File

@@ -1,4 +1,10 @@
{ config, pkgs, lib, outputs, ... }:
{
config,
pkgs,
lib,
outputs,
...
}:
{
home.username = "yoru";