Quick commit 2023-10-22T17:09:13+02:00
This commit is contained in:
parent
a8133a9dba
commit
5123cb93a9
2
config/nix/.gitignore
vendored
Normal file
2
config/nix/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.qcow2
|
||||
result
|
4
config/nix/build.sh
Executable file
4
config/nix/build.sh
Executable 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
|
53
config/nix/configuration.nix
Normal file
53
config/nix/configuration.nix
Normal 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";
|
||||
}
|
Loading…
Reference in a new issue