···17171818 # Import home-manager's configuration
1919 ./home-manager.nix
2020+2121+ # Import disko's configuration
2222+ ./disk-config.nix
2023 ];
21242225 nixpkgs = {
···4649 nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
4750 };
48515252+ environment.systemPackages = map lib.lowPrio [
5353+ pkgs.curl
5454+ pkgs.gitMinimal
5555+ ];
5656+4957 networking = {
5058 hostName = "moonlark";
5159 wireless.enable = true;
···6371 ];
6472 extraGroups = ["wheel" "networkmanager" "audio" "docker"];
6573 };
7474+ root.openssh.authorizedKeys.keys = [
7575+ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzEEjvbL/ttqmYoDjxYQmDIq36BabROJoXgQKeh9liBxApwp+2PmgxROzTg42UrRc9pyrkq5kVfxG5hvkqCinhL1fMiowCSEs2L2/Cwi40g5ZU+QwdcwI8a4969kkI46PyB19RHkxg54OUORiIiso/WHGmqQsP+5wbV0+4riSnxwn/JXN4pmnE//stnyAyoiEZkPvBtwJjKb3Ni9n3eNLNs6gnaXrCtaygEZdebikr9kS2g9mM696HvIFgM6cdR/wZ7DcLbG3IdTXuHN7PC3xxL+Y4ek5iMreQIPmuvs4qslbthPGYoYbYLUQiRa9XO5s/ksIj5Z14f7anHE6cuTQVpvNWdGDOigyIVS5qU+4ZF7j+rifzOXVL48gmcAvw/uV68m5Wl/p0qsC/d8vI3GYwEsWG/EzpAlc07l8BU2LxWgN+d7uwBFaJV9VtmUDs5dcslsh8IbzmtC9gq3OLGjklxTfIl6qPiL8U33oc/UwqzvZUrI2BlbagvIZYy6rP+q0= kierank@mockingjay"
7676+ ]
6677 };
67786879 # enable cups
···96107 };
97108 };
981099999- # Requires at least 5.16 for working wi-fi and bluetooth.
110110+ # Requires at least 5.16 for working wi-fi and bluetooth.
100111 # https://community.frame.work/t/using-the-ax210-with-linux-on-the-framework-laptop/1844/89
101112 boot = {
102113 kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") (lib.mkDefault pkgs.linuxPackages_latest);
103103- loader.grub.device = "/dev/disk/by-uuid/5A0A-6C6E";
114114+ loader.grub = {
115115+ # no need to set devices, disko will add all devices that have a EF02 partition to the list already
116116+ # devices = [ ];
117117+ efiSupport = true;
118118+ efiInstallAsRemovable = true;
119119+ };
104120 };
105121106122 # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
+34
moonlark/disk-config.nix
···11+# Example to create a bios compatible gpt partition
22+{ lib, ... }:
33+{
44+ disko.devices = {
55+ disk = {
66+ main = {
77+ device = "/dev/nvme0n1";
88+ type = "disk";
99+ content = {
1010+ type = "gpt";
1111+ partitions = {
1212+ ESP = {
1313+ type = "EF00";
1414+ size = "500M";
1515+ content = {
1616+ type = "filesystem";
1717+ format = "vfat";
1818+ mountpoint = "/boot";
1919+ };
2020+ };
2121+ root = {
2222+ size = "100%";
2323+ content = {
2424+ type = "filesystem";
2525+ format = "ext4";
2626+ mountpoint = "/";
2727+ };
2828+ };
2929+ };
3030+ };
3131+ };
3232+ };
3333+ };
3434+}
-15
moonlark/hardware-configuration.nix
···1313 boot.kernelModules = [ "kvm-intel" ];
1414 boot.extraModulePackages = [ ];
15151616- fileSystems."/" =
1717- { device = "/dev/disk/by-uuid/609fdd27-3c83-462b-aa3a-86924f13a1f1";
1818- fsType = "ext4";
1919- };
2020-2121- fileSystems."/boot" =
2222- { device = "/dev/disk/by-uuid/5A0A-6C6E";
2323- fsType = "vfat";
2424- options = [ "fmask=0077" "dmask=0077" ];
2525- };
2626-2727- swapDevices =
2828- [ { device = "/dev/disk/by-uuid/96be258e-0dc9-4dde-97d3-d01ab48c9588"; }
2929- ];
3030-3116 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
3217 # (the default) this is the recommended approach. When using systemd-networkd it's
3318 # still possible to use this option, but it's recommended to use it in conjunction