Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed May 13, 2024
1 parent 7541f8d commit d93cdeb
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 52 deletions.
41 changes: 29 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};

outputs = inputs@{ self, nixpkgs, nix-darwin, home-manager, emacs-overlay }: {
outputs = inputs@{ self, nixpkgs, nix-darwin, home-manager, emacs-overlay, nixos-hardware }: {
darwinConfigurations = (import ./systems/OPL2212-2 {
inherit self nixpkgs nix-darwin home-manager emacs-overlay;
});
# nixosConfigurations = (import ./systems/)
nixosConfigurations = (import ./systems/X13Gen2 {
inherit self nixpkgs home-manager emacs-overlay nixos-hardware;
});
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 10 additions & 9 deletions home-manager/package.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ pkgs }:
let
ecspresso = pkgs.callPackage ./pkgs/ecspresso { };
isucrud = pkgs.callPackage ./pkgs/isucrud { };
mitamae = pkgs.callPackage ./pkgs/mitamae { };
# tmux-sixel = pkgs.callPackage ./pkgs/tmux-sixel { };
ecspresso = pkgs.callPackage ./nixpkgs/ecspresso { };
isucrud = pkgs.callPackage ./nixpkgs/isucrud { };
# mitamae = pkgs.callPackage ./pkgs/mitamae { };
tmux-sixel = pkgs.callPackage ./nixpkgs/tmux-sixel { };
in with pkgs; [
# for language specific
gopls
Expand All @@ -27,7 +27,8 @@ in with pkgs; [
yaml-language-server

# for gnupg
pinentry_mac
# pinentry_mac
# pinentry-curses
pinentry-emacs
gnupg

Expand All @@ -53,9 +54,9 @@ in with pkgs; [
pv
ripgrep
rlwrap
terminal-notifier
# terminal-notifier
tig
tmux # or tmux-sixel
tmux-sixel
tokei
tree
unixtools.procps
Expand All @@ -71,7 +72,7 @@ in with pkgs; [
iftop
imagemagick
isucrud
mitamae
# mitamae
ncurses
neofetch
offlineimap
Expand All @@ -84,7 +85,7 @@ in with pkgs; [

# for editor
cmigemo
emacs-git
emacs
editorconfig-core-c
nano
neovim
Expand Down
44 changes: 20 additions & 24 deletions systems/X13Gen2/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
{ config, pkgs, ... }:

{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];

# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
Expand Down Expand Up @@ -51,9 +46,9 @@

# Configure keymap in X11
services.xserver = {
layout = "jp";
xkbVariant = "";
xkbOptions = "ctrl:swapcaps";
xkb.layout = "jp";
xkb.variant = "";
xkb.options = "ctrl:swapcaps";
};

# Configure console keymap
Expand Down Expand Up @@ -87,29 +82,30 @@
isNormalUser = true;
description = "take";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
# thunderbird
];
packages = with pkgs;
[
firefox
# thunderbird
];
};

# Allow unfree packages
nixpkgs.config.allowUnfree = true;

# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
emacs29
git
ghq
gnumake
gnupg
pinentry-curses
tmux
fish
peco
];
# environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# emacs29
# git
# ghq
# gnumake
# gnupg
# pinentry-curses
# tmux
# fish
# peco
# ];

# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
Expand Down
11 changes: 6 additions & 5 deletions systems/X13Gen2/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ self, nixpkgs, home-manager, emacs-overlay, ... }:
{ self, nixpkgs, home-manager, emacs-overlay, nixos-hardware, ... }:
let
system = "aarch64-linux";
username = "take";
in {
system = "x86_64-linux";
in
{
X13Gen2 = nixpkgs.lib.nixosSystem {
inherit system;

modules = [
./configuration.nix
home-manager.darwinModules.home-manager
./hardware-configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.users."${username}" =
Expand Down

0 comments on commit d93cdeb

Please sign in to comment.