Last active
March 23, 2023 07:53
-
-
Save haruki7049/aa9c3ada92167f194785248898d16286 to your computer and use it in GitHub Desktop.
動画で使ったNixOSのconfiguration.nix。https://youtu.be/Z8Gx1-bW8rI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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