From 5123cb93a989e2ef12c757e60fd5f6dd20c213bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 22 Oct 2023 17:09:13 +0200 Subject: [PATCH] Quick commit 2023-10-22T17:09:13+02:00 --- config/nix/.gitignore | 2 ++ config/nix/build.sh | 4 +++ config/nix/configuration.nix | 53 ++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 config/nix/.gitignore create mode 100755 config/nix/build.sh create mode 100644 config/nix/configuration.nix diff --git a/config/nix/.gitignore b/config/nix/.gitignore new file mode 100644 index 0000000..ee0c388 --- /dev/null +++ b/config/nix/.gitignore @@ -0,0 +1,2 @@ +*.qcow2 +result diff --git a/config/nix/build.sh b/config/nix/build.sh new file mode 100755 index 0000000..6b8c518 --- /dev/null +++ b/config/nix/build.sh @@ -0,0 +1,4 @@ +#/usr/bin/env sh +nix-build '' -A vm \ +-I nixpkgs=channel:nixos-23.05 \ +-I nixos-config=./configuration.nix diff --git a/config/nix/configuration.nix b/config/nix/configuration.nix new file mode 100644 index 0000000..df61a89 --- /dev/null +++ b/config/nix/configuration.nix @@ -0,0 +1,53 @@ +{ config, pkgs, ... }: +{ + boot.loader.grub.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "nixos"; + networking.wireless.enable = true; # Enable wireless support via wpa_supplicant + + time.timeZone = "Europe/Amsterdam"; + + # TODO qwerty-fr for console + + # Enable the X11 windowing system + services.xserver.enable = true; + + # TODO qwerty-fr for X11 + + # Enable CUPS to print documents + services.printing.enable = true; + + # Enable sound + sound.enable = true; + hardware.pulseaudio.enable = true; + + # services.xserver.displayManager.gdm.enable = true; + services.xserver.windowManager.i3.enable = true; + + # Users + users.users.geoffrey = { + isNormalUser = true; + extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + packages = with pkgs; [ + firefox + tree + lolcat + ]; + initialPassword = "cartable"; + }; + + environment.systemPackages = with pkgs; [ + neovim + wget + ]; + + # Enable the OpenSSH daemon + services.openssh.enable = true; + + # TEST + system.copySystemConfiguration = true; + + # Use defaults from + system.stateVersion = "23.05"; +}