Compare commits

...

8 Commits

9 changed files with 138 additions and 115 deletions

View File

@@ -51,6 +51,30 @@
services.pipewire = { services.pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;
extraConfig.pipewire-pulse = {
"10-prevent-agc" = {
"pulse.rules" = [
{
matches = [
{ "application.process.binary" = "chrome"; }
{ "application.process.binary" = "Discord"; }
{ "application.process.binary" = "teams"; }
{ "application.process.binary" = "electron"; }
{ "application.process.binary" = "skypeforlinux"; }
{ "application.process.binary" = "telegram-desktop"; }
{ "application.process.binary" = "vivaldi"; }
{ "application.process.binary" = "chromium"; }
{ "application.process.binary" = "zoom"; }
];
actions = {
quirks = [
"block-source-volume"
];
};
}
];
};
};
}; };
services.fstrim.enable = true; services.fstrim.enable = true;

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ inputs, ... }: { inputs, pkgs, ... }:
{ {
imports = imports =
@@ -42,9 +42,10 @@
hardware.tuxedo-drivers.enable = true; hardware.tuxedo-drivers.enable = true;
programs.nix-ld.enable = true;
programs.wireshark = { programs.wireshark = {
enable = true; enable = true;
package = pkgs.wireshark;
dumpcap.enable = true;
}; };
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.

46
flake.lock generated
View File

@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747226316, "lastModified": 1747742835,
"narHash": "sha256-INBPqK9ogSvw5Q9HJ5H7KI83v6Jc3goAnXN3b2F+eMU=", "narHash": "sha256-kYL4GCwwznsypvsnA20oyvW8zB/Dvn6K5G/tgMjVMT4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "490c0d6bd151e33caa5b2cf0ae37758234e947f6", "rev": "df522e787fdffc4f32ed3e1fca9ed0968a384d62",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -45,16 +45,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747020534, "lastModified": 1747556831,
"narHash": "sha256-D/6rkiC6w2p+4SwRiVKrWIeYzun8FBg7NlMKMwQMxO0=", "narHash": "sha256-Qb84nbYFFk0DzFeqVoHltS2RodAYY5/HZQKE8WnBDsc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b4bbdc6fde16fc2051fcde232f6e288cd22007ca", "rev": "d0bbd221482c2713cccb80220f3c9d16a6e20a33",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-24.11", "ref": "release-25.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@@ -85,11 +85,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1747188026, "lastModified": 1747879218,
"narHash": "sha256-NjiJ2Bce5F7dn+6ZGCenzIjem2+Ei4SDF78x2wHVlOY=", "narHash": "sha256-xyd0FxKNoHYTh7TDXbosZJvyiUrLJtU6Whv7Mytikh8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-vscode-extensions", "repo": "nix-vscode-extensions",
"rev": "083675f78e7de80e9fec1f621b8a508e58327131", "rev": "c051e6137e9744cb559ff83084c6cb3d21044ab3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -100,11 +100,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1747129300, "lastModified": 1747900541,
"narHash": "sha256-L3clA5YGeYCF47ghsI7Tcex+DnaaN/BbQ4dR2wzoiKg=", "narHash": "sha256-dn64Pg9xLETjblwZs9Euu/SsjW80pd6lr5qSiyLY1pg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "e81fd167b33121269149c57806599045fd33eeed", "rev": "11f2d9ea49c3e964315215d6baa73a8d42672f06",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -132,11 +132,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1746904237, "lastModified": 1747744144,
"narHash": "sha256-3e+AVBczosP5dCLQmMoMEogM57gmZ2qrVSrmq9aResQ=", "narHash": "sha256-W7lqHp0qZiENCDwUZ5EX/lNhxjMdNapFnbErcbnP11Q=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d89fc19e405cb2d55ce7cc114356846a0ee5e956", "rev": "2795c506fe8fb7b03c36ccb51f75b6df0ab2553f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -148,16 +148,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1746957726, "lastModified": 1747825515,
"narHash": "sha256-k9ut1LSfHCr0AW82ttEQzXVCqmyWVA5+SHJkS5ID/Jo=", "narHash": "sha256-BWpMQymVI73QoKZdcVCxUCCK3GNvr/xa2Dc4DM1o2BE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a39ed32a651fdee6842ec930761e31d1f242cb94", "rev": "cd2812de55cf87df88a9e09bf3be1ce63d50c1a6",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-24.11", "ref": "nixos-25.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@@ -181,11 +181,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744139528, "lastModified": 1747903970,
"narHash": "sha256-ABIcmxzf8399pJzXqHzShXtzw7iC+zxjhOxp/qS0fQk=", "narHash": "sha256-PFpAdjeBLpoY7v1v0GUeFuBWhEOiA187l0b2lmg117A=",
"owner": "numtide", "owner": "numtide",
"repo": "system-manager", "repo": "system-manager",
"rev": "803322102ed51f29c250d4bff2973625adc4a521", "rev": "94f1c8d9c562e96358dddddb8e276ba8ac16c9ae",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -1,17 +1,21 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11?shallow=1"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05?shallow=1";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable?shallow=1"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable?shallow=1";
nixos-hardware.url = "github:NixOS/nixos-hardware/master?shallow=1"; # use by inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".[package name]
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions?shallow=1";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.11?shallow=1"; url = "github:nix-community/home-manager/release-25.05?shallow=1";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master?shallow=1";
disko = { disko = {
url = "github:nix-community/disko?shallow=1"; url = "github:nix-community/disko?shallow=1";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions?shallow=1";
system-manager = { system-manager = {
url = "github:numtide/system-manager?shallow=1"; url = "github:numtide/system-manager?shallow=1";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View File

@@ -5,7 +5,7 @@
liberation_ttf liberation_ttf
ubuntu-sans ubuntu-sans
ubuntu-sans-mono ubuntu-sans-mono
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) nerd-fonts.space-mono
]; ];
fonts.fontconfig = { fonts.fontconfig = {

View File

@@ -24,7 +24,7 @@ with lib;
config = { config = {
home.packages = with pkgs;[ home.packages = with pkgs;[
blesh blesh
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) nerd-fonts.space-mono
]; ];
programs = { programs = {
@@ -95,6 +95,7 @@ with lib;
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings = {
theme = "dracula"; theme = "dracula";
show_startup_tips = false;
}; };
}; };

View File

@@ -1,17 +1,8 @@
{ pkgs, inputs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
jetbrains.rider jetbrains.rider
# Remove when https://github.com/NixOS/nixpkgs/issues/393332 resolved (likely when 25.05 is out) godot-mono
# godot-mono
(symlinkJoin {
name = "godot-mono";
paths = [ inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".godot-mono ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/godot4-mono --set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1
'';
})
]; ];
} }

View File

@@ -6,17 +6,18 @@ let
in in
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) nerd-fonts.space-mono
]; ];
programs = { programs = {
vscode = { vscode = {
enable = true; enable = true;
package = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".vscodium; package = pkgs.vscodium;
mutableExtensionsDir = false; mutableExtensionsDir = false;
profiles.default = {
enableUpdateCheck = false; enableUpdateCheck = false;
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
extensions = with openvsx;[ extensions = (with openvsx;[
biomejs.biome biomejs.biome
mkhl.direnv mkhl.direnv
dracula-theme.theme-dracula dracula-theme.theme-dracula
@@ -34,7 +35,7 @@ in
rust-lang.rust-analyzer rust-lang.rust-analyzer
tamasfe.even-better-toml tamasfe.even-better-toml
mikestead.dotenv mikestead.dotenv
] ++ [ vscode-marketplace.bradlc.vscode-tailwindcss ]; ]) ++ (with vscode-marketplace;[ bradlc.vscode-tailwindcss ]);
userSettings = with pkgs;{ userSettings = with pkgs;{
"workbench.iconTheme" = "material-icon-theme"; "workbench.iconTheme" = "material-icon-theme";
"window.titleBarStyle" = "custom"; "window.titleBarStyle" = "custom";
@@ -89,5 +90,6 @@ in
}; };
}; };
}; };
};
} }

View File

@@ -1,10 +1,10 @@
{ inputs, pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
steamguard-cli steamguard-cli
bottles bottles
inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".ryubing ryubing
mgba mgba
scanmem scanmem
heroic heroic