Add microsd card to spike

This commit is contained in:
Artemis Tosini 2023-10-18 19:54:46 +00:00
parent 6cf43e663e
commit 696f20f632
Signed by: artemist
GPG key ID: EE5227935FE3FF18
4 changed files with 33 additions and 22 deletions

View file

@ -201,11 +201,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696737557, "lastModified": 1697555443,
"narHash": "sha256-YD/pjDjj/BNmisEvRdM/vspkCU3xyyeGVAUWhvVSi5Y=", "narHash": "sha256-nsq8A+adEdN7bvVdz09LFyrHkTW5GtOzo/ctlHhyaaE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "3c1d8758ac3f55ab96dcaf4d271c39da4b6e836d", "rev": "b3acf1dc78b38a2fe03b287fead44d7ad25ac7c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -250,11 +250,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696736548, "lastModified": 1697340827,
"narHash": "sha256-Dg0gJ9xVXud55sAbXspMapFYZOpVAldQQo7MFp91Vb0=", "narHash": "sha256-XlrR68N7jyaZ0bs8TPrhqcWG0IPG3pbjrKzJMpYOsos=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "2902dc66f64f733bfb45754e984e958e9fe7faf9", "rev": "29977d0796c058bbcfb2df5b18eb5badf1711007",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -265,11 +265,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1696614066, "lastModified": 1697100850,
"narHash": "sha256-nAyYhO7TCr1tikacP37O9FnGr2USOsVBD3IgvndUYjM=", "narHash": "sha256-qSAzJVzNRIo+r3kBjL8TcpJctcgcHlnZyqdzpWgtg0M=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "bb2db418b616fea536b1be7f6ee72fb45c11afe0", "rev": "fb6af288f6cf0f00d3af60cf9d5110433b954565",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -280,11 +280,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1696604326, "lastModified": 1697456312,
"narHash": "sha256-YXUNI0kLEcI5g8lqGMb0nh67fY9f2YoJsILafh6zlMo=", "narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "87828a0e03d1418e848d3dd3f3014a632e4a4f64", "rev": "ca012a02bf8327be9e488546faecae5e05d7d749",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -338,11 +338,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1696859421, "lastModified": 1697534983,
"narHash": "sha256-cEEUxnv9oX9NDWo9cox7I5Rq59afIeEVilHkRuvE3jk=", "narHash": "sha256-BRFBhLehpdoxtaRpPUzwSpZuVMjcmbhozhMNbeoDslk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "934bf7e2e3770ad7302e3ac90c2011dde72ca8e7", "rev": "465d09849a600f90e55f8a0f898fd11c2e292207",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -436,11 +436,11 @@
}, },
"private": { "private": {
"locked": { "locked": {
"lastModified": 1692761801, "lastModified": 1696997284,
"narHash": "sha256-+mYwFUA7H5FG1uAst2CBuj+FFKQ7+u9N4KbBerFvVsA=", "narHash": "sha256-4Gh4M1kKThixZNc8Nm0oxm+tqkpaqM+lslr0UT2SS0o=",
"ref": "unified", "ref": "unified",
"rev": "2e75302ff38830fdebecaa24ee0debebb9fab3d8", "rev": "2dd16f02cfdba921cef8655879a0d59af2a89604",
"revCount": 32, "revCount": 33,
"type": "git", "type": "git",
"url": "ssh://git@github.com/artemist/nixos-config-private" "url": "ssh://git@github.com/artemist/nixos-config-private"
}, },
@ -500,11 +500,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695603143, "lastModified": 1696963281,
"narHash": "sha256-7iR+IWQcKdRwazFQSM5RxfvXihN1jILVN7jx2QObG2g=", "narHash": "sha256-gwLI5QDyw7Jj2d+W5t6UJOuHCTuCmm1B25UlO3eNvUQ=",
"owner": "mildlyfunctionalgays", "owner": "mildlyfunctionalgays",
"repo": "rustybar", "repo": "rustybar",
"rev": "ea274f26c9fc3a1adc88b9b80dd67f35330f65a3", "rev": "73886c37da6d3db8791fb6ed60dd370b5f3c8c5f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -26,6 +26,7 @@
nssmdns = true; nssmdns = true;
}; };
flatpak.enable = true; flatpak.enable = true;
fwupd.enable = true;
pcscd.enable = true; pcscd.enable = true;
printing.enable = true; printing.enable = true;
udev.packages = [ (pkgs.callPackage ../externals/rules/uhk.nix { }) ]; udev.packages = [ (pkgs.callPackage ../externals/rules/uhk.nix { }) ];

View file

@ -14,4 +14,9 @@
allowDiscards = true; allowDiscards = true;
}; };
}]; }];
# This has to go in crypttab because we won't have the keyfile in the initrd
environment.etc.crypttab.text = ''
microsd /dev/disk/by-uuid/51ed9e97-06cf-4c54-a71a-c182bb0ced9e /var/lib/private/µsd_key
'';
} }

View file

@ -22,6 +22,11 @@
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/media/µsd" = {
device = "/dev/disk/by-uuid/9fc168c9-849d-4897-8f0c-564f0b74b3ef";
fsType = "ext4";
};
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking