Compare commits

...

5 Commits

11 changed files with 63 additions and 27 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
assets/** filter=lfs diff=lfs merge=lfs -text

6
.pre-commit-config.yaml Normal file
View 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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47098eed6a818a4e6181e2cdd6d1244b2adc46d748da5944a7bf89068eb1c8ad
size 497830

3
assets/wallpaper.png Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d5ab6c3434f2b1b8ebac566fef17fad16dbb6415d76ab06e6abf483b563bc25
size 16097396

View File

@@ -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: {
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = import ./packages {
inherit my-lib;
lib = nixpkgs.lib;
} (inputs // { inherit system; });
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
});
formatter = pkgs.nixfmt-tree;
devShells.default = pkgs.mkShell {
packages = [ pkgs.pre-commit ];
};
}
);
}

View File

@@ -24,11 +24,6 @@ in
yubikey.enable = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
stylix = {
enable = true;
polarity = "dark";

View File

@@ -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
View 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" ];
};
};
}

View File

@@ -1,4 +0,0 @@
[formatter.nix]
command = "nix"
options = ["fmt"]
includes = [ "*.nix" ]

View File

@@ -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;