Skip to content

Instantly share code, notes, and snippets.

@haruki7049
Last active March 23, 2023 07:53
Show Gist options
  • Save haruki7049/aa9c3ada92167f194785248898d16286 to your computer and use it in GitHub Desktop.
Save haruki7049/aa9c3ada92167f194785248898d16286 to your computer and use it in GitHub Desktop.
動画で使ったNixOSのconfiguration.nix。https://youtu.be/Z8Gx1-bW8rI
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "dell-chan";
networking.networkmanager.enable = true;
time.timeZone = "Asia/Tokyo";
users = {
users = {
root = {
isSystemUser = true;
extraGroups = [
"root"
];
};
haruki = {
isNormalUser = true;
extraGroups = [
"wheel"
];
};
};
};
environment.systemPackages = with pkgs; [
vim
wget
];
services.openssh.enable = true;
system.copySystemConfiguration = true;
system.stateVersion = "22.11";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment