chore!(flake): Update inputs

This update required a change to 'nixfmt' which got replaced by either
'nixfmt-classic' or 'nixfmt-rfc-style' - I settled with the latter thus
the required whitespace change.
This commit is contained in:
Alexander Kobjolke 2024-04-19 22:35:30 +02:00
parent 5a37f8c449
commit 340be14a8d
3 changed files with 195 additions and 129 deletions

108
flake.lock generated
View file

@ -6,14 +6,15 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ],
"systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1701216516, "lastModified": 1712079060,
"narHash": "sha256-jKSeJn+7hZ1dZdiH1L+NWUGT2i/BGomKAJ54B9kT06Q=", "narHash": "sha256-/JdiT9t+zzjChc5qQiF+jhrVhRt8figYH29rZO7pFe4=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "13ac9ac6d68b9a0896e3d43a082947233189e247", "rev": "1381a759b205dff7a6818733118d02253340fd5e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -46,11 +47,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1673295039, "lastModified": 1700795494,
"narHash": "sha256-AsdYgE8/GPwcelGgrntlijMg4t3hLFJFCRF3tL5WVjA=", "narHash": "sha256-gzGLZSiOhf155FW7262kdHo2YDeugp3VuIFb4/GGng0=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "87b9d090ad39b25b2400029c64825fc2a8868943", "rev": "4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -67,11 +68,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1706302763, "lastModified": 1713406758,
"narHash": "sha256-Le1wk75qlzOSfzDk8vqYxSdoEyr/ORIbMhziltVNGYw=", "narHash": "sha256-kwZvhmx+hSZvjzemKxsAqzEqWmXZS47VVwQhNrINORQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "f7424625dc1f2e4eceac3009cbd1203d566feebc", "rev": "1efd500e9805a9efbce401ed5999006d397b9f11",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -89,11 +90,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1710867991, "lastModified": 1713517520,
"narHash": "sha256-DXDC0u2Nrde3687uRiuwLy3lCCRRiymYluOCgj3tAvQ=", "narHash": "sha256-t59lpRo7EulX9J0/bc5/8cUEo7hl6z9YOYukzg54cyU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "78da5146ec2bbffc5a31fe08be4bcaf2fd6eeea3", "rev": "a8692d4e570e93061d2bbe10af4a1590afe82e15",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -136,7 +137,7 @@
}, },
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1710146030,
@ -154,14 +155,14 @@
}, },
"flake-utils_2": { "flake-utils_2": {
"inputs": { "inputs": {
"systems": "systems_2" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1701680307, "lastModified": 1710146030,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725", "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -178,11 +179,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1703887061, "lastModified": 1709087332,
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=", "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "gitignore.nix", "repo": "gitignore.nix",
"rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5", "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -199,11 +200,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1682203081, "lastModified": 1703113217,
"narHash": "sha256-kRL4ejWDhi0zph/FpebFYhzqlOBrk0Pl3dzGEKSAlEw=", "narHash": "sha256-7ulcXOk63TIT2lVDSExj7XzFx09LpdSAPtvgtM7yQPE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "32d3e39c491e2f91152c84f8ad8b003420eab0a1", "rev": "3bfaacf46133c037bb356193bd2f1765d9dc82c1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -219,11 +220,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710974515, "lastModified": 1713527814,
"narHash": "sha256-jZpdsypecYTOO9l12Vy77otGmh9uz8tGzcguifA30Vs=", "narHash": "sha256-0NJLgMKvv+HluzeHei/m8vDhX3xovNLkMw/idwIJ218=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1c2acec99933f9835cc7ad47e35303de92d923a4", "rev": "0184c8180f5cbb8e3a54a239b874fe849d3073cb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -304,11 +305,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1710806803, "lastModified": 1713297878,
"narHash": "sha256-qrxvLS888pNJFwJdK+hf1wpRCSQcqA6W5+Ox202NDa0=", "narHash": "sha256-hOkzkhLT59wR8VaMbh1ESjtZLbGi+XNaBN6h49SPqEc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b06025f1533a1e07b6db3e75151caa155d1c7eb3", "rev": "66adc1e47f8784803f2deb6cacd5e07264ec2d5c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -320,11 +321,11 @@
}, },
"nixpkgs-droid": { "nixpkgs-droid": {
"locked": { "locked": {
"lastModified": 1702350026, "lastModified": 1704290814,
"narHash": "sha256-A+GNZFZdfl4JdDphYKBJ5Ef1HOiFsP18vQe9mqjmUis=", "narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9463103069725474698139ab10f17a9d125da859", "rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -352,11 +353,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1710695816, "lastModified": 1713344939,
"narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=", "narHash": "sha256-jpHkAt0sG2/J7ueKnG7VvLLkBYUMQbXQ2L8OBpVG53s=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "614b4613980a522ba49f0d194531beddbb7220d3", "rev": "e402c3eb6d88384ca6c52ef1c53e61bdc9b84ddd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -368,11 +369,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1704874635, "lastModified": 1710695816,
"narHash": "sha256-YWuCrtsty5vVZvu+7BchAxmcYzTMfolSPP5io8+WYCg=", "narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3dc440faeee9e889fe2d1b4d25ad0f430d449356", "rev": "614b4613980a522ba49f0d194531beddbb7220d3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -456,11 +457,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1708018599, "lastModified": 1712897695,
"narHash": "sha256-M+Ng6+SePmA8g06CmUZWi1AjG2tFBX9WCXElBHEKnyM=", "narHash": "sha256-nMirxrGteNAl9sWiOhoN5tIHyjBbVi5e2tgZUgZlK3Y=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "5df5a70ad7575f6601d91f0efec95dd9bc619431", "rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -490,11 +491,11 @@
"utils": "utils_2" "utils": "utils_2"
}, },
"locked": { "locked": {
"lastModified": 1710449465, "lastModified": 1713012165,
"narHash": "sha256-2orO8nfplp6uQJBFqKkj1iyNMC6TysmwbWwbb4osTag=", "narHash": "sha256-z/soXKDnz+w4Nw0LkRaM73YqolhSmIYy6cpg1F2ps8I=",
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"rev": "79c8cfcd5873a85559da6201b116fb38b490d030", "rev": "9f6635a0351c190179dc6904545f950108a23dd8",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -549,6 +550,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": { "utils": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1659877975,
@ -566,7 +582,7 @@
}, },
"utils_2": { "utils_2": {
"inputs": { "inputs": {
"systems": "systems_3" "systems": "systems_4"
}, },
"locked": { "locked": {
"lastModified": 1709126324, "lastModified": 1709126324,

176
flake.nix
View file

@ -42,88 +42,116 @@
disko.inputs.nixpkgs.follows = "nixpkgs"; disko.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, home-manager, nixpkgs, pre-commit-hooks, ... }@inputs: { outputs =
checks."x86_64-linux" = let {
system = "x86_64-linux"; self,
pkgs = import nixpkgs { inherit system; }; home-manager,
in { nixpkgs,
pre-commit-check = pre-commit-hooks.lib.${system}.run { pre-commit-hooks,
src = ./.; ...
settings = { ormolu.defaultExtensions = [ "GHC2021" ]; }; }@inputs:
tools.fourmolu = pkgs.haskellPackages.fourmolu; {
hooks = { checks."x86_64-linux" =
nixfmt.enable = true; let
fourmolu.enable = true; system = "x86_64-linux";
hpack.enable = true; pkgs = import nixpkgs { inherit system; };
hlint.enable = true; in
};
};
};
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({ inputs, lib, ... }: {
nixpkgs = {
config.allowUnfree = true;
overlays = with inputs; [ emacs.overlay ];
};
})
./hosts/thrall
home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; pre-commit-check = pre-commit-hooks.lib.${system}.run {
home-manager.useUserPackages = true; src = ./.;
} tools.fourmolu = pkgs.haskellPackages.fourmolu;
{ home-manager.users.alex = ./hosts/thrall/alex.nix; } tools.nixfmt = pkgs.nixfmt-rfc-style;
]; hooks = {
}; nixfmt.enable = true;
fourmolu.enable = true;
hpack.enable = true;
hlint.enable = true;
ormolu = {
settings.defaultExtensions = [ "GHC2021" ];
};
};
};
};
nixosConfigurations."dregil" = nixpkgs.lib.nixosSystem { nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = {
modules = [ ./hosts/dregil ]; inherit inputs;
}; };
nixosConfigurations."igor" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ ./hosts/igor ];
};
nixOnDroidConfigurations.default = with inputs;
nix-on-droid.lib.nixOnDroidConfiguration {
modules = [ modules = [
./hosts/redmi (
{ nix.registry.nixpkgs.flake = nixpkgs-droid; } { inputs, lib, ... }:
{ nix.nixPath = [ "nixpkgs=${nixpkgs-droid}" ]; } {
nixpkgs = {
config.allowUnfree = true;
overlays = with inputs; [ emacs.overlay ];
};
}
)
./hosts/thrall
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
{ home-manager.users.alex = ./hosts/thrall/alex.nix; }
]; ];
}; };
devShells."x86_64-linux".default = let nixosConfigurations."dregil" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; specialArgs = {
in pkgs.haskellPackages.shellFor { inherit inputs;
inherit (self.checks.${system}.pre-commit-check) shellHook; };
modules = [ ./hosts/dregil ];
};
packages = p: [ p.xmonad p.xmonad-contrib ]; nixosConfigurations."igor" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [ ./hosts/igor ];
};
withHoogle = true; nixOnDroidConfigurations.default =
with inputs;
nix-on-droid.lib.nixOnDroidConfiguration {
modules = [
./hosts/redmi
{ nix.registry.nixpkgs.flake = nixpkgs-droid; }
{ nix.nixPath = [ "nixpkgs=${nixpkgs-droid}" ]; }
];
};
nativeBuildInputs = with pkgs; [ devShells."x86_64-linux".default =
haskellPackages.haskell-language-server let
haskellPackages.fourmolu system = "x86_64-linux";
haskellPackages.hspec-discover pkgs = import nixpkgs { inherit system; };
haskellPackages.doctest in
haskellPackages.xmonad pkgs.haskellPackages.shellFor {
haskellPackages.xmonad-contrib inherit (self.checks.${system}.pre-commit-check) shellHook;
cabal-install
ghcid packages = p: [
nixfmt p.xmonad
hpack p.xmonad-contrib
hlint ];
];
withHoogle = true;
nativeBuildInputs = with pkgs; [
haskellPackages.haskell-language-server
haskellPackages.fourmolu
haskellPackages.hspec-discover
haskellPackages.doctest
haskellPackages.xmonad
haskellPackages.xmonad-contrib
cabal-install
ghcid
nixfmt-rfc-style
hpack
hlint
];
};
}; };
};
} }

View file

@ -9,7 +9,8 @@ let
}; };
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa"; myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
in { in
{
imports = [ imports = [
./programs/neovim/default.nix ./programs/neovim/default.nix
./programs/emacs/default.nix ./programs/emacs/default.nix
@ -41,7 +42,7 @@ in {
# nix tools # nix tools
nix-index nix-index
nixfmt nixfmt-rfc-style
# misc # misc
fd # better find fd # better find
file # info about files file # info about files
@ -59,7 +60,14 @@ in {
shellcheck shellcheck
editorconfig-core-c editorconfig-core-c
shfmt shfmt
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science de ])) (aspellWithDicts (
dicts: with dicts; [
en
en-computers
en-science
de
]
))
# system tools # system tools
htop-vim # htop with vim bindings htop-vim # htop with vim bindings
@ -83,7 +91,11 @@ in {
nix-prefetch-git nix-prefetch-git
]; ];
home.extraOutputsToInstall = [ "doc" "info" "devdoc" ]; home.extraOutputsToInstall = [
"doc"
"info"
"devdoc"
];
xdg.enable = true; xdg.enable = true;
@ -112,7 +124,9 @@ in {
}; };
programs = { programs = {
bash = { enable = true; }; bash = {
enable = true;
};
# better cat # better cat
bat.enable = true; bat.enable = true;
@ -126,11 +140,15 @@ in {
icons = true; icons = true;
}; };
starship = { enable = true; }; starship = {
enable = true;
};
direnv = { direnv = {
enable = true; enable = true;
nix-direnv = { enable = true; }; nix-direnv = {
enable = true;
};
enableZshIntegration = true; enableZshIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
}; };
@ -142,7 +160,9 @@ in {
gpg = { gpg = {
enable = true; enable = true;
settings = { homedir = "~/.local/share/gnupg"; }; settings = {
homedir = "~/.local/share/gnupg";
};
}; };
helix = { helix = {
@ -153,7 +173,9 @@ in {
password-store = { password-store = {
enable = true; enable = true;
package = pkgs.gopass; package = pkgs.gopass;
settings = { PASSWORD_STORE_DIR = "$HOME/.local/share/password-store"; }; settings = {
PASSWORD_STORE_DIR = "$HOME/.local/share/password-store";
};
}; };
ssh.enable = true; ssh.enable = true;