mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
gpg configured
This commit is contained in:
parent
dd508cb134
commit
86fe70288b
4 changed files with 52 additions and 43 deletions
22
flake.lock
generated
22
flake.lock
generated
|
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781981105,
|
"lastModified": 1783740085,
|
||||||
"narHash": "sha256-/1nNBbA7PrSQpTc9Qazkhl4kIPg+TNl0CjxS3UQJKlw=",
|
"narHash": "sha256-qajyHfZY29G2oEQk+uHxmsJcRoBUBXP9maTpFlwP/dI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "7bfff44b465909f69a442701293bc0badcf476dc",
|
"rev": "3cd22efe6471dc7365c822bd9ad73a21e55f38fb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -23,16 +23,18 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1782535326,
|
"lastModified": 1783549019,
|
||||||
"narHash": "sha256-r4TA57SL7nvj1R+GY/FCLwFU48w9IixTQlzBTIYkt8E=",
|
"narHash": "sha256-0XnckG4ZhBmAsYa9mLuEIFowBG0fDGPLHduQGsbMS4A=",
|
||||||
"rev": "714a5f8c4ead6b31148d829288440ed033ccc041",
|
"owner": "NixOS",
|
||||||
"type": "tarball",
|
"repo": "nixpkgs",
|
||||||
"url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.3494.714a5f8c4ead/nixexprs.tar.xz"
|
"rev": "74cc63f702f7d60a557e152a57b40fb1fd0f72ac",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-26.05",
|
"ref": "nixos-26.05",
|
||||||
"type": "indirect"
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
||||||
26
flake.nix
26
flake.nix
|
|
@ -2,7 +2,9 @@
|
||||||
description = "NixOS system flake";
|
description = "NixOS system flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-26.05";
|
nixpkgs = {
|
||||||
|
url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-26.05";
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
|
|
@ -12,22 +14,15 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }:
|
outputs = { self, nixpkgs, home-manager, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
hosts = [ "sys" ];
|
|
||||||
# hosts = builtins.attrNames (builtins.readDir ./hosts);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations =
|
nixosConfigurations = {
|
||||||
builtins.listToAttrs (
|
sys = lib.nixosSystem {
|
||||||
map (host: {
|
system = "x86_64-linux";
|
||||||
name = host;
|
|
||||||
value = nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host}/configuration.nix
|
./hosts/sys/configuration.nix
|
||||||
./hosts/${host}/hardware-configuration.nix
|
./hosts/sys/hardware-configuration.nix
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|
@ -42,7 +37,6 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}) hosts
|
};
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
30
home/him.nix
30
home/him.nix
|
|
@ -1,10 +1,31 @@
|
||||||
{ config, pkgs, ... } :
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.username = "him";
|
home.username = "him";
|
||||||
home.homeDirectory = "/home/him";
|
home.homeDirectory = "/home/him";
|
||||||
home.stateVersion = "26.05";
|
home.stateVersion = "26.05";
|
||||||
|
|
||||||
programs.git.enable = true;
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
user = {
|
||||||
|
name = "Semere M. Mebrahtom";
|
||||||
|
email = "semere.meharena1@gmail.com";
|
||||||
|
};
|
||||||
|
commit.gpgsign = true;
|
||||||
|
gpg.program = "gpg";
|
||||||
|
};
|
||||||
|
signing = {
|
||||||
|
key = "451054EEC0D2AFD1741D4E6A7FC937214DF30488";
|
||||||
|
signByDefault = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
defaultCacheTtl = 1800;
|
||||||
|
enableSshSupport = true;
|
||||||
|
pinentry.package = pkgs.pinentry-curses;
|
||||||
|
};
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -13,5 +34,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,19 +61,14 @@
|
||||||
gnupg
|
gnupg
|
||||||
pass
|
pass
|
||||||
p7zip
|
p7zip
|
||||||
yazi
|
|
||||||
wmenu
|
wmenu
|
||||||
fnott
|
fnott
|
||||||
|
|
||||||
btop
|
btop
|
||||||
|
|
||||||
wlock
|
|
||||||
helix
|
helix
|
||||||
foot
|
foot
|
||||||
firefox
|
firefox
|
||||||
|
tor-browser
|
||||||
mpv
|
|
||||||
yt-dlp
|
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|
@ -93,12 +88,6 @@
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "26.05";
|
system.stateVersion = "26.05";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue