Initial framework setup
Some checks failed
Build NixOS Configurations / build (carbon) (push) Successful in 13m52s
Build NixOS Configurations / build (git) (push) Successful in 1m34s
Build NixOS Configurations / build (gospel) (push) Failing after 31s
Build NixOS Configurations / build (node) (push) Failing after 26s
Some checks failed
Build NixOS Configurations / build (carbon) (push) Successful in 13m52s
Build NixOS Configurations / build (git) (push) Successful in 1m34s
Build NixOS Configurations / build (gospel) (push) Failing after 31s
Build NixOS Configurations / build (node) (push) Failing after 26s
This commit is contained in:
parent
99061b65da
commit
4f2db0b1e5
6 changed files with 226 additions and 31 deletions
114
systems/x86_64-linux/framework/default.nix
Normal file
114
systems/x86_64-linux/framework/default.nix
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
# ./hardware-configuration-zfs.nix
|
||||
# ./zfs.nix
|
||||
./hardware-configuration.nix
|
||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
];
|
||||
|
||||
aa = {
|
||||
nix = {
|
||||
enable = true;
|
||||
useSelfhostedCache = true;
|
||||
remoteBuilder.client.enable = false;
|
||||
};
|
||||
|
||||
archetypes.workstation.enable = true;
|
||||
|
||||
# services.printing.enable = true;
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
configureClientRouting = true;
|
||||
};
|
||||
|
||||
hardware.audio.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# system.zfs.enable = true;
|
||||
apps.yubikey.enable = true;
|
||||
|
||||
user.extraGroups = [
|
||||
"dialout"
|
||||
"video"
|
||||
];
|
||||
};
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
services.fwupd.enable = true;
|
||||
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
storageDriver = "overlay2";
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "framework";
|
||||
networkmanager.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
};
|
||||
|
||||
# This service is problematic
|
||||
# See: https://github.com/NixOS/nixpkgs/issues/180175
|
||||
systemd.services.NetworkManager-wait-online.enable = false;
|
||||
|
||||
# services.tlp.settings = {
|
||||
# USB_DENYLIST = "0000:1111 2222:3333 4444:5555";
|
||||
# };
|
||||
# Still need to run `nix run nixpkgs#bolt -- enroll DEVICE_UUID`
|
||||
services.hardware.bolt.enable = true;
|
||||
|
||||
services.power-profiles-daemon.enable = lib.mkForce false;
|
||||
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
pavucontrol
|
||||
# android-tools
|
||||
# sanoid
|
||||
# # Below 3 installed for sanoid
|
||||
# pv
|
||||
# lzop
|
||||
# mbuffer
|
||||
|
||||
# wireguard-tools
|
||||
|
||||
chromium
|
||||
# prusa-slicer
|
||||
traceroute
|
||||
gnumake
|
||||
hugo
|
||||
nixos-generators
|
||||
vlc
|
||||
signal-desktop
|
||||
# zoom-us
|
||||
];
|
||||
environment.pathsToLink = [
|
||||
"/share/applications"
|
||||
"/share/xdg-desktop-portal"
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "25.11"; # Did you read the comment?
|
||||
}
|
||||
42
systems/x86_64-linux/framework/hardware-configuration.nix
Normal file
42
systems/x86_64-linux/framework/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"thunderbolt"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "UUID=00a14ad6-5635-4b54-b7e2-a35943639bb8";
|
||||
fsType = "bcachefs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/66E9-291D";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ { device = "/dev/disk/by-label/SWAP"; } ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue