This commit is contained in:
Daylin Morgan 2023-01-24 10:16:15 -06:00
parent f266518fa1
commit 8b8a635693
2 changed files with 34 additions and 64 deletions

View file

@ -18,6 +18,13 @@
./modules/environment.nix
];
};
jeran = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./modules/configuration.nix
./modules/environment.nix
];
};
};
};
}

View file

@ -1,11 +1,19 @@
{ lib, config, pkgs, ... }:
{
imports =
[
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
imports = [
<nixpkgs/nixos/modules/virtualisation/google-compute-image.nix>
];
security.sudo.wheelNeedsPassword = false;
users.defaultUserShell = pkgs.zsh;
users.extraUsers.daylin = {
isNormalUser = true;
extraGroups = ["wheel" "docker"];
useDefaultShell = true;
};
services.openssh.passwordAuthentication = true;
system.stateVersion = "22.11";
nixpkgs.config.allowUnfree = true;
nix.package = pkgs.nixUnstable;
@ -14,48 +22,19 @@
'';
boot.kernelPackages = pkgs.linuxPackages_latest;
virtualisation.virtualbox.guest.enable = true;
networking.hostName = "nixos-vm"; # Define your hostname.
networking.hostName = "jeran"; # Define your hostname.
time.timeZone = "America/Chicago";
programs.zsh.enable = true;
programs.nix-ld.enable = true;
services.xserver = {
enable = true;
displayManager.startx.enable = true;
displayManager.sddm.enable = lib.mkForce false;
displayManager.autoLogin.enable = lib.mkForce false;
windowManager.qtile.enable = true;
};
# Define a user account. Don't forget to set a password with passwd.
users = {
defaultUserShell = pkgs.zsh;
users.daylin = {
shell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
};
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-emoji
noto-fonts-extra
(nerdfonts.override { fonts = [ "FiraCode" "FiraMono" ]; })
];
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
fuse
zsh
tmux
wget
unzip
htop
less
gnumake
gcc
@ -64,39 +43,23 @@
vim
neovim
starship
atuin
# sheldon
chezmoi
fzf
delta
ripgrep
lsd
gh
lazygit
nixpkgs-fmt
xdotool
wezterm
eww
rofi
dunst
feh
picom
gtk3
gnome.adwaita-icon-theme
gnome.gnome-settings-daemon
catppuccin-gtk
wavebox
pciutils
(vivaldi.override {
proprietaryCodecs = true;
enableWidevine = false;
commandLineArgs = "--force-dark-mode";
})
vscode.fhs
nodejs
go
rustup
];