refactor: clean up unused imports

refactor: remove some comments
feat: set VSCodium color scheme to Catppuccin Macchiato
This commit is contained in:
Jo 2024-12-03 18:38:19 +01:00
parent 4966b26ec4
commit e1bbf4856e
20 changed files with 9 additions and 115 deletions

View file

@ -45,9 +45,6 @@
src = ./.; # "src" must point to the root of the flake.
snowfall = {
# "root" can be used, to tell Snowfall Lib where to look for Nix files.
# root = ./nix;
# Namespace for this flake's packages, library and overlays.
namespace = "puzzlevision";
@ -58,7 +55,7 @@
};
channels-config = {
allowUnfree = true; # Allow unfree packages.
allowUnfree = true;
};
# Apply some NixOS modules globally.

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
inputs,
namespace,
...
}: with lib; with lib.${namespace};

View file

@ -1,8 +1,5 @@
{
lib,
pkgs,
inputs,
config,
...
}: {
home.packages = with pkgs.gnomeExtensions; [

View file

@ -1,8 +1,5 @@
{
lib,
pkgs,
inputs,
config,
...
}: {
programs.vscode = {
@ -23,6 +20,7 @@
userSettings = {
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nil";
"workbench.colorTheme" = "Catppuccin Macchiato";
};
};
}

View file

@ -1,22 +1,7 @@
{
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
# as well as the libraries available from your flake's inputs.
lib,
# Instance of `pkgs` with overlays and custom packages applied.
pkgs,
# All flake inputs.
inputs,
# Additional metadata, provided by Snowfall Lib.
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
home, # The home architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
format, # A normalized name for the home target (eg. `home`).
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
host, # The host name for this home.
# All other arguments come from the home home.
config,
namespace,
...
}: with lib; with lib.${namespace};
{
@ -58,6 +43,7 @@
devenv
python39
nil
zed-editor
### Rust development specific
rustup
@ -74,7 +60,5 @@
sidequest
];
#puzzlevision.apps.zed-editor.enable = true;
home.stateVersion = "24.05";
}

View file

@ -1,26 +0,0 @@
{
lib,
pkgs,
inputs,
namespace,
config,
...
}: with lib; with lib.${namespace};
let
cfg = config.apps.zed-editor;
zed-fhs = pkgs.buildFHSUserEnv {
name = "zed";
targetPkgs = pkgs:
with pkgs; [
zed-editor
];
runScript = "zed";
};
in {
options.apps.zed-editor = { enable = mkEnableOption "zed-editor"; };
config = mkIf cfg.enable {
home.packages = [zed-fhs];
};
}

View file

@ -1,9 +1,5 @@
{
lib,
pkgs,
inputs,
namespace,
config,
...
}: {
home.packages = with pkgs; [

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
namespace,
config,
...

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
namespace,
config,
...

View file

@ -1,6 +1,5 @@
{
lib,
inputs,
namespace,
config,
...

View file

@ -3,7 +3,6 @@
pkgs,
namespace,
config,
options,
...
}: with lib; with lib.${namespace};
let

View file

@ -1,15 +1,6 @@
{
lib,
pkgs,
inputs,
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
system, # The system architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
format, # A normalized name for the system target (eg. `iso`).
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
systems, # An attribute map of your defined hosts.
namespace,
config,
...
}: with lib; with lib.${namespace};

View file

@ -1,6 +1,5 @@
{
lib,
inputs,
namespace,
config,
...

View file

@ -1,6 +1,5 @@
{
lib,
inputs,
namespace,
config,
...

View file

@ -1,14 +1,6 @@
{
lib,
pkgs,
inputs,
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
system, # The system architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
format, # A normalized name for the system target (eg. `iso`).
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
systems, # An attribute map of your defined hosts.
namespace,
config,
...

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
inputs,
namespace,
config,
...

View file

@ -1,15 +1,6 @@
{
lib,
pkgs,
inputs,
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
system, # The system architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
format, # A normalized name for the system target (eg. `iso`).
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
systems, # An attribute map of your defined hosts.
namespace,
config,
...
}: with lib; with lib.${namespace};

View file

@ -1,15 +1,7 @@
{
lib,
pkgs,
inputs,
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
system, # The system architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
format, # A normalized name for the system target (eg. `iso`).
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
systems, # An attribute map of your defined hosts.
namespace,
config,
...
}: with lib; with lib.${namespace};

View file

@ -1,15 +1,6 @@
{
lib,
pkgs,
inputs,
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
system, # The system architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
format, # A normalized name for the system target (eg. `iso`).
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
systems, # An attribute map of your defined hosts.
namespace,
config,
...
}: with lib; with lib.${namespace};

View file

@ -3,7 +3,6 @@
pkgs,
inputs,
namespace,
config,
...
}: with lib; with lib.${namespace};
{