Updated
This commit is contained in:
parent
7573ab4ca0
commit
87b8c0d834
4 changed files with 59 additions and 103 deletions
|
|
@ -22,9 +22,12 @@ in
|
||||||
./modules/virtualization.nix
|
./modules/virtualization.nix
|
||||||
./modules/nvidia.nix
|
./modules/nvidia.nix
|
||||||
./modules/desktop.nix
|
./modules/desktop.nix
|
||||||
|
./modules/ld-fix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#░█▀▄░█▀█░█▀█░▀█▀░█░░░█▀█░█▀█░█▀▄░█▀▀░█▀▄
|
#░█▀▄░█▀█░█▀█░▀█▀░█░░░█▀█░█▀█░█▀▄░█▀▀░█▀▄
|
||||||
#░█▀▄░█░█░█░█░░█░░█░░░█░█░█▀█░█░█░█▀▀░█▀▄
|
#░█▀▄░█░█░█░█░░█░░█░░░█░█░█▀█░█░█░█▀▀░█▀▄
|
||||||
#░▀▀░░▀▀▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀
|
#░▀▀░░▀▀▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀
|
||||||
|
|
@ -34,6 +37,9 @@ in
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
|
||||||
|
'';
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
plymouth = {
|
plymouth = {
|
||||||
|
|
@ -43,6 +49,7 @@ in
|
||||||
# Enable "Silent Boot"
|
# Enable "Silent Boot"
|
||||||
consoleLogLevel = 0;
|
consoleLogLevel = 0;
|
||||||
initrd.verbose = false;
|
initrd.verbose = false;
|
||||||
|
kernelModules = ["i2c-dev"];
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"quiet"
|
"quiet"
|
||||||
"splash"
|
"splash"
|
||||||
|
|
@ -56,7 +63,7 @@ in
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
loader.timeout = 0;
|
loader.timeout = 0;
|
||||||
loader.systemd-boot.consoleMode = "max";
|
loader.systemd-boot.consoleMode = "auto";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -73,6 +80,7 @@ in
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
networking.firewall = { enable = false; };
|
||||||
|
|
||||||
|
|
||||||
#░█░░░█▀█░█▀▀░█▀█░█░░░█▀▀
|
#░█░░░█▀█░█▀▀░█▀█░█░░░█▀▀
|
||||||
|
|
@ -111,11 +119,12 @@ in
|
||||||
users.users.nicole = {
|
users.users.nicole = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Nicole";
|
description = "Nicole";
|
||||||
extraGroups = [ "networkmanager" "wheel" "libvrtd" "kvm" "qemu-libvirtd" ];
|
extraGroups = [ "networkmanager" "wheel" "libvrtd" "kvm" "qemu-libvirtd" "i2c"];
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stylix.enable = true;
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||||
|
|
||||||
|
|
||||||
#░█░█░█▀█░█▀▀░█▀▄░█▀▀░█▀▀
|
#░█░█░█▀█░█▀▀░█▀▄░█▀▀░█▀▀
|
||||||
|
|
@ -131,35 +140,14 @@ in
|
||||||
#░█░░░█░█░░░█▀▀░░█░░▄▀▄
|
#░█░░░█░█░░░█▀▀░░█░░▄▀▄
|
||||||
#░▀▀▀░▀▀░░░░▀░░░▀▀▀░▀░▀
|
#░▀▀▀░▀▀░░░░▀░░░▀▀▀░▀░▀
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
#programs.nix-ld.enable = true;
|
||||||
programs.nix-ld.libraries = with pkgs ; [
|
#programs.nix-ld.libraries = with pkgs ; [
|
||||||
gcc-unwrapped
|
# gcc-unwrapped
|
||||||
];
|
# stdenv.cc.cc.lib
|
||||||
|
# libz
|
||||||
|
# cairo
|
||||||
|
# pango
|
||||||
#░█▀▄░█▀▀░█▀▀░█░█░▀█▀░█▀█░█▀█
|
#];
|
||||||
#░█░█░█▀▀░▀▀█░█▀▄░░█░░█░█░█▀▀
|
|
||||||
#░▀▀░░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀░▀░░
|
|
||||||
|
|
||||||
# Enable SDDM & Hyprland
|
|
||||||
# services.xserver.displayManager.gdm.enable = true;
|
|
||||||
# services.gnome.gnome-keyring.enable = true;
|
|
||||||
# services.desktopManager.cosmic.xwayland.enable = true;
|
|
||||||
|
|
||||||
# programs.hyprland = {
|
|
||||||
# enable = true;
|
|
||||||
# withUWSM = true;
|
|
||||||
# xwayland.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# environment.sessionVariables = {
|
|
||||||
# WLR_NO_HARDWARE_CURSOR = "1";
|
|
||||||
# NIXOS_OZONE_WL = "1";
|
|
||||||
# CUDA_HOME = "${pkgs.cudaPackages.cudatoolkit}";
|
|
||||||
# CUDA_MODULE_LOADING = "LAZY";
|
|
||||||
# };
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#░█░█░█▀▄░█▀▀
|
#░█░█░█▀▄░█▀▀
|
||||||
|
|
@ -180,10 +168,12 @@ in
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
audio.enable = true;
|
||||||
|
wireplumber.enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
#jack.enable = true;
|
||||||
jack.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -203,6 +193,7 @@ in
|
||||||
htop
|
htop
|
||||||
cowsay
|
cowsay
|
||||||
starship
|
starship
|
||||||
|
cava
|
||||||
|
|
||||||
# FILES #
|
# FILES #
|
||||||
nemo-with-extensions
|
nemo-with-extensions
|
||||||
|
|
@ -245,6 +236,7 @@ in
|
||||||
ffmpeg
|
ffmpeg
|
||||||
mpv
|
mpv
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
|
resonance
|
||||||
|
|
||||||
# INTERNET #
|
# INTERNET #
|
||||||
floorp
|
floorp
|
||||||
|
|
@ -260,13 +252,13 @@ in
|
||||||
vscode-fhs
|
vscode-fhs
|
||||||
nixd
|
nixd
|
||||||
nil
|
nil
|
||||||
python312
|
#python312
|
||||||
python312Packages.pip
|
#python312Packages.pip
|
||||||
zed-editor
|
zed-editor
|
||||||
gnumake
|
gnumake
|
||||||
cmake
|
cmake
|
||||||
ninja
|
ninja
|
||||||
python3
|
#python3
|
||||||
libgcc
|
libgcc
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
|
|
@ -283,10 +275,12 @@ in
|
||||||
playerctl
|
playerctl
|
||||||
adw-gtk3
|
adw-gtk3
|
||||||
remmina
|
remmina
|
||||||
|
deskreen
|
||||||
|
|
||||||
# UTILS #
|
# UTILS #
|
||||||
monitorets
|
monitorets
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
|
brightnessctl
|
||||||
|
|
||||||
# CUDA #
|
# CUDA #
|
||||||
cudaPackages.cudatoolkit
|
cudaPackages.cudatoolkit
|
||||||
|
|
@ -296,6 +290,9 @@ in
|
||||||
# AUDIO #
|
# AUDIO #
|
||||||
helvum
|
helvum
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# OLLAMA #
|
# OLLAMA #
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,15 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
||||||
|
stylix.url = "github:danth/stylix";
|
||||||
|
#catppuccin.url = "github:catppuccin/nix";
|
||||||
|
#home-manager = {
|
||||||
|
# url = "github:nix-community/home-manager";
|
||||||
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
#};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... } @inputs:
|
outputs = { self, nixpkgs, nixpkgs-unstable, stylix, ... } @inputs:
|
||||||
|
|
||||||
let
|
let
|
||||||
system = "x86_64-linux"; # change to whatever your system should be.
|
system = "x86_64-linux"; # change to whatever your system should be.
|
||||||
|
|
@ -33,11 +39,25 @@
|
||||||
inherit pkgs-unstable;
|
inherit pkgs-unstable;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
#catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
|
#home-manager.nixosModules.home-manager
|
||||||
|
#{
|
||||||
|
# if you use home-manager
|
||||||
|
# home-manager.users.nicole = {
|
||||||
|
# imports = [
|
||||||
|
# ./home.nix
|
||||||
|
# catppuccin.homeManagerModules.catppuccin
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
#}
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
{nixpkgs.overlays = [inputs.hyprpanel.overlay];}
|
{nixpkgs.overlays = [inputs.hyprpanel.overlay];}
|
||||||
|
stylix.nixosModules.stylix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
|
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
|
||||||
packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
|
packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,59 +26,4 @@
|
||||||
CUDA_MODULE_LOADING = "LAZY";
|
CUDA_MODULE_LOADING = "LAZY";
|
||||||
};
|
};
|
||||||
|
|
||||||
# GNOME #
|
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
|
||||||
|
|
||||||
# Exclude GNOME packages
|
|
||||||
environment.gnome.excludePackages = with pkgs; [
|
|
||||||
orca
|
|
||||||
evince
|
|
||||||
# file-roller
|
|
||||||
geary
|
|
||||||
gnome-disk-utility
|
|
||||||
seahorse
|
|
||||||
sushi
|
|
||||||
sysprof
|
|
||||||
#
|
|
||||||
# gnome-shell-extensions
|
|
||||||
#
|
|
||||||
adwaita-icon-theme
|
|
||||||
# nixos-background-info
|
|
||||||
gnome-backgrounds
|
|
||||||
# gnome-bluetooth
|
|
||||||
# gnome-color-manager
|
|
||||||
# gnome-control-center
|
|
||||||
# gnome-shell-extensions
|
|
||||||
gnome-tour # GNOME Shell detects the .desktop file on first log-in.
|
|
||||||
gnome-user-docs
|
|
||||||
# glib # for gsettings program
|
|
||||||
# gnome-menus
|
|
||||||
# gtk3.out # for gtk-launch program
|
|
||||||
# xdg-user-dirs # Update user dirs as described in https://freedesktop.org/wiki/Software/xdg-user-dirs/
|
|
||||||
# xdg-user-dirs-gtk # Used to create the default bookmarks
|
|
||||||
#
|
|
||||||
baobab
|
|
||||||
epiphany
|
|
||||||
gnome-text-editor
|
|
||||||
gnome-calculator
|
|
||||||
gnome-calendar
|
|
||||||
gnome-characters
|
|
||||||
# gnome-clocks
|
|
||||||
gnome-console
|
|
||||||
gnome-contacts
|
|
||||||
gnome-font-viewer
|
|
||||||
gnome-logs
|
|
||||||
gnome-maps
|
|
||||||
gnome-music
|
|
||||||
# gnome-system-monitor
|
|
||||||
gnome-weather
|
|
||||||
# loupe
|
|
||||||
# nautilus
|
|
||||||
gnome-connections
|
|
||||||
simple-scan
|
|
||||||
snapshot
|
|
||||||
totem
|
|
||||||
yelp
|
|
||||||
gnome-software
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,19 +16,13 @@
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
open = false;
|
open = true;
|
||||||
gsp.enable = config.hardware.nvidia.open;
|
gsp.enable = config.hardware.nvidia.open;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
nvidiaSettings = false;
|
powerManagement.finegrained = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
# package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
|
||||||
# version = "575.51.02";
|
|
||||||
# sha256_64bit = "sha256-XZ0N8ISmoAC8p28DrGHk/YN1rJsInJ2dZNL8O+Tuaa0=";
|
|
||||||
# openSha256 = "sha256-NQg+QDm9Gt+5bapbUO96UFsPnz1hG1dtEwT/g/vKHkw=";
|
|
||||||
# useSettings = false;
|
|
||||||
# usePersistenced = false;
|
|
||||||
# };
|
|
||||||
videoAcceleration = true;
|
videoAcceleration = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue