add ycontre glow plymouth theme (theme images not pushed to repo), add gpu passthrough capabilities
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
users.users.tom = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker"];
|
||||
extraGroups = [ "wheel" "docker" "libvirtd"];
|
||||
initialPassword = "password";
|
||||
};
|
||||
|
||||
@ -51,6 +51,9 @@
|
||||
ninja
|
||||
gdb
|
||||
valgrind
|
||||
wget
|
||||
cmake
|
||||
usbutils
|
||||
];
|
||||
|
||||
#Open ports in the firewall.
|
||||
|
61
flake.lock
generated
61
flake.lock
generated
@ -9,11 +9,11 @@
|
||||
},
|
||||
"locked": {
|
||||
"dir": "pkgs/firefox-addons",
|
||||
"lastModified": 1729915395,
|
||||
"narHash": "sha256-fD9q0wKTRyem5EYO7pt2FfgDUK/0bkR8Mitq2KaZxA0=",
|
||||
"lastModified": 1730865784,
|
||||
"narHash": "sha256-6kJYNjVCyf1tYgpqm7QOYcMkkD/RsaSfrsC2+ojmFAI=",
|
||||
"owner": "rycee",
|
||||
"repo": "nur-expressions",
|
||||
"rev": "f4a24161dbb580dc91bc59dc54b2d81308a71610",
|
||||
"rev": "b8d22442e09a02eb8b830d41726ac371be21b7cd",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
@ -45,11 +45,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729894599,
|
||||
"narHash": "sha256-nL9nzNE5/re/P+zOv7NX6bRm5e+DeS1HIufQUJ01w20=",
|
||||
"lastModified": 1730837930,
|
||||
"narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "93435d27d250fa986bfec6b2ff263161ff8288cb",
|
||||
"rev": "2f607e07f3ac7e53541120536708e824acccfaa8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -60,11 +60,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1729742320,
|
||||
"narHash": "sha256-u3Of8xRkN//me8PU+RucKA59/6RNy4B2jcGAF36P4jI=",
|
||||
"lastModified": 1730886862,
|
||||
"narHash": "sha256-wCZtRGM1NGxq6VG4+TMzfsa4cuG2VJVtowtYuWW5W3g=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "e8a2f6d5513fe7b7d15701b2d05404ffdc3b6dda",
|
||||
"rev": "90642a0deae927fa911d49d4f7c5616257105141",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -76,11 +76,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1729665710,
|
||||
"narHash": "sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4=",
|
||||
"lastModified": 1730785428,
|
||||
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2768c7d042a37de65bb1b5b3268fc987e534c49d",
|
||||
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -90,12 +90,47 @@
|
||||
"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": {
|
||||
"inputs": {
|
||||
"firefox-addons": "firefox-addons",
|
||||
"home-manager": "home-manager",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"plymouth-theme-ycontre-glow": "plymouth-theme-ycontre-glow"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# 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";
|
||||
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
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
||||
username="tom";
|
||||
|
@ -1,8 +1,11 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland.settings.monitor = [
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor= [
|
||||
"eDP-1, 1920x1080@120, 0x0, 1"
|
||||
"HDMI-A-1, 1920x1080@60, auto, auto"
|
||||
];
|
||||
env = [ "AQ_DRM_DEVICES,/dev/dri/card1"];
|
||||
};
|
||||
}
|
||||
|
@ -6,16 +6,26 @@
|
||||
modules/nvidia.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.wireless.enable = true;
|
||||
networking.networkmanager.enable = false;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 11470 12470 80 443 5000 ];
|
||||
networking.firewall.allowedUDPPorts = [ 11470 12470 80 443 5000 ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
acpi
|
||||
tlp
|
||||
looking-glass-client
|
||||
fprintd
|
||||
];
|
||||
|
||||
hardware.nvidia.prime.offload = {
|
||||
@ -28,4 +38,12 @@
|
||||
services.libinput.touchpad.tapping = false;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
theme = "ycontre-glow";
|
||||
themePackages = [
|
||||
inputs.plymouth-theme-ycontre-glow.defaultPackage.x86_64-linux
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -3,4 +3,8 @@
|
||||
{
|
||||
programs.steam.enable=true;
|
||||
programs.steam.protontricks.enable=true;
|
||||
|
||||
environment.systemPackages = with pkgs; [ qemu quickemu];
|
||||
programs.virt-manager.enable = true;
|
||||
virtualisation.libvirtd.enable = true;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@
|
||||
margin-right = 5;
|
||||
modules-left = ["hyprland/workspaces" "custom/music"];
|
||||
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" = {
|
||||
disable-scroll = true;
|
||||
@ -98,9 +98,9 @@
|
||||
};
|
||||
|
||||
network = {
|
||||
format-wifi = " {icon} {essid} |";
|
||||
format-ethernet = " {ifname}: {ipaddr}/{cidr} |";
|
||||
format-disconnected = " ⚠ Disconnected |";
|
||||
format-wifi = " {icon} {essid} ";
|
||||
format-ethernet = " {ifname}: {ipaddr}/{cidr} ";
|
||||
format-disconnected = " ⚠ Disconnected ";
|
||||
format-icons =[" " " " " " " "];
|
||||
};
|
||||
|
||||
@ -131,6 +131,7 @@
|
||||
disk = {
|
||||
format =" {percentage_used}% |";
|
||||
};
|
||||
|
||||
"custom/pipe" = {
|
||||
format = "|";
|
||||
};
|
||||
|
Reference in New Issue
Block a user