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;
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,21 +1,24 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}: {
networking.hostName = "skynet";
services.fprintd.enable = true;
systemd.services.fprintd = {
wantedBy = [ "multi-user.target" ];
wantedBy = ["multi-user.target"];
serviceConfig.Type = "simple";
};
services.fwupd.enable = true;
services.fwupd.enableTestRemote = true;
services.fwupd.extraRemotes = [ "lvfs-testing" ];
services.fwupd.extraRemotes = ["lvfs-testing"];
environment.etc."fwupd/uefi_capsule.conf".text = lib.mkForce ''
[uefi_capsule]
DisableCapsuleUpdateOnDisk=true
OverrideESPMountPoint=/boot/efi
[uefi_capsule]
DisableCapsuleUpdateOnDisk=true
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 = {
initrd = {
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
kernelModules = [];
};
kernelModules = [ "kvm-intel" ];
kernelModules = ["kvm-intel"];
extraModulePackages = [];
};
@ -23,7 +27,6 @@
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View file

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

View file

@ -18,7 +18,16 @@
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
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 = {
home = [
./users/relms/home.nix
@ -83,5 +92,7 @@
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
# paths it should manage.
home.username = "relms";
@ -70,7 +73,7 @@
programs.starship.enableBashIntegration = true;
programs.starship.settings = {
add_newline = true;
format = lib.concatStrings [ "$username@$hostname" " " "$directory" " " "$all$character" ];
format = lib.concatStrings ["$username@$hostname" " " "$directory" " " "$all$character"];
right_format = "$cmd_duration";
directory = {
format = "[$path]($style)[$read_only]($read_only_style)";