Compare commits

..

No commits in common. "44ce54628ef56a2f61ad63478f9db0a475255bd4" and "f329f8b501d1064b20bef79016f767f3ce5b2d70" have entirely different histories.

13 changed files with 16 additions and 121 deletions

View File

@ -41,17 +41,11 @@
nixpkgs,
home-manager,
install-system,
nix-vscode-extensions,
stylix,
...
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ nix-vscode-extensions.overlays.default ];
};
in
{
nixosConfigurations = {
@ -59,6 +53,7 @@
host = "laptop";
profile = "desktop";
username = "josh";
gpgSigningKey = "0x530DA0331EFE99F5";
in nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
@ -66,8 +61,8 @@
inherit host;
inherit profile;
inherit username;
inherit gpgSigningKey;
};
pkgs = pkgs;
modules = [
./hosts/${host}
];
@ -85,7 +80,6 @@
inherit profile;
inherit username;
};
pkgs = pkgs;
modules = [
./hosts/${host}
];
@ -103,7 +97,6 @@
inherit profile;
inherit username;
};
pkgs = pkgs;
modules = [
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
{ environment.systemPackages = [ install-system.packages.${system}.default ]; }
@ -121,7 +114,7 @@
inherit profile;
inherit username;
};
pkgs = pkgs;
pkgs = nixpkgs.legacyPackages.${system};
modules = [
./homes/josh/home.nix
stylix.homeModules.stylix

View File

@ -1,6 +1,4 @@
{
config,
gpgSigningKey,
lib,
pkgs,
profile,
@ -27,23 +25,6 @@ with lib;
];
};
programs.git = {
enable = true;
settings = {
user = {
name = "Joshua Yuen";
email = "joshuayuen99@gmail.com";
# We need to do this to pass through the (optional) signing key from the hosts/* file
signingkey = if gpgSigningKey != "" then gpgSigningKey else config.modules.gpg.signingKey;
};
commit.gpgsign = true;
init.defaultBranch = "main";
};
};
# Enable GPG-agent for git signing
modules.gpg.enable = true;
# Let Home Manager install and manage itself
programs.home-manager.enable = true;

View File

@ -12,6 +12,4 @@
./hardware.nix
./host-packages.nix
];
modules.gpg.signingKey = "0x530DA0331EFE99F5";
}

View File

@ -15,7 +15,7 @@ in
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
useGlobalPkgs = false;
backupFileExtension = "backup";
extraSpecialArgs = {
inherit
@ -24,7 +24,6 @@ in
profile
username
;
gpgSigningKey = config.modules.gpg.signingKey;
};
users.${username} = {
imports = [ ../../homes/${username}/home.nix ];

View File

@ -4,12 +4,11 @@
{
imports = [
./direnv.nix
./discord.nix
./firefox.nix
./gpg.nix
./fzf.nix
./hyprland
./kitty.nix
./overlays.nix
./stylix.nix
./vscodium.nix
./walker.nix

View File

@ -1,18 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.modules.discord;
in
{
config = mkIf cfg.enable {
programs.discord = {
enable = true;
package = pkgs.discord;
};
};
}

View File

@ -1,31 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.modules.gpg;
in
{
config = mkIf cfg.enable {
services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
enableBashIntegration = true;
enableZshIntegration = true;
pinentry.package = pkgs.pinentry-qt;
};
};
home.packages = [ pkgs.gnupg ];
programs = {
gpg = {
enable = true;
};
};
};
}

View File

@ -0,0 +1,11 @@
{
inputs,
...
}:
{
nixpkgs = {
overlays = [
inputs.nix-vscode-extensions.overlays.default
];
};
}

View File

@ -24,7 +24,6 @@
redhat.ansible
redhat.vscode-yaml
rvest.vs-code-prettier-eslint
vscodevim.vim
];
};
}

View File

@ -3,9 +3,7 @@
}:
{
imports = [
./discord.nix
./displayManager.nix
./gpg.nix
./hyprland.nix
./localsend.nix
./pipewire.nix

View File

@ -1,13 +0,0 @@
{
lib,
...
}:
with lib;
{
options.modules.discord = {
enable = mkEnableOption {
default = false;
description = "Enable Discord";
};
};
}

View File

@ -1,19 +0,0 @@
{
lib,
...
}:
with lib;
{
options.modules.gpg = {
enable = mkEnableOption {
default = false;
description = "Enable gpg-agent";
};
signingKey = mkOption {
type = types.str;
default = "";
description = "The key ID to sign with for git";
};
};
}

View File

@ -23,6 +23,4 @@
modules.shell.defaultShell = "zsh";
modules.pipewire.enable = true;
modules.discord.enable = true;
}