Compare commits

...

10 Commits

Author SHA1 Message Date
0698de4642 update 2025-10-05 10:10:35 +02:00
24fb89bdea update 2025-09-25 13:37:50 +02:00
9063929477 update 2025-09-02 19:43:06 +02:00
128e3b0dc1 working bridge configuration 2025-07-25 16:55:32 +02:00
e2290b064e add qemu bridge configuration 2025-07-17 12:18:57 +02:00
cb3d05058d update 2025-07-17 12:10:02 +02:00
182c35727e update 2025-06-17 17:05:05 +02:00
978920355c update 2025-06-12 23:11:10 +02:00
fcd8c7b029 update & add git rebase configuration 2025-06-01 16:30:46 +02:00
0d2e8c0c53 add makemkv 2025-05-03 10:46:50 +02:00
5 changed files with 31 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" "sg" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
@@ -48,7 +48,7 @@
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; # networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

12
flake.lock generated
View File

@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745033012, "lastModified": 1759573136,
"narHash": "sha256-KjBMsjCzIOWgDqTZMYIriPFmHiQcCb2RhuDh5JF0VVc=", "narHash": "sha256-ILSPD0Dm8p0w0fCVzOx98ZH8yFDrR75GmwmH3fS2VnE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "ae84885d9b6b62dc58ccd300e9ab321a3fd9f9c7", "rev": "5f06ceafc6c9b773a776b9195c3f47bbe1defa43",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -22,11 +22,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1744932701, "lastModified": 1759381078,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=", "narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
"owner": "NixOs", "owner": "NixOs",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef", "rev": "7df7ff7d8e00218376575f0acdcc5d66741351ee",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -30,6 +30,7 @@
./backup-target.nix ./backup-target.nix
./users/shatteredmint.nix ./users/shatteredmint.nix
./qemu-bridges.nix
]; ];
}; };

18
qemu-bridges.nix Normal file
View File

@@ -0,0 +1,18 @@
{ config, libs, pkgs, ... }:
{
networking.bridges.virtbr0.interfaces = [
"enp4s0"
];
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
networking.interfaces.virtbr0 = {
useDHCP = true;
};
virtualisation.libvirtd = {
enable = true;
allowedBridges = [ "virtbr0" ];
};
}

View File

@@ -6,7 +6,7 @@
users.users.shatteredmint = { users.users.shatteredmint = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "nixos-admins" ]; extraGroups = [ "wheel" "nixos-admins" "cdrom" ];
shell = pkgs.zsh; shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKT9u43WNMlu3gnu5z9Twt1vkdNdpf6REfEK/OT4qxjK shatteredmint" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKT9u43WNMlu3gnu5z9Twt1vkdNdpf6REfEK/OT4qxjK shatteredmint"
@@ -33,7 +33,7 @@
ignoreAllDups = true; ignoreAllDups = true;
}; };
initExtra = '' initContent = ''
bindkey '^?' backward-delete-char bindkey '^?' backward-delete-char
bindkey '\e[3~' delete-char bindkey '\e[3~' delete-char
autoload -Uz vcs_info autoload -Uz vcs_info
@@ -51,6 +51,7 @@
userName = "ShatteredMINT"; userName = "ShatteredMINT";
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
pull.rebase = true;
}; };
}; };
@@ -73,6 +74,7 @@
clang clang
nil nil
wl-clipboard wl-clipboard
makemkv
]; ];
home.sessionPath = [ home.sessionPath = [