From 4c62a9039223d8955a40b71c7bab32791f8c7224 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 22 Sep 2023 18:16:14 +0200 Subject: [PATCH] Add jaggi config base --- flake.nix | 22 ++++++++ jaggermachine/config.nix | 20 ++++++++ jaggermachine/home.nix | 107 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 jaggermachine/config.nix create mode 100644 jaggermachine/home.nix diff --git a/flake.nix b/flake.nix index 9b40407..2fdba01 100644 --- a/flake.nix +++ b/flake.nix @@ -90,6 +90,28 @@ ]; }; + # Shared machine + Jaggermachine = let + username = "jaggi"; + in nixpkgs.lib.nixosSystem { + inherit system; + + modules = default_modules ++ [ + (import ./config { hostname = "Jaggermachine"; }) + ./config/sigmachine.nix + ./jaggermachine/config.nix + ./hardware/sigmachine.nix + + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.${username} = import ./jaggermachine/home.nix; + home-manager.extraSpecialArgs = { inherit username system; }; + } + ]; + }; + Server = nixpkgs.lib.nixosSystem { inherit system; diff --git a/jaggermachine/config.nix b/jaggermachine/config.nix new file mode 100644 index 0000000..4aacc3c --- /dev/null +++ b/jaggermachine/config.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: +{ + services.xserver.desktopManager.plasma5.enable = true; + services.xserver.displayManager.sddm.enable = true; + + virtualisation = { + docker.enable = true; + vmVariant.virtualisation = { + memorySize = 4096; + cores = 6; + }; + }; + + users.users.jaggi = { + isNormalUser = true; + shell = pkgs.zsh; + extraGroups = [ "networkmanager" "libvirtd" "wheel" ]; + initialPassword = "hello"; + }; +} diff --git a/jaggermachine/home.nix b/jaggermachine/home.nix new file mode 100644 index 0000000..8f8475d --- /dev/null +++ b/jaggermachine/home.nix @@ -0,0 +1,107 @@ +{ pkgs, username, ... }: +{ + nixpkgs.config.allowUnfree = true; + + imports = [ + ../home/bash + ../home/btop + ../home/neofetch + ../home/picom + ../home/dunst + ../home/firefox + ../home/thunar + ../home/tmux + ../home/zsh + + ../home/betterlockscreen + ../home/cursor.nix + ../home/extra_files.nix + ../home/flameshot.nix + ../home/kitty.nix + ]; + + home = { + inherit username; + homeDirectory = "/home/${username}"; + + stateVersion = "22.11"; + sessionVariables = { + EDITOR = pkgs.nano; + }; + + packages = with pkgs; let + vencord = (discord.override { + withOpenASAR = true; + withVencord = true; + }); + in + [ + # settings + arandr + brightnessctl + lxappearance + + # volume + pamixer + pulsemixer + pavucontrol + + # messaging + vencord + + tdesktop + + # dev + jetbrains.jdk + jetbrains.jcef + jetbrains-toolbox + + gnumake + tokei + wakatime + + # misc + gimp + neofetch + obsidian + pass + + # utils + jgmenu + peek + ripgrep + dconf + + zls + ]; + }; + + dconf = { + enable = true; + settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + }; + }; + + programs = { + home-manager.enable = true; + + bat = { + enable = true; + config.theme = "base16"; + }; + + dircolors.enable = true; + + direnv = { + enable = true; + nix-direnv.enable = true; + enableZshIntegration = true; + }; + + feh.enable = true; + lazygit.enable = true; + }; +}