mirror of
https://github.com/MichaelFisher1997/nixos.git
synced 2025-07-01 08:33:12 +00:00
Compare commits
10 Commits
3c37d9f335
...
81bff57394
Author | SHA1 | Date | |
---|---|---|---|
![]() |
81bff57394 | ||
![]() |
99bea024e8 | ||
![]() |
ab0558eaf3 | ||
![]() |
948dbff72e | ||
![]() |
2a7c5f1f40 | ||
![]() |
a3c8550d0e | ||
![]() |
1914559b88 | ||
![]() |
7a79886dc6 | ||
![]() |
412bd695e1 | ||
![]() |
13f11fda47 |
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1746557022,
|
||||
"narHash": "sha256-QkNoyEf6TbaTW5UZYX0OkwIJ/ZMeKSSoOMnSDPQuol0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1d3aeb5a193b9ff13f63f4d9cc169fb88129f860",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-24.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
17
flake.nix
Normal file
17
flake.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
description = "NixOS configuration for hypr-nix";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
nixosConfigurations.hypr-nix = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/hypr-nix/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
10
gpu.nix
10
gpu.nix
@ -1,10 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
];
|
||||
environment.systemPackages = [
|
||||
pkgs.rocmPackages.rpp
|
||||
];
|
||||
|
||||
}
|
@ -25,6 +25,12 @@
|
||||
boot.loader.grub.useOSProber = true;
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
nix.package = pkgs.nixVersions.latest;
|
||||
|
||||
# Optional but recommended:
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
boot.kernelParams = [
|
||||
"cgroup_enable=cpuset,cpu,cpuacct,blkio,devices,freezer,net_cls,perf_event,net_prio,hugetlb,pids"
|
||||
];
|
||||
@ -61,6 +67,9 @@
|
||||
|
||||
services = {
|
||||
# Enable X11 and configure Wayland support
|
||||
desktopManager = {
|
||||
plasma6.enable = true;
|
||||
};
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "gb";
|
||||
@ -73,7 +82,6 @@
|
||||
# Desktop Managers Configuration
|
||||
desktopManager = {
|
||||
gnome.enable = true; # GNOME
|
||||
plasma6.enable = true; # Use plasma5 for KDE6 as well
|
||||
};
|
||||
|
||||
# Window Managers Configuration
|
||||
@ -106,9 +114,6 @@
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
||||
#sound.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
services.blueman.enable = true;
|
||||
@ -170,22 +175,6 @@
|
||||
#services.desktopManager.cosmic.enable = true;
|
||||
#services.displayManager.cosmic-greeter.enable = true;
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
#driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
vulkan-loader
|
||||
vulkan-validation-layers
|
||||
vulkan-extension-layer
|
||||
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||
intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
||||
libvdpau-va-gl
|
||||
vaapiVdpau
|
||||
mesa.drivers
|
||||
];
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
|
22
hosts/hypr-nix/gpu.nix
Normal file
22
hosts/hypr-nix/gpu.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.rocmPackages.rpp
|
||||
];
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
#driSupport = true;
|
||||
#driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
vulkan-loader
|
||||
vulkan-validation-layers
|
||||
vulkan-extension-layer
|
||||
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||
intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
||||
libvdpau-va-gl
|
||||
vaapiVdpau
|
||||
mesa
|
||||
];
|
||||
};
|
||||
}
|
@ -35,7 +35,6 @@
|
||||
discocss
|
||||
themechanger
|
||||
catppuccin-kvantum
|
||||
dolphin
|
||||
nwg-drawer
|
||||
hyprpaper
|
||||
];
|
@ -8,11 +8,9 @@ in
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Text Editors
|
||||
vim
|
||||
libsForQt5.kate
|
||||
sublime
|
||||
lunarvim
|
||||
vscode
|
||||
#unstable.zed-editor
|
||||
|
||||
# Development Tools
|
||||
openjdk
|
||||
@ -22,9 +20,7 @@ in
|
||||
glew
|
||||
glfw
|
||||
libGL
|
||||
SDL2
|
||||
unstable.sdl3
|
||||
SDL2_image
|
||||
sdl3
|
||||
vulkan-loader
|
||||
vulkan-tools
|
||||
vulkan-headers
|
||||
@ -34,11 +30,10 @@ in
|
||||
python3
|
||||
php
|
||||
php83Packages.composer
|
||||
libsForQt5.kdenlive
|
||||
exercism
|
||||
betterdiscord-installer
|
||||
unstable.go
|
||||
unstable.bun
|
||||
go
|
||||
bun
|
||||
air
|
||||
tailwindcss
|
||||
google-cloud-sdk-gce
|
||||
@ -111,14 +106,12 @@ in
|
||||
i3
|
||||
eww
|
||||
vesktop
|
||||
unstable.hyprsunset
|
||||
unstable.hyprshot
|
||||
hyprsunset
|
||||
|
||||
# Web Browsers
|
||||
brave
|
||||
google-chrome
|
||||
firefox
|
||||
falkon
|
||||
tor-browser
|
||||
|
||||
# Communication
|
||||
@ -180,22 +173,21 @@ in
|
||||
spice-vdagent
|
||||
|
||||
# Themes and Customization
|
||||
kdePackages.qt6ct
|
||||
#kdePackages.qt6ct
|
||||
catppuccin-kvantum
|
||||
|
||||
# Multimedia Tools
|
||||
svt-av1
|
||||
rav1e
|
||||
libaom
|
||||
unstable.sunshine
|
||||
sunshine
|
||||
|
||||
# Miscellaneous
|
||||
fastfetch
|
||||
betterdiscord-installer
|
||||
unstable.ghostty
|
||||
ghostty
|
||||
guacamole-client
|
||||
rpi-imager
|
||||
kdePackages.filelight
|
||||
light
|
||||
|
||||
#games
|
||||
@ -214,6 +206,12 @@ in
|
||||
modrinth-app
|
||||
minecraft
|
||||
nsnake
|
||||
|
||||
#kdePackages
|
||||
kdePackages.dolphin
|
||||
kdePackages.filelight
|
||||
kdePackages.kate
|
||||
kdePackages.falkon
|
||||
];
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user