From 3626a8cb991d5b6de655c460719bb0824e02c335 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 2 Mar 2024 18:59:18 +0100 Subject: [PATCH] Add basic framework laptop host config --- flake.nix | 6 ++++ hosts/leopold/default.nix | 61 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 hosts/leopold/default.nix diff --git a/flake.nix b/flake.nix index c5ebd5e..0f15224 100644 --- a/flake.nix +++ b/flake.nix @@ -89,6 +89,12 @@ ./hosts/ludwig ]; }; + leopold = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs outputs vars;}; + modules = [ + ./hosts/leopold + ]; + }; franz = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs outputs vars;}; modules = [ diff --git a/hosts/leopold/default.nix b/hosts/leopold/default.nix new file mode 100644 index 0000000..b1bc9de --- /dev/null +++ b/hosts/leopold/default.nix @@ -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"; +}