Merge branch 'main' into renovate/renovate-renovate-37.x
Some checks failed
Lint / lint (push) Failing after 1m17s
Some checks failed
Lint / lint (push) Failing after 1m17s
This commit is contained in:
commit
586ea46fa9
6 changed files with 38 additions and 28 deletions
|
@ -15,6 +15,7 @@ in
|
||||||
cinny-desktop
|
cinny-desktop
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
fusee-launcher
|
fusee-launcher
|
||||||
|
fractal-next
|
||||||
gcc
|
gcc
|
||||||
gimp
|
gimp
|
||||||
helix
|
helix
|
||||||
|
@ -32,8 +33,8 @@ in
|
||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
plex-media-player
|
plex-media-player
|
||||||
plexamp
|
plexamp
|
||||||
|
spotify
|
||||||
qmk
|
qmk
|
||||||
rustup
|
|
||||||
solo2-cli
|
solo2-cli
|
||||||
tex
|
tex
|
||||||
unzip
|
unzip
|
||||||
|
@ -45,6 +46,7 @@ in
|
||||||
programs = {
|
programs = {
|
||||||
v.vscode.enable = true;
|
v.vscode.enable = true;
|
||||||
v.nvim.enable = true;
|
v.nvim.enable = true;
|
||||||
|
v.rust.enable = true;
|
||||||
|
|
||||||
riff = {
|
riff = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [ ./catppuccin.nix ./nvim.nix ./riff.nix ./vscode.nix ./git.nix ];
|
imports = [ ./catppuccin.nix ./nvim.nix ./riff.nix ./vscode.nix ./git.nix ./rust.nix ];
|
||||||
}
|
}
|
||||||
|
|
21
nixos/common/hm-modules/rust.nix
Normal file
21
nixos/common/hm-modules/rust.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let cfg = config.programs.v.rust;
|
||||||
|
in {
|
||||||
|
options.programs.v.rust = { enable = mkEnableOption "rust"; };
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [ rustup ];
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".cargo/config.toml".text = ''
|
||||||
|
[registries.crates-io]
|
||||||
|
protocol = "sparse"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionPath = [ "$HOME/.cargo/bin" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -34,11 +34,11 @@ in
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 67 ];
|
networking.firewall.allowedUDPPorts = [ 67 ];
|
||||||
|
|
||||||
services.prometheus.exporters.kea = {
|
# services.prometheus.exporters.kea = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
openFirewall = true;
|
# openFirewall = true;
|
||||||
controlSocketPaths = [ "/run/kea/kea-dhcp4.socket" ];
|
# controlSocketPaths = [ "/run/kea/kea-dhcp4.socket" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
services.kea.dhcp4 = {
|
services.kea.dhcp4 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -50,10 +50,11 @@ in
|
||||||
|
|
||||||
interfaces-config.interfaces = [ "eth0" ];
|
interfaces-config.interfaces = [ "eth0" ];
|
||||||
|
|
||||||
control-socket = {
|
# control-socket = {
|
||||||
socket-type = "unix";
|
# socket-type = "unix";
|
||||||
socket-name = "/run/kea/kea-dhcp4.socket";
|
# socket-name = "/run/kea/kea-dhcp4.socket";
|
||||||
};
|
# };
|
||||||
|
# failed to initialize Kea server: configuration error using file '/etc/kea/dhcp4-server.conf': cannot create socket lockfile, /run/kea/kea-dhcp4.socket.lock, : No such file or directory
|
||||||
|
|
||||||
lease-database = {
|
lease-database = {
|
||||||
name = "/var/lib/kea/dhcp4.leases";
|
name = "/var/lib/kea/dhcp4.leases";
|
||||||
|
|
|
@ -40,22 +40,6 @@
|
||||||
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
|
|
||||||
# services.kubo = {
|
|
||||||
# enable = true;
|
|
||||||
# enableGC = true;
|
|
||||||
# # autoMount = true;
|
|
||||||
# settings = {
|
|
||||||
# Addresses.API = "/ip4/127.0.0.1/tcp/2324";
|
|
||||||
# Routing = {
|
|
||||||
# AcceleratedDHTClient = true;
|
|
||||||
# };
|
|
||||||
# Experimental = {
|
|
||||||
# FilestoreEnabled = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.victor = import ./home;
|
users.victor = import ./home;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,13 +2,14 @@
|
||||||
hardware = {
|
hardware = {
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
nvidia = {
|
nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
# package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
||||||
# Open drivers cause gdm to crash
|
# Open drivers cause gdm to crash
|
||||||
# open = true;
|
# open = true;
|
||||||
|
|
||||||
# nvidia-drm.modeset=1
|
# nvidia-drm.modeset=1
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hardware acceleration
|
# Hardware acceleration
|
||||||
|
@ -17,6 +18,7 @@
|
||||||
|
|
||||||
# Vulkan
|
# Vulkan
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
logitech.wireless = {
|
logitech.wireless = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue