Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- imports = [
- #<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
- <nixpkgs/nixos/modules/profiles/base.nix>
- ];
- # Let demo build as a trusted user.
- nix.trustedUsers = [ "demo" "skykanin"];
- boot.loader.grub.device ="/dev/sda";
- fileSystems = [ # Mount the root file system #
- { mountPoint ="/"; device ="/dev/sda1";}
- ];
- networking.hostName = "skykanins-machine";
- environment.systemPackages = with pkgs; [
- git
- wget
- emacs
- oh-my-zsh
- ];
- # Mount a VirtualBox shared folder.
- # This is configurable in the VirtualBox menu at
- # Machine / Settings / Shared Folders.
- # fileSystems."/mnt" = {
- # fsType = "vboxsf";
- # device = "nameofdevicetomount";
- # options = [ "rw" ];
- # };
- # By default, the NixOS VirtualBox demo image includes SDDM and Plasma.
- # If you prefer another desktop manager or display manager, you may want
- # to disable the default.
- # services.xserver.desktopManager.plasma5.enable = false;
- # services.xserver.displayManager.sddm.enable = false;
- services.xserver = {
- enable = true;
- windowManager.i3 = {
- enable = true;
- package = pkgs.i3-gaps;
- extraPackages = with pkgs; [
- dmenu
- i3status
- i3lock
- ];
- };
- desktopManager = {
- plasma5.enable = false;
- xfce.enable = true;
- };
- displayManager = {
- sddm.enable = false;
- lightdm = {
- enable = true;
- autoLogin = {
- enable = true;
- user = "skykanin";
- };
- };
- };
- };
- # Create user
- users.users.skykanin = {
- isNormalUser = true;
- description = "Skykanin Foobar";
- extraGroups = [ "wheel" "audio" "networkmanager" "postgres"];
- initialPassword = "skykanin";
- };
- # Use zsh as default shell
- users.defaultUserShell = pkgs.zsh;
- programs.zsh = {
- ohMyZsh = {
- enable = true;
- };
- syntaxHighlighting.enable = true;
- interactiveShellInit = ''
- export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh
- #Customise your oh-my-zsh options here
- ZSH_THEME="agnoster"
- plugins=(git)
- source $ZSH/oh-my-zsh.sh
- '';
- promptInit = ""; # Clear this to avoid a conflict with oh-my-zsh
- };
- # Set your time zone.
- time.timeZone = "Europe/Oslo";
- system.autoUpgrade.enable = true;
- nixpkgs.config.allowUnfree = true;
- # Enable the OpenSSH daemon.
- services.openssh.enable = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement