From 8b8a635693de1dffa372f1d77ea8f051dcf79f44 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 24 Jan 2023 10:16:15 -0600 Subject: [PATCH] future --- flake.nix | 7 +++ modules/configuration.nix | 91 ++++++++++++--------------------------- 2 files changed, 34 insertions(+), 64 deletions(-) diff --git a/flake.nix b/flake.nix index 8b7fcb7..728aee3 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,13 @@ ./modules/environment.nix ]; }; + jeran = inputs.nixpkgs.lib.nixosSystem { +system = "x86_64-linux"; +modules = [ + ./modules/configuration.nix + ./modules/environment.nix +]; }; }; +}; } diff --git a/modules/configuration.nix b/modules/configuration.nix index 33fcbf8..bf0775e 100644 --- a/modules/configuration.nix +++ b/modules/configuration.nix @@ -1,11 +1,19 @@ { lib, config, pkgs, ... }: - { - imports = - [ - - ]; + imports = [ + + ]; + 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 ];