summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2024-12-07 16:43:59 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2024-12-07 16:43:59 +0100
commitf3bc47f8df2aada734096fc5288c34d038f9cc41 (patch)
tree0cc5c125310663844441d0519f93ec784daefa30
parentd7ffc5b0db864b804e490467cb6441546b089d63 (diff)
init: flake
-rw-r--r--flake.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..f127bc8
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,50 @@
+{
+ description = "Minimal NixOS installation media";
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
+ outputs = {
+ self,
+ nixpkgs,
+ }: {
+ packages.x86_64-linux.default = self.nixosConfigurations.exampleIso.config.system.build.isoImage;
+ nixosConfigurations.chaos = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [
+ ({
+ config,
+ pkgs,
+ modulesPath,
+ ...
+ }: {
+ imports = [(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")];
+
+ environment.systemPackages = with pkgs; [vim];
+
+ nix.settings.experimental-features = ["nix-command" "flakes"];
+ programs.git = {
+ enable = true;
+ config.user = {
+ name = "Root user of ${config.networking.hostName}";
+ email = "root@${config.networking.hostName}";
+ };
+ };
+
+ networking.hostName = "chaos";
+ users.users.root.openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4wGbl3++lqCjLUhoRyABBrVEeNhIXYO4371srkRoyq qaristote@latitude-7490"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvPsKWQXX/QsFQjJU0CjG4LllvUVZme45d9JeS/yhLt qaristote@precision-3571"
+ ];
+
+ time.time = "Europe/Paris";
+ i18n = {
+ defaultLocal = "fr_FR.utf8";
+ extraLocaleSettings.LANG = "en_US.utf8";
+ };
+ console = {
+ "font" = "Lat2-Terminus32";
+ keyMap = "fr";
+ };
+ })
+ ];
+ };
+ };
+}