1: Formatted nix files
This commit is contained in:
parent
73f3095c31
commit
cc66e0c2c5
10
flake.nix
10
flake.nix
@ -74,9 +74,9 @@
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
@ -85,7 +85,7 @@
|
||||
imports = [
|
||||
./hosts/precision-5530/home/home.nix
|
||||
nixvim.homeManagerModules.nixvim
|
||||
walker.homeManagerModules.default
|
||||
walker.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
}
|
||||
@ -97,7 +97,7 @@
|
||||
nixos-cli.nixosModules.nixos-cli
|
||||
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
|
||||
|
||||
./hosts/precision-5530/system
|
||||
];
|
||||
};
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
unzip
|
||||
|
||||
# IDE
|
||||
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ])
|
||||
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate ["github-copilot"])
|
||||
jetbrains.rider
|
||||
|
||||
# nix language server
|
||||
|
||||
@ -19,6 +19,5 @@
|
||||
fastfetch
|
||||
|
||||
lmstudio
|
||||
|
||||
];
|
||||
];
|
||||
}
|
||||
|
||||
@ -10,29 +10,29 @@
|
||||
# Enable Grub and set required parameters to make system bootable
|
||||
boot.loader.grub = {
|
||||
enable = false;
|
||||
# efiSupport = true;
|
||||
# device = "nodev";
|
||||
#
|
||||
# # This does not work for some reason
|
||||
# gfxmodeEfi = "1920x1080";
|
||||
# gfxmodeBios = "1920x1080";
|
||||
#
|
||||
# # Enable the Minecraft world selection screen theme
|
||||
# minegrub-world-sel = {
|
||||
# enable = true;
|
||||
# customIcons = [
|
||||
# {
|
||||
# name = "nixos";
|
||||
# lineTop = "NixOS Vicuna (24/11/2024, 1:23)";
|
||||
# lineBottom = "Survival Mode, No Cheats, Version: 24.11";
|
||||
# # Icon: you can use an icon from the remote repo, or load from a local file
|
||||
# imgName = "nixLogo";
|
||||
# customImg = builtins.path {
|
||||
# path = ./nixLogo.png;
|
||||
# name = "nixLogo";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# efiSupport = true;
|
||||
# device = "nodev";
|
||||
#
|
||||
# # This does not work for some reason
|
||||
# gfxmodeEfi = "1920x1080";
|
||||
# gfxmodeBios = "1920x1080";
|
||||
#
|
||||
# # Enable the Minecraft world selection screen theme
|
||||
# minegrub-world-sel = {
|
||||
# enable = true;
|
||||
# customIcons = [
|
||||
# {
|
||||
# name = "nixos";
|
||||
# lineTop = "NixOS Vicuna (24/11/2024, 1:23)";
|
||||
# lineBottom = "Survival Mode, No Cheats, Version: 24.11";
|
||||
# # Icon: you can use an icon from the remote repo, or load from a local file
|
||||
# imgName = "nixLogo";
|
||||
# customImg = builtins.path {
|
||||
# path = ./nixLogo.png;
|
||||
# name = "nixLogo";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
# Enable OpenGL
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
# extraPackages = with pkgs; [
|
||||
# intel-media-sdk
|
||||
# intel-ocl
|
||||
# intel-compute-runtime
|
||||
# ];
|
||||
# extraPackages = with pkgs; [
|
||||
# intel-media-sdk
|
||||
# intel-ocl
|
||||
# intel-compute-runtime
|
||||
# ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
@ -1,42 +1,46 @@
|
||||
# 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, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-intel"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/937e3ce3-554d-4249-b1b0-1d4c0dcf568c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/937e3ce3-554d-4249-b1b0-1d4c0dcf568c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-1335075f-fce0-4057-964d-b30cca308aef".device = "/dev/disk/by-uuid/1335075f-fce0-4057-964d-b30cca308aef";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/0C95-0FAD";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/23c2d8c2-21f7-4c92-be68-23eb2f689e30"; }
|
||||
];
|
||||
|
||||
# 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
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp59s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/0C95-0FAD";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077"];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/23c2d8c2-21f7-4c92-be68-23eb2f689e30";}
|
||||
];
|
||||
|
||||
# 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
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp59s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
||||
@ -15,5 +15,4 @@
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
nerd-fonts.caskaydia-cove
|
||||
nerd-fonts._3270
|
||||
nerd-fonts.departure-mono
|
||||
nerd-fonts.jetbrains-mono
|
||||
nerd-fonts.caskaydia-cove
|
||||
nerd-fonts._3270
|
||||
nerd-fonts.departure-mono
|
||||
];
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [pkgs.hplip pkgs.hplipWithPlugin];
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
users.users.uzair = {
|
||||
isNormalUser = true;
|
||||
description = "Uzair Mohammed";
|
||||
extraGroups = ["networkmanager" "wheel" "docker" ];
|
||||
extraGroups = ["networkmanager" "wheel" "docker"];
|
||||
};
|
||||
}
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
{pkgs, inputs, ...}: {
|
||||
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# Nix flake Cachix stuff
|
||||
nix.settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
networking.hostName = "precision-5530"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user