chore: run fmt
This commit is contained in:
@@ -14,12 +14,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
disko,
|
||||
...
|
||||
}@inputs: let
|
||||
}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
@@ -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 = [{
|
||||
sudo.extraRules = [
|
||||
{
|
||||
users = [ "yoru" ];
|
||||
commands = [{
|
||||
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 = {
|
||||
|
||||
@@ -1,25 +1,40 @@
|
||||
# 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";
|
||||
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
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ config, pkgs, lib, outputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
outputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home.username = "yoru";
|
||||
|
||||
@@ -52,7 +52,10 @@
|
||||
nix = {
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
# gc = {
|
||||
# automatic = true;
|
||||
@@ -78,7 +81,11 @@
|
||||
xmorel = {
|
||||
shell = pkgs.fish;
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
];
|
||||
initialPassword = "toto";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBd3US4tUcbWZQgcVOtZIcbHF5mHwzJzygrQuE/pGde6"
|
||||
@@ -128,8 +135,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
||||
@@ -1,14 +1,23 @@
|
||||
# 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 = [ "nvme" "xhci_pci" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ config, pkgs, lib, outputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
outputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home.username = "xmorel";
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
myHome.dotfiles.enable = lib.mkEnableOption "enables dotfiles";
|
||||
};
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
cfg = config.myHome.helix;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
myHome.helix.enable = lib.mkEnableOption "enables helix";
|
||||
};
|
||||
@@ -39,7 +41,6 @@ in {
|
||||
# [language-server.rust-analyzer.config]
|
||||
# check.command = "clippy"
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
cfg = config.myHome.kitty;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
myHome.kitty.enable = lib.mkEnableOption "enables kitty";
|
||||
};
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
myHome.shell.enable = lib.mkEnableOption "enables shell stuff";
|
||||
};
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
myHome.waybar.enable = lib.mkEnableOption "enables waybar";
|
||||
};
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.cli-environment;
|
||||
@@ -29,6 +34,8 @@ in
|
||||
appimage-run
|
||||
nh
|
||||
openssl
|
||||
nixfmt-rfc-style
|
||||
nil
|
||||
];
|
||||
programs.fish.enable = true;
|
||||
};
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.desktop-apps;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.dev-environment;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.fonts;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.gaming;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.window-manager;
|
||||
|
||||
Reference in New Issue
Block a user