Add basic framework laptop host config

This commit is contained in:
GHOSCHT 2024-03-02 18:59:18 +01:00
parent 03c92b4722
commit 3626a8cb99
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 67 additions and 0 deletions

View file

@ -89,6 +89,12 @@
./hosts/ludwig ./hosts/ludwig
]; ];
}; };
leopold = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs vars;};
modules = [
./hosts/leopold
];
};
franz = nixpkgs.lib.nixosSystem { franz = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs vars;}; specialArgs = {inherit inputs outputs vars;};
modules = [ modules = [

61
hosts/leopold/default.nix Normal file
View file

@ -0,0 +1,61 @@
{
inputs,
outputs,
lib,
config,
pkgs,
heliox-cli,
...
}: {
imports = [
inputs.hardware.nixosModules.framework-13th-gen-intel
inputs.hardware.nixosModules.common-pc-ssd
./hardware-configuration.nix
../common/global
../common/optional/desktop/awesome.nix
../common/optional/systemd-boot.nix
../common/optional/wireshark.nix
../common/optional/gnome-keyring.nix
../common/optional/adb.nix
../common/optional/docker.nix
../common/optional/desktop/japanese.nix
../common/optional/udisks.nix
];
nix.extraOptions = ''
download-speed = 4000
'';
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
config = {
allowUnfree = true;
firefox.enablePlasmaBrowserIntegration = true;
};
};
networking.hostName = "adalbert";
# For updating Framework firmware
services.fwupd.enable = true;
programs = {
adb.enable = true;
dconf.enable = true;
};
hardware = {
opengl.enable = true;
opentabletdriver.enable = true;
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}