framework: reformat

This commit is contained in:
tristan 2025-04-29 02:08:33 +01:00
parent e97a74b983
commit 93deb49d44
5 changed files with 46 additions and 42 deletions

View file

@ -1,44 +1,48 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/mapper/crypted";
fsType = "btrfs";
options = [ "subvol=@root" ];
};
fileSystems."/" = {
device = "/dev/mapper/crypted";
fsType = "btrfs";
options = ["subvol=@root"];
};
boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/84ad0e15-0056-4d46-801d-7735c2c6a5f6";
fileSystems."/home" =
{ device = "/dev/mapper/crypted";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
fileSystems."/home" = {
device = "/dev/mapper/crypted";
fsType = "btrfs";
options = ["subvol=@home"];
};
fileSystems."/nix" =
{ device = "/dev/mapper/crypted";
fsType = "btrfs";
neededForBoot = true;
options = [ "subvol=@nix" "noatime" ];
};
fileSystems."/nix" = {
device = "/dev/mapper/crypted";
fsType = "btrfs";
neededForBoot = true;
options = ["subvol=@nix" "noatime"];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-label/SWAP"; }
];
swapDevices = [
{device = "/dev/disk/by-label/SWAP";}
];
# 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
@ -50,7 +54,6 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.hostName = "framework-13";
system.stateVersion = "24.11"; # do not change
@ -76,13 +79,9 @@
}
];
stylix.fonts.sizes = {
applications = 12;
desktop = 10;
terminal = 15;
};
}

View file

@ -3,8 +3,7 @@
pkgs,
config,
...
}:
let
}: let
terminal = config.programs.terminal;
termcmd = "${terminal}/bin/${terminal.pname}";
host = "alpine";

View file

@ -62,7 +62,7 @@ in {
programs.chromium = {
extensions = [
{id = "bfogiafebfohielmmehodmfbbebbbpei";}
{id = "bfogiafebfohielmmehodmfbbebbbpei";}
];
};
}

View file

@ -17,7 +17,7 @@
};
home.file.".config/openvr/openvrpaths.vrpath" = {
text = builtins.toJSON {
"config" = [
"config" = [
"${config.home.homeDirectory}/.local/share/Steam/config"
];
"external_drivers" = null;

View file

@ -1,4 +1,10 @@
{ inputs, user, pkgs, lib, ... }: {
{
inputs,
user,
pkgs,
lib,
...
}: {
imports = [inputs.musnix.nixosModules.musnix];
users.users.${user}.extraGroups = ["audio"];
musnix = {