Format nix files using 'nixfmt'

main
Hektor Misplon 2025-10-05 13:07:46 +02:00
parent fc7e346f1e
commit 91a1c7f6ca
6 changed files with 65 additions and 37 deletions

View File

@ -13,13 +13,22 @@
};
};
outputs = { self, nixpkgs, disko, home-manager }: {
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
outputs =
{
self,
nixpkgs,
disko,
home-manager,
}:
{
nixosConfigurations = {
vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
./hosts/vm/configuration.nix
home-manager.nixosModules.home-manager {
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.h = ./hosts/vm/home.nix;
@ -27,4 +36,5 @@
];
};
};
};
}

View File

@ -3,8 +3,7 @@
{
system.stateVersion = "25.05";
imports =
[
imports = [
./hard.nix
./disk.nix
../../modules/bootloader.nix
@ -16,7 +15,10 @@
../../modules/x.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
disko.devices.disk.main.device = "/dev/vda";

View File

@ -1,14 +1,26 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

View File

@ -2,7 +2,11 @@
{
networking.hostName = "nixos";
networking.wireless = { iwd = { enable = true; }; };
networking.wireless = {
iwd = {
enable = true;
};
};
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 ];