mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Formatting + misc changes
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
consoleLogLevel = 3;
|
consoleLogLevel = 3;
|
||||||
plymouth.enable = true;
|
plymouth.enable = true;
|
||||||
};
|
};
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
sudo.extraConfig = ''
|
sudo.extraConfig = ''
|
||||||
Defaults insults
|
Defaults insults
|
||||||
'';
|
'';
|
||||||
|
|
||||||
polkit.extraConfig = ''
|
polkit.extraConfig = ''
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if (action.id == "org.libvirt.unix.manage" &&
|
if (action.id == "org.libvirt.unix.manage" &&
|
||||||
@@ -79,6 +81,7 @@
|
|||||||
storageDriver = "btrfs";
|
storageDriver = "btrfs";
|
||||||
enableOnBoot = true;
|
enableOnBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@@ -87,6 +90,7 @@
|
|||||||
|
|
||||||
onBoot = "ignore";
|
onBoot = "ignore";
|
||||||
};
|
};
|
||||||
|
|
||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -104,6 +108,7 @@
|
|||||||
"input"
|
"input"
|
||||||
"dialout"
|
"dialout"
|
||||||
];
|
];
|
||||||
|
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
#packages = with pkgs; [ ];
|
#packages = with pkgs; [ ];
|
||||||
};
|
};
|
||||||
@@ -113,10 +118,12 @@
|
|||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
LIBVIRT_DEFAULT_URI = "qemu:///system";
|
LIBVIRT_DEFAULT_URI = "qemu:///system";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemPackages = [
|
systemPackages = [
|
||||||
pkgs.libheif
|
pkgs.libheif
|
||||||
pkgs.libheif.out
|
pkgs.libheif.out
|
||||||
];
|
];
|
||||||
|
|
||||||
pathsToLink = [ "share/thumbnailers" ];
|
pathsToLink = [ "share/thumbnailers" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -163,6 +170,7 @@
|
|||||||
"flakes"
|
"flakes"
|
||||||
"nix-command"
|
"nix-command"
|
||||||
];
|
];
|
||||||
|
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
url = "github:qarmin/czkawka";
|
url = "github:qarmin/czkawka";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
naersk = {
|
naersk = {
|
||||||
url = "github:nix-community/naersk";
|
url = "github:nix-community/naersk";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@@ -10,6 +10,5 @@
|
|||||||
./packages.nix
|
./packages.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./vm.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
python = {
|
python = {
|
||||||
symbol = "";
|
symbol = "";
|
||||||
format = "[](fg:#4B8BBE)[$symbol( $virtualenv )$version](bg:#4B8BBE fg:#FFFFFF)[](fg:#4B8BBE) ";
|
format = "[](fg:#4B8BBE)[$symbol $virtualenv $version](bg:#4B8BBE fg:#FFFFFF)[](fg:#4B8BBE) ";
|
||||||
};
|
};
|
||||||
|
|
||||||
nodejs = {
|
nodejs = {
|
||||||
|
|||||||
@@ -50,8 +50,6 @@
|
|||||||
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'
|
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'
|
||||||
zstyle ':completion:*' matcher-list "" 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|?=** r:|?=**'
|
zstyle ':completion:*' matcher-list "" 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|?=** r:|?=**'
|
||||||
|
|
||||||
eval "$(direnv hook zsh)"
|
|
||||||
|
|
||||||
# Path Management
|
# Path Management
|
||||||
export PATH="$HOME/.local/bin:/usr/local/LinkServer/:$PATH"
|
export PATH="$HOME/.local/bin:/usr/local/LinkServer/:$PATH"
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
curl
|
curl
|
||||||
fet.packages.${pkgs.stdenv.hostPlatform.system}.default
|
fet.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
ddcutil
|
ddcutil
|
||||||
direnv
|
|
||||||
discord
|
discord
|
||||||
distrobox
|
distrobox
|
||||||
docker-buildx
|
docker-buildx
|
||||||
|
|||||||
@@ -56,6 +56,11 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
weylus.enable = true;
|
weylus.enable = true;
|
||||||
gamescope.enable = true;
|
gamescope.enable = true;
|
||||||
virt-manager.enable = true;
|
virt-manager.enable = true;
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
virtualisation.vmVariant = {
|
|
||||||
virtualisation.memorySize = 8192;
|
|
||||||
|
|
||||||
virtualisation.cores = 4;
|
|
||||||
virtualisation.qemu.options = [
|
|
||||||
"-device virtio-vga-gl"
|
|
||||||
"-display gtk,gl=on"
|
|
||||||
"-cpu host"
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.jax.password = "nixos";
|
|
||||||
services.displayManager.autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "jax";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
blacklistedKernelModules = [ "k10temp" ];
|
blacklistedKernelModules = [ "k10temp" ];
|
||||||
|
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"amdgpu.seamless=1"
|
"amdgpu.seamless=1"
|
||||||
"rd.udev.log_priority=3"
|
"rd.udev.log_priority=3"
|
||||||
|
|||||||
@@ -10,5 +10,6 @@
|
|||||||
./packages.nix
|
./packages.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
./vm.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
26
desktop/modules/vm.nix
Normal file
26
desktop/modules/vm.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
virtualisation.vmVariant = {
|
||||||
|
virtualisation = {
|
||||||
|
memorySize = 8192;
|
||||||
|
cores = 4;
|
||||||
|
graphics = true;
|
||||||
|
diskSize = 20 * 1024;
|
||||||
|
qemu.options = [
|
||||||
|
"-device virtio-vga-gl"
|
||||||
|
"-display gtk,gl=on"
|
||||||
|
"-cpu host"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.jax.password = "nixos";
|
||||||
|
services.displayManager.autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "jax";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
30
flake.lock
generated
30
flake.lock
generated
@@ -19,11 +19,11 @@
|
|||||||
"czkawka-src": {
|
"czkawka-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772905248,
|
"lastModified": 1773163024,
|
||||||
"narHash": "sha256-A7irrMml7YJ/jN3LwH9hB/bgykOzMTz8ffD+VBJSLHU=",
|
"narHash": "sha256-Ij2hC969kG6InramJsF49xy6X2GmGP0qDkFgmZ7UlWM=",
|
||||||
"owner": "qarmin",
|
"owner": "qarmin",
|
||||||
"repo": "czkawka",
|
"repo": "czkawka",
|
||||||
"rev": "f82bd5ddf4e1958651249a2b8e9db38df58eadb7",
|
"rev": "433fc5c5e09feafad165a25aa56134c622a4337d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -95,11 +95,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772985285,
|
"lastModified": 1773264496,
|
||||||
"narHash": "sha256-wEEmvfqJcl9J0wyMgMrj1TixOgInBW/6tLPhWGoZE3s=",
|
"narHash": "sha256-uwFY0+UfaGEo6205ixeBjplZxHWr56UQef+MtmJ0PW0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "5be5d8245cbc7bc0c09fbb5f38f23f223c543f85",
|
"rev": "32f78141a98098efed490842923b25ecb93b9b9f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -147,11 +147,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772773019,
|
"lastModified": 1772963539,
|
||||||
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
"narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
"rev": "9dcb002ca1690658be4a04645215baea8b95f31d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -163,11 +163,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772773019,
|
"lastModified": 1772963539,
|
||||||
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
"narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
"rev": "9dcb002ca1690658be4a04645215baea8b95f31d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -179,11 +179,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773046814,
|
"lastModified": 1773233959,
|
||||||
"narHash": "sha256-3CEw64UyzEk5QjfbcXNIl4TfmIpa2oY+duuo6aiawcU=",
|
"narHash": "sha256-Rwvc4HuCfnaDk5ExDwwm0ryaC1olJu1Up+fBtwIDqz8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0c6c0dd2469abaa216599bb19bbf77a328af6564",
|
"rev": "a0f2821b48406ae8e34aed85dfc02bf3799e1f79",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
|
||||||
vaapi-intel-hybrid
|
vaapi-intel-hybrid
|
||||||
vpl-gpu-rt
|
vpl-gpu-rt
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
systemd.services.disable-problematic-wakeup = {
|
systemd.services.disable-problematic-wakeup = {
|
||||||
description = "Disable only specific noisy wakeup sources";
|
description = "Disable only specific noisy wakeup sources";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.bash}/bin/bash -c 'for device in XHC RP09 RP10 RP13; do if grep -q \"$device.*enabled\" /proc/acpi/wakeup; then echo $device > /proc/acpi/wakeup; fi; done'";
|
ExecStart = "${pkgs.bash}/bin/bash -c 'for device in XHC RP09 RP10 RP13; do if grep -q \"$device.*enabled\" /proc/acpi/wakeup; then echo $device > /proc/acpi/wakeup; fi; done'";
|
||||||
|
|||||||
Reference in New Issue
Block a user