- Formatted everything using Alejandra
- Added 'ncli format' as a quick command to format everything
This commit is contained in:
@ -3,17 +3,25 @@
|
||||
#nmcli device wifi connect <ssid> password <password>
|
||||
# or if no password (open wifi)
|
||||
#nmcli device wifi connect <ssid>
|
||||
|
||||
{ inputs, config, pkgs, lib, username, project, host, version, system, ... }:
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
username,
|
||||
project,
|
||||
host,
|
||||
version,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
#Assign Swap to the PC
|
||||
#swapDevices = [{
|
||||
# device = "/swapfile";
|
||||
# size = 16 * 1024; # 16GB
|
||||
#}];
|
||||
|
||||
imports =
|
||||
[
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.grub2-themes.nixosModules.default
|
||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||
@ -28,10 +36,10 @@
|
||||
|
||||
# Bootloader.
|
||||
boot = {
|
||||
kernelParams = [ "quiet" "splash" ];
|
||||
kernelParams = ["quiet" "splash"];
|
||||
initrd = {
|
||||
verbose = false;
|
||||
kernelModules = [ "amdgpu" ];
|
||||
kernelModules = ["amdgpu"];
|
||||
};
|
||||
loader = {
|
||||
systemd-boot.enable = false;
|
||||
@ -40,7 +48,7 @@
|
||||
|
||||
grub = {
|
||||
enable = true;
|
||||
device = "/dev/nvme0n1"; #Needs to be changed when using a new computer! (Make grub partition - look below!)
|
||||
device = "/dev/nvme0n1"; #Needs to be changed when using a new computer! (Make grub partition - look below!)
|
||||
#devices = [ "nodev" ];
|
||||
efiSupport = true;
|
||||
useOSProber = true;
|
||||
@ -48,22 +56,21 @@
|
||||
};
|
||||
|
||||
grub2-theme = {
|
||||
enable = true;
|
||||
theme = "whitesur";
|
||||
footer = true;
|
||||
enable = true;
|
||||
theme = "whitesur";
|
||||
footer = true;
|
||||
};
|
||||
|
||||
timeout = 10;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#Ensure there is a grub_bios partition: (gparted)
|
||||
#Create a new parititon. File System: Unformatted - Size: ~5 Mib
|
||||
#Apply
|
||||
#Manage flags -> Add bios_grub
|
||||
|
||||
networking = {
|
||||
|
||||
# Enable networking
|
||||
networkmanager.enable = true;
|
||||
|
||||
@ -90,9 +97,9 @@
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${username} = ./home.nix;
|
||||
backupFileExtension = "backup"; # Automatically backs up conflicting files during activation
|
||||
extraSpecialArgs = { inherit inputs username project version system host; };
|
||||
sharedModules = [ inputs.plasma-manager.homeModules.plasma-manager ];
|
||||
backupFileExtension = "backup"; # Automatically backs up conflicting files during activation
|
||||
extraSpecialArgs = {inherit inputs username project version system host;};
|
||||
sharedModules = [inputs.plasma-manager.homeModules.plasma-manager];
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
@ -112,7 +119,7 @@
|
||||
LC_TELEPHONE = "de_DE.UTF-8";
|
||||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
|
||||
|
||||
# List services that you want to enable:
|
||||
services = {
|
||||
ollama = {
|
||||
@ -134,8 +141,8 @@
|
||||
fprintd.enable = true;
|
||||
fprintd.tod.enable = true;
|
||||
fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
|
||||
|
||||
fwupd.enable = true; #Allows BIOS updates
|
||||
|
||||
fwupd.enable = true; #Allows BIOS updates
|
||||
|
||||
locate = {
|
||||
enable = true;
|
||||
@ -146,8 +153,8 @@
|
||||
enable = true;
|
||||
useRoutingFeatures = "client";
|
||||
extraSetFlags = [
|
||||
"--operator=${username}"
|
||||
"--accept-routes"
|
||||
"--operator=${username}"
|
||||
"--accept-routes"
|
||||
];
|
||||
};
|
||||
|
||||
@ -165,8 +172,8 @@
|
||||
"10-bluez-monitor.properties" = {
|
||||
"bluez5.msbc-support" = false;
|
||||
"bluez5.hfphsp-support" = false;
|
||||
"bluez5.hfphsp-backend" = "none"; # Key addition: no backend
|
||||
"bluez5.roles" = [ "a2dp_sink" ];
|
||||
"bluez5.hfphsp-backend" = "none"; # Key addition: no backend
|
||||
"bluez5.roles" = ["a2dp_sink"];
|
||||
};
|
||||
"11-bluetooth-policy" = {
|
||||
"wireplumber.settings" = {
|
||||
@ -175,16 +182,16 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#Enable CUPS to print documents.
|
||||
printing.enable = true;
|
||||
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
openssh.enable = true;
|
||||
};
|
||||
|
||||
systemd.services.fprintd = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig.Type = "simple";
|
||||
};
|
||||
|
||||
@ -201,11 +208,11 @@
|
||||
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
|
||||
|
||||
defaultFonts = {
|
||||
monospace = [ "JetBrainsMono Nerd Font" "MesloLGS NF" ];
|
||||
sansSerif = [ "Inter" "Noto Sans" ];
|
||||
serif = [ "Noto Serif" ];
|
||||
monospace = ["JetBrainsMono Nerd Font" "MesloLGS NF"];
|
||||
sansSerif = ["Inter" "Noto Sans"];
|
||||
serif = ["Noto Serif"];
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -267,7 +274,7 @@
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "Cookiez";
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||
extraGroups = ["networkmanager" "wheel" "docker"];
|
||||
packages = with pkgs; [
|
||||
#User Packages Here
|
||||
];
|
||||
@ -296,7 +303,7 @@
|
||||
};
|
||||
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1"; #For chromium to work under wayland and with virtual Keyboards (Only really needed for virtual keyboards, but doest hurt ...)
|
||||
NIXOS_OZONE_WL = "1"; #For chromium to work under wayland and with virtual Keyboards (Only really needed for virtual keyboards, but doest hurt ...)
|
||||
TERMINAL = "kitty";
|
||||
};
|
||||
};
|
||||
@ -306,20 +313,20 @@
|
||||
sudo.wheelNeedsPassword = false;
|
||||
|
||||
pam.services = {
|
||||
sddm.fprintAuth = false; #Because of the bug with 30 seconds on sddm login
|
||||
sddm-autologin.fprintAuth = false; #Same as above
|
||||
sddm.fprintAuth = false; #Because of the bug with 30 seconds on sddm login
|
||||
sddm-autologin.fprintAuth = false; #Same as above
|
||||
login.fprintAuth = false;
|
||||
sudo.fprintAuth = false; #Disabled because of security risk: https://nvd.nist.gov/vuln/detail/cve-2024-37408
|
||||
sudo.fprintAuth = false; #Disabled because of security risk: https://nvd.nist.gov/vuln/detail/cve-2024-37408
|
||||
kscreenlocker.fprintAuth = true;
|
||||
polkit-1.fprintAuth = false; #Disabled because of security risk: https://nvd.nist.gov/vuln/detail/cve-2024-37408
|
||||
polkit-1.fprintAuth = false; #Disabled because of security risk: https://nvd.nist.gov/vuln/detail/cve-2024-37408
|
||||
kde.fprintAuth = false;
|
||||
hyprlock = {};
|
||||
};
|
||||
};
|
||||
|
||||
#Allow Nix Commands
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user