Skip to content

Commit

Permalink
Add jaggi config base
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 22, 2023
1 parent c821f22 commit 4c62a90
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 0 deletions.
22 changes: 22 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
20 changes: 20 additions & 0 deletions jaggermachine/config.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
107 changes: 107 additions & 0 deletions jaggermachine/home.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit 4c62a90

Please sign in to comment.