diff --git a/README.md b/README.md deleted file mode 100644 index 836a38c..0000000 --- a/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# Nix - -Nix setup for server - -## Install - -```bash -# First time install -curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install - -# Install / Update -nix run home-manager -- switch --flake github:cupcakearmy/nix-cli#root -b bkp -``` - -## Update - -This can be run on any machine. Just update and then just rerun on the targets - -```bash -nix flake update - -# To test -nix run home-manager -- build --flake .#root -``` diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 77ee9f5..0000000 --- a/flake.lock +++ /dev/null @@ -1,48 +0,0 @@ -{ - "nodes": { - "home-manager": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1735774425, - "narHash": "sha256-C73gLFnEh8ZI0uDijUgCDWCd21T6I6tsaWgIBHcfAXg=", - "owner": "nix-community", - "repo": "home-manager", - "rev": "5f6aa268e419d053c3d5025da740e390b12ac936", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "home-manager", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1735471104, - "narHash": "sha256-0q9NGQySwDQc7RhAV2ukfnu7Gxa5/ybJ2ANT8DQrQrs=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "88195a94f390381c6afcdaa933c2f6ff93959cb4", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "home-manager": "home-manager", - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index b390b1d..0000000 --- a/flake.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - description = "nix base CLI env"; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - home-manager = { - url = "github:nix-community/home-manager"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - }; - - outputs = - { nixpkgs, home-manager, ... }: - let - system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; - in - { - homeConfigurations."root" = home-manager.lib.homeManagerConfiguration { - inherit pkgs; - modules = [ ./home.nix ]; - }; - }; -} diff --git a/home.nix b/home.nix deleted file mode 100644 index cde7feb..0000000 --- a/home.nix +++ /dev/null @@ -1,78 +0,0 @@ -{ config, pkgs, ... }: - -{ - - home = { - username = "root"; - homeDirectory = "/root"; - stateVersion = "25.05"; # Please read the comment before changing. - - packages = with pkgs; [ - neovim - tmux - - git - gnutar - btop - - # Rust utils - bat - eza - fd - ripgrep - ripgrep-all - zoxide - uutils-coreutils-noprefix - dust - yazi - starship - rclone - - nerd-fonts.jetbrains-mono - - ]; - - sessionVariables = { - EDITOR = "nvim"; - }; - - shellAliases = { - l = "eza -a1lh"; - ls = "eza"; - dc = "docker compose"; - rsync = "rsync -az --info=progress2"; - t = "tmux new-session -A -s main"; - e = "nvim"; - g = "lazygit"; - d = "lazydocker"; - vai = "home-manager switch --flake github:cupcakearmy/nix-cli#root -b backup"; - }; - }; - - programs = { - home-manager.enable = true; - starship.enable = true; - bash.enable = true; - fish.enable = true; - tmux = { - enable = true; - clock24 = true; - mouse = true; - extraConfig = '' - # switch panes using Alt-arrow without prefix - bind -n M-Left select-pane -L - bind -n M-Right select-pane -R - bind -n M-Up select-pane -U - bind -n M-Down select-pane -D - - # switch panes using jkhl - bind h select-pane -L - bind l select-pane -R - bind j select-pane -U - bind k select-pane -D - ''; - shell = "${pkgs.fish}/bin/fish"; - terminal = "tmux-256color"; - }; - }; -}