feat: add nix-on-droid to flake
This commit is contained in:
parent
13f0062331
commit
75a52aa5ae
5 changed files with 132 additions and 5 deletions
|
@ -13,11 +13,13 @@ with lib; let
|
|||
nvim-treesitter-hypr = tree-sitter-hypr-flake.packages.${pkgs.system}.default;
|
||||
coc-stylelintplus = coc-stylelintplus-flake.packages.${pkgs.system}.default;
|
||||
in {
|
||||
home.packages = optionalAttrs nvimIde (with pkgs; [
|
||||
home = optionalAttrs nvimIde {
|
||||
packages = with pkgs; [
|
||||
gradle
|
||||
gradle-completion # FIXME: not working
|
||||
alejandra
|
||||
]);
|
||||
];
|
||||
};
|
||||
|
||||
xdg.dataFile = optionalAttrs nvimIde {
|
||||
".gradle/gradle.properties".text = ''
|
||||
|
|
80
common/nix-on-droid.nix
Normal file
80
common/nix-on-droid.nix
Normal file
|
@ -0,0 +1,80 @@
|
|||
{
|
||||
config,
|
||||
nixpkgs,
|
||||
nur,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./vars.nix
|
||||
./pkgs
|
||||
nur.nixosModules.nur
|
||||
];
|
||||
|
||||
nix = {
|
||||
# Edit nix.conf
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
auto-optimise-store = true
|
||||
warn-dirty = false
|
||||
'';
|
||||
|
||||
# Minimize dowloads of indirect nixpkgs flakes
|
||||
registry.nixpkgs = {
|
||||
flake = nixpkgs;
|
||||
exact = false;
|
||||
};
|
||||
|
||||
substituters = [
|
||||
# Neovim and stuff
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
trustedPublicKeys = [
|
||||
# Neovim and stuff
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
|
||||
# Global hm settings
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
config = {
|
||||
imports = [
|
||||
# Make the vars be the same on Nix and HM
|
||||
./vars.nix
|
||||
{vars = config.vars;}
|
||||
|
||||
nur.hmModules.nur
|
||||
|
||||
./home
|
||||
./pkgs
|
||||
];
|
||||
|
||||
home.packages =
|
||||
[
|
||||
config.customPkgs.repl
|
||||
]
|
||||
++ (with pkgs.nodePackages; [
|
||||
undollar
|
||||
])
|
||||
++ (with pkgs; [
|
||||
dracula-theme
|
||||
neofetch
|
||||
progress
|
||||
wget
|
||||
tree
|
||||
mosh
|
||||
rsync
|
||||
killall
|
||||
imagemagick
|
||||
usbutils
|
||||
]);
|
||||
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
};
|
||||
}
|
45
devices/android/default.nix
Normal file
45
devices/android/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{pkgs, ...}: {
|
||||
vars = {
|
||||
user = "nix-on-droid";
|
||||
hostName = "localhost";
|
||||
neovimIde = false;
|
||||
};
|
||||
|
||||
terminal.font = "${(pkgs.nerdfonts.override {
|
||||
fonts = [
|
||||
"JetBrainsMono"
|
||||
];
|
||||
})}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
|
||||
|
||||
environment.packages = with pkgs; [
|
||||
diffutils
|
||||
findutils
|
||||
utillinux
|
||||
tzdata
|
||||
hostname
|
||||
man
|
||||
gnugrep
|
||||
ripgrep
|
||||
gnupg
|
||||
gnused
|
||||
gnutar
|
||||
bzip2
|
||||
gzip
|
||||
xz
|
||||
zip
|
||||
unzip
|
||||
openssh
|
||||
perl
|
||||
alejandra
|
||||
];
|
||||
|
||||
environment.etcBackupExtension = ".bak";
|
||||
environment.motd = null;
|
||||
home-manager.backupFileExtension = "hm-bak";
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Montreal";
|
||||
|
||||
# No touchy
|
||||
system.stateVersion = "23.05";
|
||||
}
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
Loading…
Reference in a new issue