start trying to theme with base16.nix
This commit is contained in:
parent
69ad8d41af
commit
5af33d365d
3 changed files with 94 additions and 23 deletions
52
flake.lock
generated
52
flake.lock
generated
|
|
@ -1,5 +1,23 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"base16": {
|
||||||
|
"inputs": {
|
||||||
|
"fromYaml": "fromYaml"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755819240,
|
||||||
|
"narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"rev": "75ed5e5e3fce37df22e49125181fa37899c3ccd6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
|
@ -18,6 +36,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"fromYaml": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731966426,
|
||||||
|
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "fromYaml",
|
||||||
|
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "fromYaml",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788039129,
|
"lastModified": 1788039129,
|
||||||
|
|
@ -67,11 +101,29 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"base16": "base16",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"tt-schemes": "tt-schemes",
|
||||||
"wrappers": "wrappers"
|
"wrappers": "wrappers"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"tt-schemes": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1786274241,
|
||||||
|
"narHash": "sha256-LMHxSQJIv6QJJkO9W7sAkJujlwusFf9/Ct0SYJ6GyHQ=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "schemes",
|
||||||
|
"rev": "fdca32a0d14ec80ad83a78a9ccb85592ca6cb9e1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "schemes",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"wrappers": {
|
"wrappers": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
|
|
||||||
51
flake.nix
51
flake.nix
|
|
@ -3,26 +3,41 @@
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
wrappers.url = "github:BirdeeHub/nix-wrapper-modules";
|
wrappers.url = "github:BirdeeHub/nix-wrapper-modules";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
base16.url = "github:SenchoPens/base16.nix";
|
||||||
|
tt-schemes = {
|
||||||
|
url = "github:tinted-theming/schemes";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, wrappers, flake-parts, ... }@inputs:
|
outputs =
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } ({config, ...}: {
|
{
|
||||||
systems = [ "x86_64-linux" ];
|
self,
|
||||||
imports = [
|
nixpkgs,
|
||||||
wrappers.flakeModules.wrappers
|
wrappers,
|
||||||
./modules/programs/emacs/emacs.nix
|
flake-parts,
|
||||||
];
|
base16,
|
||||||
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
...
|
||||||
specialArgs = { inherit inputs; };
|
}@inputs:
|
||||||
modules = [
|
flake-parts.lib.mkFlake { inherit inputs; } (
|
||||||
./modules/hosts/nerv/configuration.nix
|
{ config, ... }: {
|
||||||
config.flake.wrappers.emacs.install
|
systems = [ "x86_64-linux" ];
|
||||||
{ wrappers.emacs.enable = true; }
|
imports = [
|
||||||
];
|
wrappers.flakeModules.wrappers
|
||||||
};
|
./modules/programs/emacs/emacs.nix
|
||||||
|
];
|
||||||
});
|
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
base16.nixosModule
|
||||||
|
{ scheme = "${inputs.tt-schemes}/base16/oxocarbon-dark.yaml"; }
|
||||||
|
./modules/hosts/nerv/configuration.nix
|
||||||
|
config.flake.wrappers.emacs.install
|
||||||
|
{ wrappers.emacs.enable = true; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
{ inputs, ... }: {
|
{ inputs, lib, config, ... }: {
|
||||||
flake.wrappers.emacs = { pkgs, wlib, lib, ... }: {
|
flake.wrappers.emacs = { pkgs, wlib, lib, config, ... }: {
|
||||||
imports = [ wlib.wrapperModules.emacs ];
|
imports = [
|
||||||
|
wlib.wrapperModules.emacs
|
||||||
|
inputs.base16.nixosModule
|
||||||
|
];
|
||||||
emacsPackages =
|
emacsPackages =
|
||||||
epkgs: with epkgs.melpaPackages; [
|
epkgs: with epkgs.melpaPackages; [
|
||||||
corfu
|
corfu
|
||||||
|
|
@ -20,6 +23,7 @@
|
||||||
configFile = ''
|
configFile = ''
|
||||||
;;; -*- lexical-binding: t; -*-
|
;;; -*- lexical-binding: t; -*-
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil)
|
||||||
|
(load-theme "${base16.lib.scheme-slug}" t
|
||||||
(use-package
|
(use-package
|
||||||
corfu
|
corfu
|
||||||
:init
|
:init
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue