clean up mb1 config, newest kernel

This commit is contained in:
Cyryl Płotnicki 2023-04-22 09:26:30 +01:00
parent 4ea38952ab
commit 3e291d27f8
4 changed files with 33 additions and 31 deletions

View file

@ -83,11 +83,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1681205869, "lastModified": 1681977899,
"narHash": "sha256-QCWAkoXhUktVHhsGxQHwcmAqu8XYtWL76tXFfmTFkvo=", "narHash": "sha256-G5/DB7t1t1uhGEwPk6HY2JSVOPp3k9qZC5sOl2vrn7E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "75fa173ef1b15461a9ac437e43455488adaf0b92", "rev": "a433c7995448989e697c9f913405df1a98122885",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -343,11 +343,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1681412802, "lastModified": 1682006489,
"narHash": "sha256-IcEala6vFQ7SFNOPCeXBh9Jbl8nL2QOtLmO7RbDsBbo=", "narHash": "sha256-KW4tKPlHyGLuUgDwh1PD9TESJbORDL0rvEPuIeeV6R0=",
"owner": "oxalica", "owner": "oxalica",
"repo": "nil", "repo": "nil",
"rev": "1d5bc81023c21b22cfbea06a8b4b82963c01b941", "rev": "4cbcf29917ef6919aa70e0e3c47b9ee0988221d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -375,11 +375,11 @@
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
"lastModified": 1681488238, "lastModified": 1682006673,
"narHash": "sha256-3lmiktI0fL132I4A4jTG8oNsrqDLBoLG/IEISiJAQO8=", "narHash": "sha256-yCwDats0hDe44jvuDESMi3oHy4J4xPlw8paEk1xO3o4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d0748d83a59cfec58355e4d4b87d63f340e32bdc", "rev": "8e817025b22c1133ec4b10381af71498f72e7363",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -391,11 +391,11 @@
}, },
"nixpkgs-nixos-unstable": { "nixpkgs-nixos-unstable": {
"locked": { "locked": {
"lastModified": 1681303793, "lastModified": 1681828457,
"narHash": "sha256-JEdQHsYuCfRL2PICHlOiH/2ue3DwoxUX7DJ6zZxZXFk=", "narHash": "sha256-o4Zvs309HOhrNeVloPKqangcKHobsggVt6GFbnEPZlQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fe2ecaf706a5907b5e54d979fbde4924d84b65fc", "rev": "555daa9d339b3df75e58ee558a4fec98ea92521e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -423,11 +423,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1681269223, "lastModified": 1681759395,
"narHash": "sha256-i6OeI2f7qGvmLfD07l1Az5iBL+bFeP0RHixisWtpUGo=", "narHash": "sha256-7aaRtLxLAy8qFVIA26ulB+Q5nDVzuQ71qi0s0wMjAws=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "87edbd74246ccdfa64503f334ed86fa04010bab9", "rev": "cd749f58ba83f7155b7062dd49d08e5e47e44d50",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -439,11 +439,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1681487148, "lastModified": 1681994115,
"narHash": "sha256-Gy/PiI16dgM2ZlYYaaak9hBL6Y1ukxFJkxz6hwV3AFM=", "narHash": "sha256-O/7AVL1iKq4G4Zyf0k71Ki5OOP3U4gH5ms1ZLMPuG1I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "948fed895eea21c672a04d0790f42306a543c004", "rev": "5ea4cf7eafb21011352a3cf857edc2d7c5ccdf70",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -547,11 +547,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1681209176, "lastModified": 1681821695,
"narHash": "sha256-wyQokPpkNZnsl/bVf8m1428tfA0hJ0w/qexq4EizhTc=", "narHash": "sha256-uwyBGo/9IALi97AfMuzkJroQQhV6hkybaZVdw6pRNG4=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "00d5fd73756d424de5263b92235563bc06f2c6e1", "rev": "5698b06b0731a2c15ff8c2351644427f8ad33993",
"type": "github" "type": "github"
}, },
"original": { "original": {

10
nixos/boxes/mb1/boot.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, pkgs, inputs, lib, ... }: {
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.grub = {
devices = [ "/dev/vda" ];
efiSupport = true;
efiInstallAsRemovable = true;
};
}

View file

@ -2,17 +2,12 @@
imports = [ imports = [
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix" "${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
../cli.nix ../cli.nix
./disks.nix
./atuin.nix ./atuin.nix
./boot.nix
./disks.nix
]; ];
networking.hostName = "mb1"; networking.hostName = "mb1";
boot.loader.grub = {
devices = [ "/dev/vda" ];
efiSupport = true;
efiInstallAsRemovable = true;
};
zramSwap = { zramSwap = {
enable = true; enable = true;
algorithm = "zstd"; algorithm = "zstd";

View file

@ -10,13 +10,11 @@ _: {
partitions = [ partitions = [
{ {
name = "boot"; name = "boot";
type = "partition";
start = "0"; start = "0";
end = "1M"; end = "1M";
flags = [ "bios_grub" ]; flags = [ "bios_grub" ];
} }
{ {
type = "partition";
name = "ESP"; name = "ESP";
start = "1M"; start = "1M";
end = "512M"; end = "512M";
@ -29,7 +27,6 @@ _: {
} }
{ {
name = "primary"; name = "primary";
type = "partition";
start = "512M"; start = "512M";
end = "100%"; end = "100%";
part-type = "primary"; part-type = "primary";