❄️ Nix configurations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add kitty

Alex 1a6f20bd

+239
+64
flake.lock
··· 1 + { 2 + "nodes": { 3 + "catppuccin": { 4 + "locked": { 5 + "lastModified": 1722997334, 6 + "narHash": "sha256-vE5FcKVQ3E0txJKt5w3vOlfcN1XoTAlxK9PnQ/CJavA=", 7 + "owner": "catppuccin", 8 + "repo": "nix", 9 + "rev": "66f4ea170093b62f319f41cebd2337a51b225c5a", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "catppuccin", 14 + "repo": "nix", 15 + "type": "github" 16 + } 17 + }, 18 + "home-manager": { 19 + "inputs": { 20 + "nixpkgs": [ 21 + "nixpkgs" 22 + ] 23 + }, 24 + "locked": { 25 + "lastModified": 1723399884, 26 + "narHash": "sha256-97wn0ihhGqfMb8WcUgzzkM/TuAxce2Gd20A8oiruju4=", 27 + "owner": "nix-community", 28 + "repo": "home-manager", 29 + "rev": "086f619dd991a4d355c07837448244029fc2d9ab", 30 + "type": "github" 31 + }, 32 + "original": { 33 + "owner": "nix-community", 34 + "repo": "home-manager", 35 + "type": "github" 36 + } 37 + }, 38 + "nixpkgs": { 39 + "locked": { 40 + "lastModified": 1723362943, 41 + "narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=", 42 + "owner": "nixos", 43 + "repo": "nixpkgs", 44 + "rev": "a58bc8ad779655e790115244571758e8de055e3d", 45 + "type": "github" 46 + }, 47 + "original": { 48 + "owner": "nixos", 49 + "ref": "nixos-unstable", 50 + "repo": "nixpkgs", 51 + "type": "github" 52 + } 53 + }, 54 + "root": { 55 + "inputs": { 56 + "catppuccin": "catppuccin", 57 + "home-manager": "home-manager", 58 + "nixpkgs": "nixpkgs" 59 + } 60 + } 61 + }, 62 + "root": "root", 63 + "version": 7 64 + }
+33
flake.nix
··· 1 + { 2 + description = "Home Manager configuration of alex"; 3 + 4 + inputs = { 5 + # Specify the source of Home Manager and Nixpkgs. 6 + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 7 + catppuccin.url = "github:catppuccin/nix"; 8 + home-manager = { 9 + url = "github:nix-community/home-manager"; 10 + inputs.nixpkgs.follows = "nixpkgs"; 11 + }; 12 + }; 13 + 14 + outputs = { nixpkgs, catppuccin, home-manager, ... }: 15 + let 16 + system = "x86_64-linux"; 17 + pkgs = nixpkgs.legacyPackages.${system}; 18 + in { 19 + homeConfigurations."alex" = home-manager.lib.homeManagerConfiguration { 20 + inherit pkgs; 21 + 22 + # Specify your home configuration modules here, for example, 23 + # the path to your home.nix. 24 + modules = [ 25 + ./home/otter 26 + catppuccin.homeManagerModules.catppuccin 27 + ]; 28 + 29 + # Optionally use extraSpecialArgs 30 + # to pass through arguments to home.nix 31 + }; 32 + }; 33 + }
+62
home/common/kitty.nix
··· 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: { 7 + 8 + programs.kitty = { 9 + enable = true; 10 + catppuccin = { 11 + enable = true; 12 + flavor = "macchiato"; 13 + }; 14 + 15 + font = { 16 + name = "Fira Code, Menlo, Monaco, monospace"; 17 + size = 13; 18 + }; 19 + 20 + darwinLaunchOptions = [ 21 + "--single-instance" 22 + ]; 23 + 24 + shellIntegration = { 25 + mode = "no-cursor"; 26 + enableFishIntegration = true; 27 + }; 28 + 29 + keybindings = { 30 + "ctrl+shift+left" = "neighboring_window left"; 31 + "ctrl+shift+right" = "neighboring_window right"; 32 + "ctrl+shift+," = "tab_previous"; 33 + "ctrl+shift+." = "tab_next"; 34 + }; 35 + 36 + settings = { 37 + 38 + enabled_layouts = "splits"; 39 + enable_audio_bell = false; 40 + 41 + tab_bar_style = "powerline"; 42 + tab_bar_min_tabs = 1; 43 + tab_bar_edge = "bottom"; 44 + tab_powerline_style = "slanted"; 45 + tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}"; 46 + 47 + copy_on_select = true; 48 + macos_colorspace = "srgb"; 49 + macos_titlebar_color = "background"; 50 + 51 + window_resize_step_cells = 2; 52 + window_resize_step_lines = 2; 53 + initial_window_width = 640; 54 + initial_window_height = 400; 55 + 56 + allow_hyperlinks = true; 57 + term = "xterm-256color"; 58 + editor = "nvim"; 59 + 60 + }; 61 + }; 62 + }
+80
home/otter/default.nix
··· 1 + { config, pkgs, ... }: 2 + 3 + { 4 + imports = [ 5 + ../common/kitty 6 + ]; 7 + 8 + # Home Manager needs a bit of information about you and the paths it should 9 + # manage. 10 + home.username = "alex"; 11 + home.homeDirectory = "/home/alex"; 12 + 13 + # This value determines the Home Manager release that your configuration is 14 + # compatible with. This helps avoid breakage when a new Home Manager release 15 + # introduces backwards incompatible changes. 16 + # 17 + # You should not change this value, even if you update Home Manager. If you do 18 + # want to update the value, then make sure to first check the Home Manager 19 + # release notes. 20 + home.stateVersion = "24.05"; # Please read the comment before changing. 21 + 22 + # The home.packages option allows you to install Nix packages into your 23 + # environment. 24 + home.packages = [ 25 + # # Adds the 'hello' command to your environment. It prints a friendly 26 + # # "Hello, world!" when run. 27 + # pkgs.hello 28 + 29 + # # It is sometimes useful to fine-tune packages, for example, by applying 30 + # # overrides. You can do that directly here, just don't forget the 31 + # # parentheses. Maybe you want to install Nerd Fonts with a limited number of 32 + # # fonts? 33 + # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) 34 + 35 + # # You can also create simple shell scripts directly inside your 36 + # # configuration. For example, this adds a command 'my-hello' to your 37 + # # environment: 38 + # (pkgs.writeShellScriptBin "my-hello" '' 39 + # echo "Hello, ${config.home.username}!" 40 + # '') 41 + ]; 42 + 43 + # Home Manager is pretty good at managing dotfiles. The primary way to manage 44 + # plain files is through 'home.file'. 45 + home.file = { 46 + # # Building this configuration will create a copy of 'dotfiles/screenrc' in 47 + # # the Nix store. Activating the configuration will then make '~/.screenrc' a 48 + # # symlink to the Nix store copy. 49 + # ".screenrc".source = dotfiles/screenrc; 50 + 51 + # # You can also set the file content immediately. 52 + # ".gradle/gradle.properties".text = '' 53 + # org.gradle.console=verbose 54 + # org.gradle.daemon.idletimeout=3600000 55 + # ''; 56 + }; 57 + 58 + # Home Manager can also manage your environment variables through 59 + # 'home.sessionVariables'. These will be explicitly sourced when using a 60 + # shell provided by Home Manager. If you don't want to manage your shell 61 + # through Home Manager then you have to manually source 'hm-session-vars.sh' 62 + # located at either 63 + # 64 + # ~/.nix-profile/etc/profile.d/hm-session-vars.sh 65 + # 66 + # or 67 + # 68 + # ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh 69 + # 70 + # or 71 + # 72 + # /etc/profiles/per-user/alex/etc/profile.d/hm-session-vars.sh 73 + # 74 + home.sessionVariables = { 75 + # EDITOR = "emacs"; 76 + }; 77 + 78 + # Let Home Manager install and manage itself. 79 + programs.home-manager.enable = true; 80 + }