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";
|
system = "x86_64-linux";
|
||||||
format = "install-iso";
|
format = "install-iso";
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [ ./iso.nix ];
|
modules = [ ./hosts/live-iso/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
@@ -94,11 +94,22 @@
|
|||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
} { };
|
} { };
|
||||||
}
|
}
|
||||||
// flake-utils.lib.eachDefaultSystem (system: {
|
// flake-utils.lib.eachDefaultSystem (
|
||||||
packages = import ./packages {
|
system:
|
||||||
inherit my-lib;
|
let
|
||||||
lib = nixpkgs.lib;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
} (inputs // { inherit system; });
|
in
|
||||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
{
|
||||||
});
|
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;
|
yubikey.enable = true;
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
|
|||||||
@@ -18,22 +18,13 @@ let
|
|||||||
user: import ../users/${user}/home-manager.nix { inherit inputs; }
|
user: import ../users/${user}/home-manager.nix { inherit inputs; }
|
||||||
);
|
);
|
||||||
|
|
||||||
gib_in_bytes = 1073741824;
|
|
||||||
in
|
in
|
||||||
|
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
||||||
{
|
../nix.nix
|
||||||
nix.settings = {
|
|
||||||
download-buffer-size = 1 * gib_in_bytes;
|
|
||||||
experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
{ nixpkgs.overlays = overlays; }
|
{ nixpkgs.overlays = overlays; }
|
||||||
{ nixpkgs.config.allowUnfree = true; }
|
{ 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
|
# git and co
|
||||||
pkgs.git
|
pkgs.git
|
||||||
|
pkgs.git-lfs
|
||||||
packages.git-linearize
|
packages.git-linearize
|
||||||
packages.ggman
|
packages.ggman
|
||||||
|
|
||||||
@@ -56,6 +57,11 @@ in
|
|||||||
|
|
||||||
home.file.".assets".source = "${inputs.self}/assets";
|
home.file.".assets".source = "${inputs.self}/assets";
|
||||||
|
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
stylix.targets.neovim.enable = false;
|
stylix.targets.neovim.enable = false;
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user