Compare commits

...

8 Commits

9 changed files with 138 additions and 115 deletions

View File

@@ -51,6 +51,30 @@
services.pipewire = {
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;

View File

@@ -2,7 +2,7 @@
# 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`).
{ inputs, ... }:
{ inputs, pkgs, ... }:
{
imports =
@@ -42,9 +42,10 @@
hardware.tuxedo-drivers.enable = true;
programs.nix-ld.enable = true;
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
dumpcap.enable = true;
};
# Define a user account. Don't forget to set a password with passwd.

46
flake.lock generated
View File

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

View File

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

View File

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

View File

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

View File

@@ -1,17 +1,8 @@
{ pkgs, inputs, ... }:
{ pkgs, ... }:
{
home.packages = with pkgs;[
jetbrains.rider
# Remove when https://github.com/NixOS/nixpkgs/issues/393332 resolved (likely when 25.05 is out)
# 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
'';
})
godot-mono
];
}

View File

@@ -6,86 +6,88 @@ let
in
{
home.packages = with pkgs;[
(nerdfonts.override { fonts = [ "SpaceMono" ]; })
nerd-fonts.space-mono
];
programs = {
vscode = {
enable = true;
package = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".vscodium;
package = pkgs.vscodium;
mutableExtensionsDir = false;
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
extensions = with openvsx;[
biomejs.biome
mkhl.direnv
dracula-theme.theme-dracula
dbaeumer.vscode-eslint
eamodio.gitlens
pkief.material-icon-theme
jnoortheen.nix-ide
esbenp.prettier-vscode
humao.rest-client
loriscro.super
mads-hartmann.bash-ide-vscode
foxundermoon.shell-format
dart-code.flutter
ms-vscode.wasm-wasi-core
rust-lang.rust-analyzer
tamasfe.even-better-toml
mikestead.dotenv
] ++ [ vscode-marketplace.bradlc.vscode-tailwindcss ];
userSettings = with pkgs;{
"workbench.iconTheme" = "material-icon-theme";
"window.titleBarStyle" = "custom";
"workbench.colorTheme" = "Dracula Theme";
"explorer.compactFolders" = false;
"chat.commandCenter.enabled" = false;
profiles.default = {
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
extensions = (with openvsx;[
biomejs.biome
mkhl.direnv
dracula-theme.theme-dracula
dbaeumer.vscode-eslint
eamodio.gitlens
pkief.material-icon-theme
jnoortheen.nix-ide
esbenp.prettier-vscode
humao.rest-client
loriscro.super
mads-hartmann.bash-ide-vscode
foxundermoon.shell-format
dart-code.flutter
ms-vscode.wasm-wasi-core
rust-lang.rust-analyzer
tamasfe.even-better-toml
mikestead.dotenv
]) ++ (with vscode-marketplace;[ bradlc.vscode-tailwindcss ]);
userSettings = with pkgs;{
"workbench.iconTheme" = "material-icon-theme";
"window.titleBarStyle" = "custom";
"workbench.colorTheme" = "Dracula Theme";
"explorer.compactFolders" = false;
"chat.commandCenter.enabled" = false;
"editor.fontFamily" = "'SpaceMono Nerd Font', 'monospace', monospace";
"editor.fontSize" = 16;
"editor.formatOnSave" = true;
"editor.codeActionsOnSave" = {
"source.organizeImports" = "always";
};
"files.autoSave" = "onWindowChange";
"[typescript]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[javascript]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[javascriptreact]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[typescriptreact]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[json]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[jsonc]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"biome.lsp.bin" = "${biome}/bin/biome";
"biome.requireConfigFile" = true;
"typescript.preferences.preferTypeOnlyAutoImports" = true;
"nix.enableLanguageServer" = true; # Enable LSP.
"nix.serverPath" = "${nixd}/bin/nixd"; # The path to the LSP server executable.
"nix.serverSettings" = {
nixd = {
formatting.command = [ "${nixpkgs-fmt}/bin/nixpkgs-fmt" ];
"editor.fontFamily" = "'SpaceMono Nerd Font', 'monospace', monospace";
"editor.fontSize" = 16;
"editor.formatOnSave" = true;
"editor.codeActionsOnSave" = {
"source.organizeImports" = "always";
};
"files.autoSave" = "onWindowChange";
"[typescript]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[javascript]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[javascriptreact]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[typescriptreact]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[json]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"[jsonc]" = {
"editor.defaultFormatter" = "biomejs.biome";
};
"biome.lsp.bin" = "${biome}/bin/biome";
"biome.requireConfigFile" = true;
"typescript.preferences.preferTypeOnlyAutoImports" = true;
"nix.enableLanguageServer" = true; # Enable LSP.
"nix.serverPath" = "${nixd}/bin/nixd"; # The path to the LSP server executable.
"nix.serverSettings" = {
nixd = {
formatting.command = [ "${nixpkgs-fmt}/bin/nixpkgs-fmt" ];
};
};
"bashIde.shellcheckPath" = "${shellcheck}/bin/shellcheck";
"shellformat.path" = "${shfmt}/bin/shfmt";
"rust-analyzer.rustfmt.overrideCommand" = [ "${rustfmt}/bin/rustfmt" ];
};
"bashIde.shellcheckPath" = "${shellcheck}/bin/shellcheck";
"shellformat.path" = "${shfmt}/bin/shfmt";
"rust-analyzer.rustfmt.overrideCommand" = [ "${rustfmt}/bin/rustfmt" ];
};
};
};

View File

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