Compare commits
10 Commits
d3a815834c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0698de4642 | |||
| 24fb89bdea | |||
| 9063929477 | |||
| 128e3b0dc1 | |||
| e2290b064e | |||
| cb3d05058d | |||
| 182c35727e | |||
| 978920355c | |||
| fcd8c7b029 | |||
| 0d2e8c0c53 |
@@ -11,7 +11,7 @@
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.kernelModules = [ "kvm-amd" "sg" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
@@ -48,7 +48,7 @@
|
||||
# (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
|
||||
# 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;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
12
flake.lock
generated
12
flake.lock
generated
@@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1745033012,
|
||||
"narHash": "sha256-KjBMsjCzIOWgDqTZMYIriPFmHiQcCb2RhuDh5JF0VVc=",
|
||||
"lastModified": 1759573136,
|
||||
"narHash": "sha256-ILSPD0Dm8p0w0fCVzOx98ZH8yFDrR75GmwmH3fS2VnE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "ae84885d9b6b62dc58ccd300e9ab321a3fd9f9c7",
|
||||
"rev": "5f06ceafc6c9b773a776b9195c3f47bbe1defa43",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -22,11 +22,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1744932701,
|
||||
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
|
||||
"lastModified": 1759381078,
|
||||
"narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
|
||||
"owner": "NixOs",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
|
||||
"rev": "7df7ff7d8e00218376575f0acdcc5d66741351ee",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
./backup-target.nix
|
||||
|
||||
./users/shatteredmint.nix
|
||||
./qemu-bridges.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
18
qemu-bridges.nix
Normal file
18
qemu-bridges.nix
Normal 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" ];
|
||||
|
||||
};
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
users.users.shatteredmint = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "nixos-admins" ];
|
||||
extraGroups = [ "wheel" "nixos-admins" "cdrom" ];
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKT9u43WNMlu3gnu5z9Twt1vkdNdpf6REfEK/OT4qxjK shatteredmint"
|
||||
@@ -33,7 +33,7 @@
|
||||
ignoreAllDups = true;
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
initContent = ''
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey '\e[3~' delete-char
|
||||
autoload -Uz vcs_info
|
||||
@@ -51,6 +51,7 @@
|
||||
userName = "ShatteredMINT";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -73,6 +74,7 @@
|
||||
clang
|
||||
nil
|
||||
wl-clipboard
|
||||
makemkv
|
||||
];
|
||||
|
||||
home.sessionPath = [
|
||||
|
||||
Reference in New Issue
Block a user