Update flake

This commit is contained in:
thiloho
2024-08-11 19:53:22 +02:00
parent 6ec02ccb7e
commit d5f61ae70b
3 changed files with 33 additions and 26 deletions

View File

@@ -75,23 +75,23 @@
}
);
nixosConfigurations = forAllSystems (system: {
nixosConfigurations = {
module-test = nixpkgs.lib.nixosSystem {
inherit system;
system = "x86_64-linux";
modules = [
./nix/module-test.nix
{ _module.args.localArchtikaPackage = self.packages.${system}.default; }
{ _module.args.localArchtikaPackage = self.packages."x86_64-linux".default; }
];
};
dev-vm = nixpkgs.lib.nixosSystem {
inherit system;
system = "x86_64-linux";
modules = [ ./nix/dev-vm.nix ];
};
demo-server = nixpkgs.lib.nixosSystem {
inherit system;
system = "aarch64-linux";
modules = [ ./nix/demo-server ];
};
});
};
formatter = forAllSystems (
system:

View File

@@ -1,8 +1,6 @@
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
imports = [ ./hardware-configuration.nix ];
boot = {
loader = {

View File

@@ -1,32 +1,41 @@
# 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 = [ "xhci_pci" "virtio_scsi" "sr_mod" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"virtio_scsi"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/af7c3a41-3427-4354-8bf5-bd98698792c5";
fileSystems."/" = {
device = "/dev/disk/by-uuid/af7c3a41-3427-4354-8bf5-bd98698792c5";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/BA3C-CCAF";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/BA3C-CCAF";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/a58e9054-0b76-4da5-ae13-0d73515ec41e"; }
];
swapDevices = [ { device = "/dev/disk/by-uuid/a58e9054-0b76-4da5-ae13-0d73515ec41e"; } ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's