Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed May 26, 2024
1 parent e67c505 commit f249b85
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 37 deletions.
6 changes: 3 additions & 3 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
** for OPL2212-2
#+begin_src shell
nix flake update ~/ghq/github.com/takeokunn/nixos-configuration
nix run nix-darwin -- switch --flake ~/ghq/github.com/takeokunn/nixos-configuration#OPL2212-2
nix run nix-darwin -- switch --flake ~/ghq/github.com/takeokunn/nixos-configuration#OPL2212-2 --show-trace
#+end_src
** for X13Gen2
#+begin_src shell
nix flake update --flake ~/ghq/github.com/takeokunn/nixos-configuration
sudo nixos-rebuild switch --flake ~/ghq/github.com/takeokunn/nixos-configuration#X13Gen2
sudo nixos-rebuild switch --flake ~/ghq/github.com/takeokunn/nixos-configuration#X13Gen2 --show-trace
#+end_src
** for OPPO-A79
#+begin_src shell
nix flake update --flake ~/ghq/github.com/takeokunn/nixos-configuration
nix-on-droid switch --flake ~/ghq/github.com/takeokunn/nixos-configuration#OPPO-A79
nix-on-droid switch --flake ~/ghq/github.com/takeokunn/nixos-configuration#OPPO-A79 --show-trace
#+end_src
4 changes: 2 additions & 2 deletions home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ let
in {
home.stateVersion = "23.11";
home.packages = basicPkgs
++ lib.optionals pkgs.stdenv.isDarwin lib.mkMerge [utilsPkgs darwinPkgs]
++ lib.optionals pkgs.stdenv.isLinux lib.mkMerge [ utilsPkgs nixosPkgs]
++ lib.optionals pkgs.stdenv.isDarwin lib.mkMerge [ utilsPkgs darwinPkgs ]
++ lib.optionals pkgs.stdenv.isLinux lib.mkMerge [ utilsPkgs nixosPkgs ];
}
9 changes: 9 additions & 0 deletions systems/OPPO-A79/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs }: {
# Read the changelog before changing this value
home.stateVersion = "23.11";

# insert home-manager config

home.packages =
import ../../home-manager/packages/basic.nix { inherit pkgs; };
}
40 changes: 8 additions & 32 deletions systems/OPPO-A79/nix-on-droid.nix
Original file line number Diff line number Diff line change
@@ -1,41 +1,17 @@
{ config, lib, pkgs, ... }: {
# Simply install just the packages
environment.packages = with pkgs; [
# User-facing stuff that you really really want to have
vim # or some other editor, e.g. nano or neovim
git
hostname

# Some common stuff that people expect to have
#procps
#killall
#diffutils
#findutils
#utillinux
#tzdata
#man
#gnugrep
#gnupg
#gnused
#gnutar
#bzip2
#gzip
#xz
#zip
#unzip
];

# Backup etc files instead of failing to activate generation if a file already exists in /etc
{ config, lib, pkgs }: {
environment.etcBackupExtension = ".bak";

# Read the changelog before changing this value
system.stateVersion = "23.11";

# Set up nix for flakes
nix.extraOptions = ''
experimental-features = nix-command flakes
'';

# Set your time zone
#time.timeZone = "Europe/Berlin";
time.timeZone = "Asia/Tokyo";

home-manager = {
config = ./home.nix;
backupFileExtension = "hm-bak";
useGlobalPkgs = true;
};
}

0 comments on commit f249b85

Please sign in to comment.