Quick commit 2023-10-22T17:09:13+02:00

This commit is contained in:
Geoffrey Frogeye 2023-10-22 17:09:13 +02:00
parent a8133a9dba
commit 5123cb93a9
3 changed files with 59 additions and 0 deletions

2
config/nix/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.qcow2
result

4
config/nix/build.sh Executable file
View file

@ -0,0 +1,4 @@
#/usr/bin/env sh
nix-build '<nixpkgs/nixos>' -A vm \
-I nixpkgs=channel:nixos-23.05 \
-I nixos-config=./configuration.nix

View file

@ -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";
}