Compare commits

..

2 Commits

Author SHA1 Message Date
9e3e04422a
a 2023-05-04 03:13:26 +03:00
25cae4d212
fix 2023-04-12 08:11:29 +03:00
8 changed files with 153 additions and 33 deletions

View File

@ -441,6 +441,22 @@
"type": "github"
}
},
"flake-compat_4": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1678901627,
@ -486,6 +502,21 @@
"type": "github"
}
},
"flake-utils_4": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"ghc-utils": {
"flake": false,
"locked": {
@ -907,7 +938,8 @@
"nixpkgs": "nixpkgs_3",
"nixpkgs-wayland": "nixpkgs-wayland",
"nur": "nur",
"stylix": "stylix"
"stylix": "stylix",
"vscode-extensions": "vscode-extensions"
}
},
"rust-analyzer-src": {
@ -1029,15 +1061,16 @@
]
},
"locked": {
"lastModified": 1680432579,
"narHash": "sha256-sIcl3DvrDdQZM5kBWY25ocxJsIQFPV4gm54l79ZysB0=",
"owner": "danth",
"lastModified": 1681281620,
"narHash": "sha256-SjX38nDKBrlQN0CbbUgHHYshlfewrjgQ4p0nKL4W4YI=",
"owner": "yusdacra",
"repo": "stylix",
"rev": "4205a141bfcc0b9d1c04932ec7fdf0f86f99aaf6",
"rev": "e53b29d8e850bd7ee3012f5e4c7c0a1ded533a91",
"type": "github"
},
"original": {
"owner": "danth",
"owner": "yusdacra",
"ref": "fixed",
"repo": "stylix",
"type": "github"
}
@ -1056,6 +1089,28 @@
"repo": "flake-utils",
"type": "github"
}
},
"vscode-extensions": {
"inputs": {
"flake-compat": "flake-compat_4",
"flake-utils": "flake-utils_4",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1681693872,
"narHash": "sha256-gEy7sfcRiJypI0irVBWZ1xxyc+4MZPb5RqcC8krQi9s=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"rev": "1c784113bfb7f0f0d82b32832fdf739f083e8d3a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"type": "github"
}
}
},
"root": "root",

View File

@ -34,10 +34,13 @@
nil.url = "github:oxalica/nil";
nil.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:danth/stylix";
stylix.url = "github:yusdacra/stylix/fixed";
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.inputs.home-manager.follows = "home";
vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
vscode-extensions.inputs.nixpkgs.follows = "nixpkgs";
# needed for hyprland setup
# hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs";

View File

@ -113,6 +113,8 @@
};
};
networking.firewall.allowedUDPPorts = [49152];
# for tailscale
networking.firewall.checkReversePath = "loose";
services.tailscale.enable = true;

View File

@ -1,8 +1,3 @@
{inputs}: final: prev: {
helix = inputs.helix.packages.${prev.system}.default.override {
includeGrammarIf = grammar:
prev.lib.any
(name: grammar.name == name)
["toml" "rust" "nix" "protobuf" "yaml" "json" "markdown" "html" "css" "zig"];
};
helix = inputs.helix.packages.${prev.system}.default;
}

View File

@ -0,0 +1,34 @@
{
pkgs,
inputs,
...
}: {
# stylix.targets.vscode.enable = false;
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with inputs.vscode-extensions.extensions.x86_64-linux.vscode-marketplace; [
mkhl.direnv
bbenoist.nix
svelte.svelte-vscode
bradlc.vscode-tailwindcss
(rust-lang.rust-analyzer.overrideAttrs (old: {
src = old.src.overrideAttrs (old: {
outputHash = "sha256-k9eDTY9y2ejg4jTApji8X6UmKYK/eCLMZJbiYuoTuyY=";
});
}))
# explodingcamera."1am"
];
userSettings = {
"files.associations" = {
"*.css" = "tailwindcss";
};
"editor.quickSuggestions" = {
"strings" = "on";
};
"editor.suggest.showStatusBar" = true;
"editor.formatOnSave" = true;
# "workbench.colorTheme" = "1am";
};
};
}

View File

@ -3,6 +3,7 @@
pkgs,
...
}: {
stylix.targets.helix.enable = false;
programs.helix = {
enable = true;
languages = [
@ -17,6 +18,7 @@
}
];
settings = {
theme = "ferra";
editor = {
soft-wrap.enable = true;
line-number = "relative";
@ -26,11 +28,10 @@
cursor-shape.insert = "block";
lsp = {
display-messages = true;
display-inlay-hints = true;
display-inlay-hints = false;
};
indent-guides = {
render = true;
# character = "|";
};
auto-pairs = {
"(" = ")";

View File

@ -111,7 +111,7 @@ in {
# cli stuff
["zoxide" "zsh" "fzf" "starship" "direnv"]
# dev stuff
["helix" "git" "ssh"]
["helix" "code" "git" "ssh"]
["lollypop"]
];
in

View File

@ -10,23 +10,53 @@
stylix.image = ./wallpaper.png;
stylix.polarity = "dark";
stylix.base16Scheme = {
"base00" = "04080e";
"base01" = "36393e";
"base02" = "686b6e";
"base03" = "9b9c9f";
"base04" = "cdcecf";
"base05" = "ffffff";
"base06" = "1d2126";
"base07" = "e6e6e7";
"base08" = "cf0466"; # splatoon 2 pink
"base09" = "2851f6"; # splatoon 1 blue
"base0A" = "6844e6"; # splatoon 3 purple
"base0B" = "17a80d"; # splatoon 2 green
"base0C" = "fea972"; # splatoon 3 fuzzy orange color
"base0D" = "fa5a00"; # splatoon 1 orange
"base0E" = "fffe27"; # splatoon 3 yellow
"base0F" = "bdbebc";
# stylix.base16Scheme = {
# "base00" = "04080e";
# "base01" = "36393e";
# "base02" = "686b6e";
# "base03" = "9b9c9f";
# "base04" = "cdcecf";
# "base05" = "ffffff";
# "base06" = "1d2126";
# "base07" = "e6e6e7";
# "base08" = "cf0466"; # splatoon 2 pink
# "base09" = "2851f6"; # splatoon 1 blue
# "base0A" = "6844e6"; # splatoon 3 purple
# "base0B" = "17a80d"; # splatoon 2 green
# "base0C" = "fea972"; # splatoon 3 fuzzy orange color
# "base0D" = "fa5a00"; # splatoon 1 orange
# "base0E" = "fffe27"; # splatoon 3 yellow
# "base0F" = "bdbebc";
# };
stylix.base16Scheme = let
night = "#2b292d";
ash = "#383539";
umber = "#4d424b";
bark = "#6F5D63";
mist = "#D1D1E0";
sage = "#B1B695";
blush = "#fecdb2";
coral = "#ffa07a";
rose = "#F6B6C9";
ember = "#e06b75";
honey = "#F5D76E";
in {
base00 = night;
base01 = ash;
base02 = umber;
base03 = bark;
base04 = blush;
base05 = mist;
base06 = mist;
base07 = bark;
base08 = ember;
base09 = honey;
base0A = rose;
base0B = sage;
base0C = bark;
base0D = coral;
base0E = blush;
base0F = umber;
};
stylix.fonts = {