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" "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": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1678901627, "lastModified": 1678901627,
@ -486,6 +502,21 @@
"type": "github" "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": { "ghc-utils": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -907,7 +938,8 @@
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"nur": "nur", "nur": "nur",
"stylix": "stylix" "stylix": "stylix",
"vscode-extensions": "vscode-extensions"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {
@ -1029,15 +1061,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1680432579, "lastModified": 1681281620,
"narHash": "sha256-sIcl3DvrDdQZM5kBWY25ocxJsIQFPV4gm54l79ZysB0=", "narHash": "sha256-SjX38nDKBrlQN0CbbUgHHYshlfewrjgQ4p0nKL4W4YI=",
"owner": "danth", "owner": "yusdacra",
"repo": "stylix", "repo": "stylix",
"rev": "4205a141bfcc0b9d1c04932ec7fdf0f86f99aaf6", "rev": "e53b29d8e850bd7ee3012f5e4c7c0a1ded533a91",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "danth", "owner": "yusdacra",
"ref": "fixed",
"repo": "stylix", "repo": "stylix",
"type": "github" "type": "github"
} }
@ -1056,6 +1089,28 @@
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "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", "root": "root",

View File

@ -34,10 +34,13 @@
nil.url = "github:oxalica/nil"; nil.url = "github:oxalica/nil";
nil.inputs.nixpkgs.follows = "nixpkgs"; nil.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:danth/stylix"; stylix.url = "github:yusdacra/stylix/fixed";
stylix.inputs.nixpkgs.follows = "nixpkgs"; stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.inputs.home-manager.follows = "home"; 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 # needed for hyprland setup
# hyprland.url = "github:hyprwm/Hyprland"; # hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs"; # hyprland.inputs.nixpkgs.follows = "nixpkgs";

View File

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

View File

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

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

View File

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

View File

@ -10,23 +10,53 @@
stylix.image = ./wallpaper.png; stylix.image = ./wallpaper.png;
stylix.polarity = "dark"; stylix.polarity = "dark";
stylix.base16Scheme = { # stylix.base16Scheme = {
"base00" = "04080e"; # "base00" = "04080e";
"base01" = "36393e"; # "base01" = "36393e";
"base02" = "686b6e"; # "base02" = "686b6e";
"base03" = "9b9c9f"; # "base03" = "9b9c9f";
"base04" = "cdcecf"; # "base04" = "cdcecf";
"base05" = "ffffff"; # "base05" = "ffffff";
"base06" = "1d2126"; # "base06" = "1d2126";
"base07" = "e6e6e7"; # "base07" = "e6e6e7";
"base08" = "cf0466"; # splatoon 2 pink # "base08" = "cf0466"; # splatoon 2 pink
"base09" = "2851f6"; # splatoon 1 blue # "base09" = "2851f6"; # splatoon 1 blue
"base0A" = "6844e6"; # splatoon 3 purple # "base0A" = "6844e6"; # splatoon 3 purple
"base0B" = "17a80d"; # splatoon 2 green # "base0B" = "17a80d"; # splatoon 2 green
"base0C" = "fea972"; # splatoon 3 fuzzy orange color # "base0C" = "fea972"; # splatoon 3 fuzzy orange color
"base0D" = "fa5a00"; # splatoon 1 orange # "base0D" = "fa5a00"; # splatoon 1 orange
"base0E" = "fffe27"; # splatoon 3 yellow # "base0E" = "fffe27"; # splatoon 3 yellow
"base0F" = "bdbebc"; # "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 = { stylix.fonts = {