add framework laptop configuration

framework
Stef Dunlap 9 months ago
parent 2d7b50c320
commit 458bcc23f0
  1. 44
      box/framework.nix
  2. 19
      flake.nix
  3. 8
      home/kindrobot.nix

@ -0,0 +1,44 @@
# 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, ... }:
{
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.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["module_blacklist=hid_sensor_hub"];
boot.extraModulePackages = [ ];
networking.hostName = "framework";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d305c844-e0fb-4bf5-9ee0-785914399b9f";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/3AF6-0385";
fsType = "vfat";
};
swapDevices = [ ];
# 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
# 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.interfaces.wlp166s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.bluetooth.enable = true;
}

@ -52,6 +52,25 @@
}
];
};
nixosConfigurations.framework = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.config.allowUnfreePredicate = (pkg: true);
})
./conf/workstation.nix
./box/framework.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.kindrobot.imports = [
./home/kindrobot.nix
./home/kindrobot-linux.nix
./home/email_accounts.nix
];
}
];
};
nixosConfigurations.y500 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

@ -56,7 +56,7 @@
programs.z-lua.enable = true;
programs.ssh.enable = true;
programs.ssh.extraConfig =
''
''
# Turn CanonicalizeHostname on for Match to work below.
CanonicalizeHostname yes
@ -88,6 +88,10 @@
Host gerrit.wikimedia.org
Port 29418
Host *.wmflabs *.wikimedia.cloud
User kindrobot
ProxyJump bastion.wmcloud.org:22
Host town
Hostname tilde.town
@ -97,7 +101,7 @@
Hostname tilde.team
User kindrobot
ForwardAgent yes
'';
'';
services.kdeconnect = {
enable = true;
};

Loading…
Cancel
Save