add ycontre glow plymouth theme (theme images not pushed to repo), add gpu passthrough capabilities

This commit is contained in:
2024-11-18 15:25:27 +01:00
parent ca18ecf4e2
commit 18518fb9a5
7 changed files with 94 additions and 26 deletions

View File

@ -30,7 +30,7 @@
users.users.tom = { users.users.tom = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "docker"]; extraGroups = [ "wheel" "docker" "libvirtd"];
initialPassword = "password"; initialPassword = "password";
}; };
@ -51,6 +51,9 @@
ninja ninja
gdb gdb
valgrind valgrind
wget
cmake
usbutils
]; ];
#Open ports in the firewall. #Open ports in the firewall.

61
flake.lock generated
View File

@ -9,11 +9,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1729915395, "lastModified": 1730865784,
"narHash": "sha256-fD9q0wKTRyem5EYO7pt2FfgDUK/0bkR8Mitq2KaZxA0=", "narHash": "sha256-6kJYNjVCyf1tYgpqm7QOYcMkkD/RsaSfrsC2+ojmFAI=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "f4a24161dbb580dc91bc59dc54b2d81308a71610", "rev": "b8d22442e09a02eb8b830d41726ac371be21b7cd",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -45,11 +45,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1729894599, "lastModified": 1730837930,
"narHash": "sha256-nL9nzNE5/re/P+zOv7NX6bRm5e+DeS1HIufQUJ01w20=", "narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "93435d27d250fa986bfec6b2ff263161ff8288cb", "rev": "2f607e07f3ac7e53541120536708e824acccfaa8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -60,11 +60,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1729742320, "lastModified": 1730886862,
"narHash": "sha256-u3Of8xRkN//me8PU+RucKA59/6RNy4B2jcGAF36P4jI=", "narHash": "sha256-wCZtRGM1NGxq6VG4+TMzfsa4cuG2VJVtowtYuWW5W3g=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "e8a2f6d5513fe7b7d15701b2d05404ffdc3b6dda", "rev": "90642a0deae927fa911d49d4f7c5616257105141",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -76,11 +76,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1729665710, "lastModified": 1730785428,
"narHash": "sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4=", "narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2768c7d042a37de65bb1b5b3268fc987e534c49d", "rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -90,12 +90,47 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1731676054,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"plymouth-theme-ycontre-glow": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1731939263,
"narHash": "sha256-mLwLR5dEJTvtqJU/lvo9f8c3/xIFPOpXlPF3JsJtnHo=",
"ref": "refs/heads/master",
"rev": "702e7b014ef6cf748252e797724e4096bafcaafa",
"revCount": 1,
"type": "git",
"url": "file:///home/tom/Desktop/bordel/ycontre-glow"
},
"original": {
"type": "git",
"url": "file:///home/tom/Desktop/bordel/ycontre-glow"
}
},
"root": { "root": {
"inputs": { "inputs": {
"firefox-addons": "firefox-addons", "firefox-addons": "firefox-addons",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"plymouth-theme-ycontre-glow": "plymouth-theme-ycontre-glow"
} }
} }
}, },

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# # # Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
# Updated: 2024/10/31 20:22:15 by tomoron ### ########.fr # # Updated: 2024/11/18 15:13:57 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -25,9 +25,13 @@
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
plymouth-theme-ycontre-glow = {
url = "git+file:///home/tom/Desktop/bordel/ycontre-glow";
};
}; };
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }@inputs: outputs = { self, nixpkgs, home-manager, nixos-hardware, plymouth-theme-ycontre-glow, ... }@inputs:
let let
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; }; pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
username="tom"; username="tom";

View File

@ -1,8 +1,11 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
wayland.windowManager.hyprland.settings.monitor = [ wayland.windowManager.hyprland.settings = {
"eDP-1, 1920x1080@120, 0x0, 1" monitor= [
"eDP-1, 1920x1080@120, 0x0, 1"
"HDMI-A-1, 1920x1080@60, auto, auto" "HDMI-A-1, 1920x1080@60, auto, auto"
]; ];
env = [ "AQ_DRM_DEVICES,/dev/dri/card1"];
};
} }

View File

@ -6,16 +6,26 @@
modules/nvidia.nix modules/nvidia.nix
modules/vboxHost.nix modules/vboxHost.nix
]; ];
boot.kernelParams = [ "amd_iommu=on" "iommu=pt" "kvm_amd.npt=1" "kvm_amd.avic=1"];
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
# boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
boot.kernelModules = [ "vfio" "vfio-pci"];
systemd.tmpfiles.rules = [
"f /dev/shm/looking-glass 0660 tom libvirtd -"
];
virtualisation.libvirtd.qemu.vhostUserPackages = with pkgs; [ virtiofsd ];
networking.hostName = "patate-douce"; networking.hostName = "patate-douce";
networking.wireless.enable = true; networking.wireless.enable = true;
networking.networkmanager.enable = false; networking.networkmanager.enable = false;
networking.firewall.allowedTCPPorts = [ 11470 12470 80 443 5000 ];
networking.firewall.allowedUDPPorts = [ 11470 12470 80 443 5000 ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
acpi acpi
tlp tlp
looking-glass-client
fprintd
]; ];
hardware.nvidia.prime.offload = { hardware.nvidia.prime.offload = {
@ -28,4 +38,12 @@
services.libinput.touchpad.tapping = false; services.libinput.touchpad.tapping = false;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
boot.plymouth = {
enable = true;
theme = "ycontre-glow";
themePackages = [
inputs.plymouth-theme-ycontre-glow.defaultPackage.x86_64-linux
];
};
} }

View File

@ -3,4 +3,8 @@
{ {
programs.steam.enable=true; programs.steam.enable=true;
programs.steam.protontricks.enable=true; programs.steam.protontricks.enable=true;
environment.systemPackages = with pkgs; [ qemu quickemu];
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
} }

View File

@ -60,7 +60,7 @@
margin-right = 5; margin-right = 5;
modules-left = ["hyprland/workspaces" "custom/music"]; modules-left = ["hyprland/workspaces" "custom/music"];
modules-center = ["hyprland/window"]; modules-center = ["hyprland/window"];
modules-right = ["custom/fans" "custom/dgpu" "disk" "pulseaudio" "network" "cpu" "temperature" "custom/pipe" "memory" "battery" "clock"]; modules-right = ["custom/fans" "custom/dgpu" "disk" "pulseaudio" "network" "custom/pipe" "cpu" "temperature" "custom/pipe" "memory" "battery" "clock"];
"hyprland/workspaces" = { "hyprland/workspaces" = {
disable-scroll = true; disable-scroll = true;
@ -98,9 +98,9 @@
}; };
network = { network = {
format-wifi = " {icon} {essid} |"; format-wifi = " {icon} {essid} ";
format-ethernet = " {ifname}: {ipaddr}/{cidr} |"; format-ethernet = " {ifname}: {ipaddr}/{cidr} ";
format-disconnected = " Disconnected |"; format-disconnected = " Disconnected ";
format-icons =["󰤟 " "󰤢 " "󰤥 " "󰤨 "]; format-icons =["󰤟 " "󰤢 " "󰤥 " "󰤨 "];
}; };
@ -131,6 +131,7 @@
disk = { disk = {
format =" 󰋊 {percentage_used}% |"; format =" 󰋊 {percentage_used}% |";
}; };
"custom/pipe" = { "custom/pipe" = {
format = "|"; format = "|";
}; };