mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Fix many things
- chaotic repo - add packages - fix libvirt access - Soma slight formatting
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
./modules/programs.nix
|
./modules/programs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
chaotic.mesa-git.enable = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.kernelModules = [ ];
|
initrd.kernelModules = [ ];
|
||||||
initrd.verbose = false;
|
initrd.verbose = false;
|
||||||
@@ -90,8 +92,12 @@
|
|||||||
};
|
};
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu.swtpm.enable = true;
|
qemu = {
|
||||||
|
swtpm.enable = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
unix_sock_group = "qemu-libvirtd"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -103,7 +109,7 @@
|
|||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
"docker"
|
"docker"
|
||||||
"libvirtd"
|
"qemu-libvirtd"
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
#packages = with pkgs; [ ];
|
#packages = with pkgs; [ ];
|
||||||
@@ -111,11 +117,13 @@
|
|||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config = {
|
||||||
config.permittedInsecurePackages = [
|
allowUnfree = true;
|
||||||
|
permittedInsecurePackages = [
|
||||||
"ventoy-gtk3-1.1.07"
|
"ventoy-gtk3-1.1.07"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
@@ -125,8 +133,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
amdgpu.initrd.enable = true;
|
amdgpu = {
|
||||||
amdgpu.overdrive.enable = true;
|
initrd.enable = true;
|
||||||
|
overdrive.enable = true;
|
||||||
|
};
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.bluez.overrideAttrs (old: {
|
package = pkgs.bluez.overrideAttrs (old: {
|
||||||
@@ -160,6 +170,15 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.polkit.extraConfig = ''
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (action.id == "org.libvirt.unix.manage" &&
|
||||||
|
subject.isInGroup("qemu-libvirtd")) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
'';
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
@@ -173,14 +192,14 @@
|
|||||||
"nix-command"
|
"nix-command"
|
||||||
];
|
];
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
|
/*
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://nyx.chaotic.cx"
|
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"chaotic-nyx.cachix.org-1:Z94nz89Kd721HGLrYPYiWnL3izUZoofuA+3ykIbE+Bs="
|
|
||||||
"cache.nixos.org-1:6NCHdD59MDW/s82/h4RZcnxaz2bYcxoZb0qwYf5ED+w="
|
"cache.nixos.org-1:6NCHdD59MDW/s82/h4RZcnxaz2bYcxoZb0qwYf5ED+w="
|
||||||
];
|
];
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
|
|||||||
10
flake.lock
generated
10
flake.lock
generated
@@ -136,15 +136,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762168314,
|
"lastModified": 1762406524,
|
||||||
"narHash": "sha256-+DX6mIF47gRGoK0mqkTg1Jmcjcup0CAXJFHVkdUx8YA=",
|
"narHash": "sha256-dKJcd9A4Qk/RH3c1awJW0bLngEJO6/TJlrwvGy6U1FA=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "94fc102d2c15d9c1a861e59de550807c65358e1b",
|
"rev": "f7213c5cd417469224ae36fcaecc142f7a6a95c2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-unstable-small",
|
"ref": "nixos-unstable-small",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
|||||||
10
flake.nix
10
flake.nix
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||||
|
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||||
|
|
||||||
nix-flatpak = {
|
nix-flatpak = {
|
||||||
url = "github:gmodena/nix-flatpak";
|
url = "github:gmodena/nix-flatpak";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Keeping this for the binary cache!
|
|
||||||
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nix-flatpak, chaotic, ... }: {
|
outputs = { self, nixpkgs, nix-flatpak, chaotic, ... }: {
|
||||||
@@ -17,10 +15,8 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
|
||||||
|
|
||||||
# This module adds the Chaotic overlay AND the necessary binary cache.
|
|
||||||
chaotic.nixosModules.default
|
chaotic.nixosModules.default
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
{
|
{
|
||||||
environment.gnome.excludePackages = with pkgs; [
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
decibels
|
decibels
|
||||||
evince
|
|
||||||
epiphany
|
epiphany
|
||||||
geary
|
geary
|
||||||
gnome-connections
|
gnome-connections
|
||||||
@@ -55,12 +54,14 @@
|
|||||||
curl
|
curl
|
||||||
czkawka
|
czkawka
|
||||||
ddcutil
|
ddcutil
|
||||||
|
discord-krisp
|
||||||
distrobox
|
distrobox
|
||||||
docker-compose
|
docker-compose
|
||||||
dog
|
dog
|
||||||
eza
|
eza
|
||||||
ffmpeg
|
ffmpeg
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
|
file
|
||||||
flat-remix-gnome
|
flat-remix-gnome
|
||||||
flat-remix-gtk
|
flat-remix-gtk
|
||||||
flatpak-xdg-utils
|
flatpak-xdg-utils
|
||||||
@@ -84,6 +85,7 @@
|
|||||||
krita
|
krita
|
||||||
kooha
|
kooha
|
||||||
lact
|
lact
|
||||||
|
libnotify
|
||||||
libreoffice
|
libreoffice
|
||||||
linux-firmware
|
linux-firmware
|
||||||
lm_sensors
|
lm_sensors
|
||||||
@@ -125,6 +127,7 @@
|
|||||||
vkbasalt
|
vkbasalt
|
||||||
vlc
|
vlc
|
||||||
vscode-fhs
|
vscode-fhs
|
||||||
|
wireshark
|
||||||
wev
|
wev
|
||||||
weylus
|
weylus
|
||||||
wget
|
wget
|
||||||
|
|||||||
Reference in New Issue
Block a user