Archived
0
0
Fork 0

run nix fmt

This commit is contained in:
Daryl Ronningen 2023-01-01 23:09:38 -08:00
parent e3368738e7
commit 3790812dbe
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
15 changed files with 423 additions and 424 deletions

View file

@ -1,5 +1,3 @@
{...}: {...}: {
{
services.flatpak.enable = true; services.flatpak.enable = true;
} }

View file

@ -1,6 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl.extraPackages = with pkgs; [
intel-compute-runtime intel-compute-runtime
mesa_drivers mesa_drivers

View file

@ -1,10 +1,8 @@
{ pkgs, ... }: {pkgs, ...}: {
{
fonts = { fonts = {
enableDefaultFonts = true; enableDefaultFonts = true;
enableGhostscriptFonts = true; enableGhostscriptFonts = true;
fontDir.enable = true; fontDir.enable = true;
fonts = [ pkgs.nerdfonts ]; fonts = [pkgs.nerdfonts];
}; };
} }

View file

@ -1,6 +1,4 @@
{...}: {...}: {
{
services = { services = {
xserver = { xserver = {
desktopManager.gnome.enable = true; desktopManager.gnome.enable = true;

View file

@ -1,6 +1,4 @@
{ ... }: {...}: {
{
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;

View file

@ -1,9 +1,7 @@
{ pkgs, ... }: {pkgs, ...}: {
{
services.xserver = { services.xserver = {
enable = true; enable = true;
autorun = true; autorun = true;
excludePackages = [ pkgs.xterm ]; excludePackages = [pkgs.xterm];
}; };
} }

View file

@ -1,5 +1,3 @@
{...}: {...}: {
{
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
} }

View file

@ -13,4 +13,3 @@
''; '';
}; };
} }

View file

@ -1,10 +1,8 @@
{ pkgs, ... }: {pkgs, ...}: {
{
users.users.relms = { users.users.relms = {
isNormalUser = true; isNormalUser = true;
description = "Daryl Ronningen"; description = "Daryl Ronningen";
extraGroups = [ "networkmanager" "wheel" "docker" "adbusers" ]; extraGroups = ["networkmanager" "wheel" "docker" "adbusers"];
shell = pkgs.fish; shell = pkgs.fish;
}; };

View file

@ -1,6 +1,4 @@
{pkgs, ...}: {pkgs, ...}: {
{
boot = { boot = {
loader = { loader = {
grub = { grub = {

View file

@ -1,21 +1,24 @@
{ config, pkgs, lib, ... }:
{ {
config,
pkgs,
lib,
...
}: {
networking.hostName = "skynet"; networking.hostName = "skynet";
services.fprintd.enable = true; services.fprintd.enable = true;
systemd.services.fprintd = { systemd.services.fprintd = {
wantedBy = [ "multi-user.target" ]; wantedBy = ["multi-user.target"];
serviceConfig.Type = "simple"; serviceConfig.Type = "simple";
}; };
services.fwupd.enable = true; services.fwupd.enable = true;
services.fwupd.enableTestRemote = true; services.fwupd.enableTestRemote = true;
services.fwupd.extraRemotes = [ "lvfs-testing" ]; services.fwupd.extraRemotes = ["lvfs-testing"];
environment.etc."fwupd/uefi_capsule.conf".text = lib.mkForce '' environment.etc."fwupd/uefi_capsule.conf".text = lib.mkForce ''
[uefi_capsule] [uefi_capsule]
DisableCapsuleUpdateOnDisk=true DisableCapsuleUpdateOnDisk=true
OverrideESPMountPoint=/boot/efi OverrideESPMountPoint=/boot/efi
''; '';
} }

View file

@ -1,14 +1,18 @@
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot = { boot = {
initrd = { initrd = {
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
kernelModules = []; kernelModules = [];
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = ["kvm-intel"];
extraModulePackages = []; extraModulePackages = [];
}; };
@ -23,7 +27,6 @@
}; };
}; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View file

@ -1,6 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
wsl = { wsl = {
enable = true; enable = true;
wslConf.automount.root = "/mnt"; wslConf.automount.root = "/mnt";

View file

@ -18,7 +18,16 @@
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs"; nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
nixos-wsl.inputs.flake-utils.follows = "utils"; nixos-wsl.inputs.flake-utils.follows = "utils";
}; };
outputs = { self, nixpkgs, utils, home-manager, neovim, nur, nixos-wsl, ... }: let outputs = {
self,
nixpkgs,
utils,
home-manager,
neovim,
nur,
nixos-wsl,
...
}: let
modules = { modules = {
home = [ home = [
./users/relms/home.nix ./users/relms/home.nix
@ -83,5 +92,7 @@
modules = modules.home; modules = modules.home;
}; };
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
}; };
} }

View file

@ -1,6 +1,9 @@
{ lib, config, pkgs, ... }:
{ {
lib,
config,
pkgs,
...
}: {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
home.username = "relms"; home.username = "relms";
@ -70,7 +73,7 @@
programs.starship.enableBashIntegration = true; programs.starship.enableBashIntegration = true;
programs.starship.settings = { programs.starship.settings = {
add_newline = true; add_newline = true;
format = lib.concatStrings [ "$username@$hostname" " " "$directory" " " "$all$character" ]; format = lib.concatStrings ["$username@$hostname" " " "$directory" " " "$all$character"];
right_format = "$cmd_duration"; right_format = "$cmd_duration";
directory = { directory = {
format = "[$path]($style)[$read_only]($read_only_style)"; format = "[$path]($style)[$read_only]($read_only_style)";