From db982d2ee2243f3af756e755fb4ad676276b04c6 Mon Sep 17 00:00:00 2001 From: Haylin Moore Date: Tue, 12 Nov 2024 18:35:39 -0500 Subject: [PATCH] hello world --- flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 28 +++++++++++++++++++++++++ home.nix | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 home.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..fe5e56f --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "catppuccin": { + "locked": { + "lastModified": 1731232837, + "narHash": "sha256-0aIwr/RC/oe7rYkfJb47xjdEQDSNcqpFGsEa+EPlDEs=", + "type": "tarball", + "url": "https://github.com/catppuccin/nix/archive/main.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://github.com/catppuccin/nix/archive/main.tar.gz" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1731235328, + "narHash": "sha256-NjavpgE9/bMe/ABvZpyHIUeYF1mqR5lhaep3wB79ucs=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "60bb110917844d354f3c18e05450606a435d2d10", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1731139594, + "narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "catppuccin": "catppuccin", + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..530864b --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + description = "My Home Manager Flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + catppuccin = { + url = "https://github.com/catppuccin/nix/archive/main.tar.gz"; + }; + }; + + outputs = {nixpkgs, home-manager, catppuccin, ...}: { + defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux; + + homeConfigurations = { + "haylin" = home-manager.lib.homeManagerConfiguration { + pkgs = import nixpkgs { system = "x86_64-linux"; }; + modules = [ + ./home.nix + catppuccin.homeManagerModules.catppuccin + ]; + }; + }; + }; +} diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..0949223 --- /dev/null +++ b/home.nix @@ -0,0 +1,58 @@ +{ config, pkgs, ... }: + +{ + home.username = "haylin"; + home.homeDirectory = "/home/haylin"; + home.stateVersion = "24.05"; # Please read the comment before changing. + programs.home-manager.enable = true; + + services.ssh-agent.enable = true; + + catppuccin = { + enable = true; + flavor = "mocha"; + }; + + programs.zsh = { + enable = true; + oh-my-zsh = { + enable = true; + plugins = [ "git" ]; + theme = "lambda"; + }; + shellAliases = { + upgrade = "home-manager switch"; + }; + initExtra = '' + export PS1=$(echo "$PS1" | sed 's/λ//') + export PS1="%m@$PS1" + ''; + }; + + programs.zellij = { + enable = true; + enableZshIntegration = true; + }; + + xdg.configFile."zellij/config.kdl".text = '' + simplified_ui true + pane_frames false + default_layout "compact" + + copy_on_select true + on_force_close "quit" + session_serialization false + pane_viewport_serialization false + disable_session_metadata false + + ui { + pane_frames { + hide_session_name true + } + } + ''; + + programs.helix = { + enable = true; + }; +}