mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore: adapt flake for 'nix flake check'
This commit is contained in:
parent
584cc31ce3
commit
453869609c
9 changed files with 24 additions and 14 deletions
|
|
@ -608,7 +608,6 @@ In this section I am creating some attributes that define general concepts of my
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
||||||
overlays = [
|
|
||||||
checks = forAllSystems (
|
checks = forAllSystems (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
|
|
@ -616,6 +615,7 @@ In this section I am creating some attributes that define general concepts of my
|
||||||
in
|
in
|
||||||
import ./checks { inherit self inputs system pkgs; }
|
import ./checks { inherit self inputs system pkgs; }
|
||||||
);
|
);
|
||||||
|
overlaysList = [
|
||||||
(import ./overlays { inherit inputs; }).additions
|
(import ./overlays { inherit inputs; }).additions
|
||||||
(import ./overlays { inherit inputs; }).modifications
|
(import ./overlays { inherit inputs; }).modifications
|
||||||
(import ./overlays { inherit inputs; }).nixpkgs-stable
|
(import ./overlays { inherit inputs; }).nixpkgs-stable
|
||||||
|
|
@ -840,7 +840,7 @@ This is the "reference implementation" of a setup that runs without NixOS, only
|
||||||
imports = builtins.attrValues outputs.homeManagerModules;
|
imports = builtins.attrValues outputs.homeManagerModules;
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
@ -933,7 +933,7 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
|
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
@ -1151,7 +1151,7 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
|
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
@ -1745,11 +1745,11 @@ This is a shorthand for calling emacsclient mostly. Also, it hides the kittyterm
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src nix :tangle pkgs/e/default.nix
|
#+begin_src nix :tangle pkgs/e/default.nix
|
||||||
{ writeShellApplication, emacs-pgtk, sway, jq }:
|
{ writeShellApplication, emacs30-pgtk, sway, jq }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "e";
|
name = "e";
|
||||||
runtimeInputs = [ emacs-pgtk sway jq ];
|
runtimeInputs = [ emacs30-pgtk sway jq ];
|
||||||
text = builtins.readFile ../../scripts/e.sh;
|
text = builtins.readFile ../../scripts/e.sh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5683,7 +5683,7 @@ This section sets up all the imports that are used in the home-manager section.
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
hostPlatform = "x86_64-darwin";
|
hostPlatform = "x86_64-darwin";
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -185,8 +185,9 @@
|
||||||
nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git ];
|
nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git ];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
# this sets the formatter that is going to be used by nix fmt
|
||||||
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
||||||
overlays = [
|
|
||||||
checks = forAllSystems (
|
checks = forAllSystems (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
|
|
@ -194,6 +195,7 @@
|
||||||
in
|
in
|
||||||
import ./checks { inherit self inputs system pkgs; }
|
import ./checks { inherit self inputs system pkgs; }
|
||||||
);
|
);
|
||||||
|
overlaysList = [
|
||||||
(import ./overlays { inherit inputs; }).additions
|
(import ./overlays { inherit inputs; }).additions
|
||||||
(import ./overlays { inherit inputs; }).modifications
|
(import ./overlays { inherit inputs; }).modifications
|
||||||
(import ./overlays { inherit inputs; }).nixpkgs-stable
|
(import ./overlays { inherit inputs; }).nixpkgs-stable
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ writeShellApplication, emacs-pgtk, sway, jq }:
|
{ writeShellApplication, emacs30-pgtk, sway, jq }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "e";
|
name = "e";
|
||||||
runtimeInputs = [ emacs-pgtk sway jq ];
|
runtimeInputs = [ emacs30-pgtk sway jq ];
|
||||||
text = builtins.readFile ../../scripts/e.sh;
|
text = builtins.readFile ../../scripts/e.sh;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,9 @@
|
||||||
statix
|
statix
|
||||||
nix-tree
|
nix-tree
|
||||||
|
|
||||||
|
# shellscripts
|
||||||
|
shfmt
|
||||||
|
|
||||||
# local file sharing
|
# local file sharing
|
||||||
wormhole-rs
|
wormhole-rs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ in
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
hostPlatform = "x86_64-darwin";
|
hostPlatform = "x86_64-darwin";
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
imports = builtins.attrValues outputs.homeManagerModules;
|
imports = builtins.attrValues outputs.homeManagerModules;
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ in
|
||||||
|
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ in
|
||||||
|
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
inherit (outputs) overlays;
|
overlays = outputs.overlaysList;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1194,6 +1194,11 @@ create a new one."
|
||||||
|
|
||||||
(use-package nixpkgs-fmt)
|
(use-package nixpkgs-fmt)
|
||||||
|
|
||||||
|
(use-package shfmt
|
||||||
|
:config
|
||||||
|
(setq shfmt-command "shfmt")
|
||||||
|
(setq shfmt-arguments '("-i" "4" "-s" "-sr")))
|
||||||
|
|
||||||
(setq markdown-command "pandoc")
|
(setq markdown-command "pandoc")
|
||||||
|
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue