Compare commits
5 Commits
main
...
5289cb0054
| Author | SHA1 | Date | |
|---|---|---|---|
|
5289cb0054
|
|||
|
a7a60826bb
|
|||
|
19452a8557
|
|||
|
fb515d205b
|
|||
|
3dd048ebe3
|
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
assets/** filter=lfs diff=lfs merge=lfs -text
|
||||
6
.pre-commit-config.yaml
Normal file
6
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/nixos/nixfmt
|
||||
rev: v1.2.0
|
||||
hooks:
|
||||
- id: nixfmt-nix
|
||||
args: [--, --check]
|
||||
3
assets/lockscreen.png
Normal file
3
assets/lockscreen.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:47098eed6a818a4e6181e2cdd6d1244b2adc46d748da5944a7bf89068eb1c8ad
|
||||
size 497830
|
||||
3
assets/wallpaper.png
Normal file
3
assets/wallpaper.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d5ab6c3434f2b1b8ebac566fef17fad16dbb6415d76ab06e6abf483b563bc25
|
||||
size 16097396
|
||||
27
flake.nix
27
flake.nix
@@ -74,7 +74,7 @@
|
||||
system = "x86_64-linux";
|
||||
format = "install-iso";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [ ./iso.nix ];
|
||||
modules = [ ./hosts/live-iso/configuration.nix ];
|
||||
};
|
||||
|
||||
nixosConfigurations = {
|
||||
@@ -94,11 +94,22 @@
|
||||
lib = nixpkgs.lib;
|
||||
} { };
|
||||
}
|
||||
// flake-utils.lib.eachDefaultSystem (system: {
|
||||
packages = import ./packages {
|
||||
inherit my-lib;
|
||||
lib = nixpkgs.lib;
|
||||
} (inputs // { inherit system; });
|
||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
||||
});
|
||||
// flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
packages = import ./packages {
|
||||
inherit my-lib;
|
||||
lib = nixpkgs.lib;
|
||||
} (inputs // { inherit system; });
|
||||
|
||||
formatter = pkgs.nixfmt-tree;
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [ pkgs.pre-commit ];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -24,11 +24,6 @@ in
|
||||
|
||||
yubikey.enable = true;
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
polarity = "dark";
|
||||
|
||||
@@ -18,22 +18,13 @@ let
|
||||
user: import ../users/${user}/home-manager.nix { inherit inputs; }
|
||||
);
|
||||
|
||||
gib_in_bytes = 1073741824;
|
||||
in
|
||||
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
|
||||
{
|
||||
nix.settings = {
|
||||
download-buffer-size = 1 * gib_in_bytes;
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
}
|
||||
../nix.nix
|
||||
|
||||
{ nixpkgs.overlays = overlays; }
|
||||
{ nixpkgs.config.allowUnfree = true; }
|
||||
|
||||
23
nix.nix
Normal file
23
nix.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
download-buffer-size = 2 * 1024 * 1024 * 1024;
|
||||
warn-dirty = false;
|
||||
};
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "monthly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
optimise = {
|
||||
automatic = true;
|
||||
dates = [ "monthly" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
[formatter.nix]
|
||||
command = "nix"
|
||||
options = ["fmt"]
|
||||
includes = [ "*.nix" ]
|
||||
@@ -26,6 +26,7 @@ in
|
||||
|
||||
# git and co
|
||||
pkgs.git
|
||||
pkgs.git-lfs
|
||||
packages.git-linearize
|
||||
packages.ggman
|
||||
|
||||
@@ -56,6 +57,11 @@ in
|
||||
|
||||
home.file.".assets".source = "${inputs.self}/assets";
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
stylix.targets.neovim.enable = false;
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user