This commit is contained in:
iofq 2024-09-04 23:32:01 -05:00
parent ed0ed3c985
commit d80fd6c243
5 changed files with 30 additions and 15 deletions

View file

@ -1,15 +1,25 @@
{ {
description = "Home Manager && NixOS configuration"; description = "Home Manager && NixOS configuration";
inputs = { inputs = {
nix-index-database.url = "github:nix-community/nix-index-database";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; pre-commit-hooks = {
sops-nix.url = "github:Mic92/sops-nix"; url = "github:cachix/pre-commit-hooks.nix";
tfa.url = "github:iofq/2fa"; inputs.nixpkgs.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix"; };
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.05"; url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -37,9 +47,12 @@
steam = pkgs.writeShellScriptBin "steam" '' steam = pkgs.writeShellScriptBin "steam" ''
flatpak run com.valvesoftware.Steam -pipewire "$@" flatpak run com.valvesoftware.Steam -pipewire "$@"
''; '';
inherit (inputs.tfa.packages.${final.system}) twofa; unstable = import inputs.nixpkgs-unstable {
inherit (final) system;
config.allowUnfree = true;
overlays = [inputs.nvim.overlays.default];
};
}) })
inputs.nvim.overlays.default
]; ];
}; };
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system}); eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});

View file

@ -1,7 +1,4 @@
{pkgs, ...}: { _: {
home.packages = with pkgs; [
twofa
];
programs.gpg = { programs.gpg = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [ home.packages = with pkgs.unstable; [
nvim-pkg nvim-pkg
]; ];
} }

View file

@ -22,7 +22,7 @@
"exit" "exit"
]; ];
shellAliases = { shellAliases = {
la = "eza -lahrt"; la = "eza -lahr";
ll = "la"; ll = "la";
":q" = "exit"; ":q" = "exit";
mpv = "mpv --no-keepaspect-window"; mpv = "mpv --no-keepaspect-window";

View file

@ -26,7 +26,12 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = []; swapDevices = [
{
device = "/swapfile";
size = 8 * 1024;
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's