[feat] Add ironbar & Format everything with nixfmt

This commit is contained in:
uttarayan21
2024-02-18 05:45:40 +05:30
parent f6775ed1cf
commit a1d896fa39
20 changed files with 914 additions and 539 deletions

View File

@@ -1,7 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{pkgs, ...}: {
{ pkgs, ... }: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@@ -12,10 +12,11 @@
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "ryu"; # Define your hostname.
networking.nameservers = ["1.1.1.1" "8.8.8.8"];
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
services.udev.packages = [pkgs.yubikey-personalization pkgs.yubikey-personalization-gui];
services.udev.packages =
[ pkgs.yubikey-personalization pkgs.yubikey-personalization-gui ];
services.yubikey-agent.enable = true;
# Configure network proxy if necessary
@@ -28,9 +29,7 @@
# Set your time zone.
time.timeZone = "Asia/Kolkata";
i18n.supportedLocales = [
"en_US.UTF-8/UTF-8"
];
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
@@ -57,7 +56,7 @@
users.users.servius = {
isNormalUser = true;
description = "Uttarayan";
extraGroups = ["networkmanager" "wheel"];
extraGroups = [ "networkmanager" "wheel" ];
};
# Allow unfree packages
@@ -76,10 +75,11 @@
git
fish
nushellFull
(pkgs.wrapFirefox (pkgs.firefox-unwrapped.override {pipewireSupport = true;}) {})
(pkgs.wrapFirefox
(pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { })
gnumake
python3
(nerdfonts.override {fonts = ["FiraCode" "Hasklig"];})
(nerdfonts.override { fonts = [ "FiraCode" "Hasklig" ]; })
];
programs = {
@@ -123,4 +123,5 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
nix.settings.extra-experimental-features = "nix-command flakes";
nix.settings.trusted-users = [ "root" "servius" ];
}

View File

@@ -1,35 +1,25 @@
{
nixpkgs,
devices,
inputs,
overlays,
home-manager,
...
}:
builtins.listToAttrs
(builtins.map
(device: {
name = device.name;
value = nixpkgs.lib.nixosSystem {
system = device.system;
specialArgs = {inherit device;};
modules = [
{nixpkgs.overlays = overlays;}
./configuration.nix
home-manager.nixosModules.home-manager
{
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
inherit device;
};
users.${device.user}.imports = [../common/home.nix];
{ nixpkgs, devices, inputs, overlays, home-manager, ... }:
builtins.listToAttrs (builtins.map (device: {
name = device.name;
value = nixpkgs.lib.nixosSystem {
system = device.system;
specialArgs = { inherit device; };
modules = [
{ nixpkgs.overlays = overlays; }
./configuration.nix
home-manager.nixosModules.home-manager
{
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
inherit device;
};
}
];
};
})
devices)
users.${device.user}.imports = [ ../common/home.nix ];
};
}
];
};
}) devices)

View File

@@ -4,24 +4,23 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules =
[ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/bcaa8c53-6c04-43e0-bf2a-97d8c0f572d9";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/bcaa8c53-6c04-43e0-bf2a-97d8c0f572d9";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4E27-DAC0";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/4E27-DAC0";
fsType = "vfat";
};
swapDevices = [ ];
@@ -34,5 +33,6 @@
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}