From 2e9f75908c1a14dcdae033290d70bac6f0b2289a Mon Sep 17 00:00:00 2001 From: zackartz Date: Sat, 27 Apr 2024 21:12:31 -0400 Subject: [PATCH] 483 current 2024-04-27 21:12:21 24.05.20240427.9d3911e 6.8.6-zen1 * --- README.md | 23 ++++++++++ hosts/earth/configuration.nix | 5 +-- modules/home-manager/applications.nix | 34 ++++++++++++++ modules/home-manager/default.nix | 65 --------------------------- modules/home-manager/zack.nix | 19 ++++++++ 5 files changed, 77 insertions(+), 69 deletions(-) create mode 100644 modules/home-manager/applications.nix create mode 100644 modules/home-manager/zack.nix diff --git a/README.md b/README.md index e5d25b1..498e9a9 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,26 @@ my customized versions of other's dotfiles major credits to [sioodmy](https://github.com/sioodmy/dotfiles) and [luckasRanarison](https://github.com/luckasRanarison/nvimrc). could not have done this without their work :) + +## How to Install + +### Prerequisetes + +Grab the latest NixOS ISO from NixOS [nixos.org](https://nixos.org). After that, make a new shell with git available: + +```bash +nix shell nixpkgs#git +``` + +Now, configure your disk as seen [here](https://nixos.wiki/wiki/NixOS_Installation_Guide#Partitioning). + +> [!NOTE] +> Just follow the partitioning and mounting steps, the other steps to install will be listed below. + +### 1. Cloning the repository + +With git installed, clone the repository with + +```bash +git clone https://github.com/zackartz/nixos-dots.git && cd nixos-dots +``` diff --git a/hosts/earth/configuration.nix b/hosts/earth/configuration.nix index b8c8880..c8084f8 100644 --- a/hosts/earth/configuration.nix +++ b/hosts/earth/configuration.nix @@ -1,6 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, @@ -153,7 +150,7 @@ extraSpecialArgs = {inherit inputs;}; users = { "zack" = { - imports = [../../modules/home-manager/default.nix]; + imports = [../../modules/home-manager/zack.nix]; _module.args.theme = import ../../core/theme.nix; home.username = "zack"; diff --git a/modules/home-manager/applications.nix b/modules/home-manager/applications.nix new file mode 100644 index 0000000..c671824 --- /dev/null +++ b/modules/home-manager/applications.nix @@ -0,0 +1,34 @@ +{ + pkgs, + inputs, + ... +}: { + home.packages = [ + pkgs.vesktop + pkgs.gimp + pkgs.slack + + pkgs.zoom-us + + pkgs.prismlauncher + pkgs.obs-studio + inputs.kb-gui.packages.${pkgs.system}.kb + + pkgs.jetbrains.idea-community + pkgs.jetbrains.datagrip + pkgs.ungoogled-chromium + + pkgs.thunderbird + + pkgs.mongodb-compass + pkgs.postman + pkgs.mosh + + pkgs.parsec-bin + pkgs.filezilla + pkgs.steam + pkgs.ghidra + pkgs.zed-editor + pkgs.openvpn + ]; +} diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 891fea8..f3a4c4c 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -72,74 +72,21 @@ in { # release notes. home.stateVersion = "23.11"; # Please read the comment before changing it. - # The home.packages option allows you to install Nix packages into your - # environment. home.packages = [ - # # Adds the 'hello' command to your environment. It prints a friendly - # # "Hello, world!" when run. - # pkgs.hello - - # # It is sometimes useful to fine-tune packages, for example, by applying - # # overrides. You can do that directly here, just don't forget the - # # parentheses. Maybe you want to install Nerd Fonts with a limited number of - # # fonts? - # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) - - # pkgs.discord - # pkgs.webcord - pkgs.vesktop - pkgs.gimp - pkgs.slack (pkgs.nerdfonts.override {fonts = ["Iosevka"];}) - pkgs.git - pkgs.neovide pkgs.wofi - pkgs.alejandra pkgs.dconf pkgs.wl-clipboard pkgs.swaybg - pkgs.zoom-us pkgs.pavucontrol pkgs.wlogout - pkgs.prismlauncher - pkgs.obs-studio - inputs.kb-gui.packages.${pkgs.system}.kb pkgs.sway-audio-idle-inhibit pkgs.hyprshot - pkgs.jetbrains.idea-community - pkgs.jetbrains.datagrip - pkgs.ungoogled-chromium - pkgs.google-chrome # fuck - - pkgs.thunderbird - - pkgs.mongodb-compass - pkgs.postman - pkgs.mosh - - pkgs.openvpn pkgs.nix-output-monitor pkgs.nh - pkgs.parsec-bin - pkgs.filezilla - pkgs.steam - pkgs.gerbera - - pkgs.devenv - pkgs.ghidra - - pkgs.zed-editor - - # # You can also create simple shell scripts directly inside your - # # configuration. For example, this adds a command 'my-hello' to your - # # environment: - # (pkgs.writeShellScriptBin "my-hello" '' - # echo "Hello, ${config.home.username}!" - # '') - pkgs.killall (pkgs.writeShellScriptBin "rebuild" '' #!${pkgs.bash}/bin/bash @@ -183,18 +130,6 @@ in { catppuccin.enable = true; }; - systemd.user.services.kb-gui = { - Unit = { - Description = "KB Time/Date thing"; - }; - Install = { - WantedBy = ["default.target"]; - }; - Service = { - ExecStart = "${inputs.kb-gui.packages.${pkgs.system}.kb}/bin/kb"; - }; - }; - systemd.user.services.xwaylandvideobridge = { Unit = { Description = "Tool to make it easy to stream wayland windows and screens to exisiting applications running under Xwayland"; diff --git a/modules/home-manager/zack.nix b/modules/home-manager/zack.nix new file mode 100644 index 0000000..303ed67 --- /dev/null +++ b/modules/home-manager/zack.nix @@ -0,0 +1,19 @@ +{ + inputs, + pkgs, + ... +}: { + imports = [./default.nix ./applications.nix]; + + systemd.user.services.kb-gui = { + Unit = { + Description = "KB Time/Date thing"; + }; + Install = { + WantedBy = ["default.target"]; + }; + Service = { + ExecStart = "${inputs.kb-gui.packages.${pkgs.system}.kb}/bin/kb"; + }; + }; +}