aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock154
-rw-r--r--flake.nix25
-rw-r--r--phone/default.nix16
-rw-r--r--phone/home.nix21
4 files changed, 215 insertions, 1 deletions
diff --git a/flake.lock b/flake.lock
index d143400..9d2ca5e 100644
--- a/flake.lock
+++ b/flake.lock
@@ -114,6 +114,57 @@
"type": "github"
}
},
+ "nix-formatter-pack": {
+ "inputs": {
+ "nixpkgs": [
+ "nix-on-droid",
+ "nixpkgs"
+ ],
+ "nmd": "nmd",
+ "nmt": "nmt"
+ },
+ "locked": {
+ "lastModified": 1705252799,
+ "narHash": "sha256-HgSTREh7VoXjGgNDwKQUYcYo13rPkltW7IitHrTPA5c=",
+ "owner": "Gerschtli",
+ "repo": "nix-formatter-pack",
+ "rev": "2de39dedd79aab14c01b9e2934842051a160ffa5",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Gerschtli",
+ "repo": "nix-formatter-pack",
+ "type": "github"
+ }
+ },
+ "nix-on-droid": {
+ "inputs": {
+ "home-manager": [
+ "home-manager"
+ ],
+ "nix-formatter-pack": "nix-formatter-pack",
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "nixpkgs-docs": "nixpkgs-docs",
+ "nixpkgs-for-bootstrap": "nixpkgs-for-bootstrap",
+ "nmd": "nmd_2"
+ },
+ "locked": {
+ "lastModified": 1720396533,
+ "narHash": "sha256-UFzk/hZWO1VkciIO5UPaSpJN8s765wsngUSvtJM6d5Q=",
+ "owner": "nix-community",
+ "repo": "nix-on-droid",
+ "rev": "f3d3b8294039f2f9a8fb7ea82c320f29c6b0fe25",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "ref": "release-24.05",
+ "repo": "nix-on-droid",
+ "type": "github"
+ }
+ },
"nixpkgs": {
"locked": {
"lastModified": 1722062969,
@@ -130,6 +181,38 @@
"type": "github"
}
},
+ "nixpkgs-docs": {
+ "locked": {
+ "lastModified": 1705957679,
+ "narHash": "sha256-Q8LJaVZGJ9wo33wBafvZSzapYsjOaNjP/pOnSiKVGHY=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "9a333eaa80901efe01df07eade2c16d183761fa3",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "release-23.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs-for-bootstrap": {
+ "locked": {
+ "lastModified": 1720244366,
+ "narHash": "sha256-WrDV0FPMVd2Sq9hkR5LNHudS3OSMmUrs90JUTN+MXpA=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40",
+ "type": "github"
+ }
+ },
"nixpkgs-lib": {
"locked": {
"lastModified": 1719876945,
@@ -174,6 +257,60 @@
"type": "github"
}
},
+ "nmd": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1666190571,
+ "narHash": "sha256-Z1hc7M9X6L+H83o9vOprijpzhTfOBjd0KmUTnpHAVjA=",
+ "owner": "rycee",
+ "repo": "nmd",
+ "rev": "b75d312b4f33bd3294cd8ae5c2ca8c6da2afc169",
+ "type": "gitlab"
+ },
+ "original": {
+ "owner": "rycee",
+ "repo": "nmd",
+ "type": "gitlab"
+ }
+ },
+ "nmd_2": {
+ "inputs": {
+ "nixpkgs": [
+ "nix-on-droid",
+ "nixpkgs-docs"
+ ],
+ "scss-reset": "scss-reset"
+ },
+ "locked": {
+ "lastModified": 1705050560,
+ "narHash": "sha256-x3zzcdvhJpodsmdjqB4t5mkVW22V3wqHLOun0KRBzUI=",
+ "owner": "~rycee",
+ "repo": "nmd",
+ "rev": "66d9334933119c36f91a78d565c152a4fdc8d3d3",
+ "type": "sourcehut"
+ },
+ "original": {
+ "owner": "~rycee",
+ "repo": "nmd",
+ "type": "sourcehut"
+ }
+ },
+ "nmt": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1648075362,
+ "narHash": "sha256-u36WgzoA84dMVsGXzml4wZ5ckGgfnvS0ryzo/3zn/Pc=",
+ "owner": "rycee",
+ "repo": "nmt",
+ "rev": "d83601002c99b78c89ea80e5e6ba21addcfe12ae",
+ "type": "gitlab"
+ },
+ "original": {
+ "owner": "rycee",
+ "repo": "nmt",
+ "type": "gitlab"
+ }
+ },
"no-style-please": {
"flake": false,
"locked": {
@@ -219,6 +356,7 @@
"disko": "disko",
"flake-utils": "flake-utils",
"home-manager": "home-manager",
+ "nix-on-droid": "nix-on-droid",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay",
"snippets-ls": "snippets-ls",
@@ -246,6 +384,22 @@
"type": "github"
}
},
+ "scss-reset": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1631450058,
+ "narHash": "sha256-muDlZJPtXDIGevSEWkicPP0HQ6VtucbkMNygpGlBEUM=",
+ "owner": "andreymatin",
+ "repo": "scss-reset",
+ "rev": "0cf50e27a4e95e9bb5b1715eedf9c54dee1a5a91",
+ "type": "github"
+ },
+ "original": {
+ "owner": "andreymatin",
+ "repo": "scss-reset",
+ "type": "github"
+ }
+ },
"snippets-ls": {
"inputs": {
"nixpkgs": [
diff --git a/flake.nix b/flake.nix
index 74cc584..85a27ff 100644
--- a/flake.nix
+++ b/flake.nix
@@ -28,10 +28,20 @@
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
+ nix-on-droid = {
+ url = "github:nix-community/nix-on-droid/release-24.05";
+ inputs.nixpkgs.follows = "nixpkgs";
+ inputs.home-manager.follows = "home-manager";
+ };
};
outputs =
- { flake-utils, ... }@inputs:
+ {
+ nixpkgs,
+ flake-utils,
+ nix-on-droid,
+ ...
+ }@inputs:
flake-utils.lib.eachDefaultSystem (
system:
let
@@ -93,5 +103,18 @@
in
builtins.mapAttrs generateNixosSystem nixosConfigs;
+
+ nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
+ pkgs = import nixpkgs { system = "aarch64-linux"; };
+ modules = [
+ ./phone
+ ./share/system/common.nix
+ ];
+
+ extraSpecialArgs = {
+ inherit inputs;
+ flakeRoot = ./.;
+ };
+ };
};
}
diff --git a/phone/default.nix b/phone/default.nix
new file mode 100644
index 0000000..8d2c5bd
--- /dev/null
+++ b/phone/default.nix
@@ -0,0 +1,16 @@
+{ pkgs, ... }:
+{
+ # Backup etc files instead of failing to activate generation if a file already exists in /etc
+ environment.etcBackupExtension = ".bak";
+
+ # Read the changelog before changing this value
+ system.stateVersion = "24.05";
+
+ home-manager = {
+ config = ./home.nix;
+ backupFileExtension = "hm-bak";
+ useGlobalPkgs = true;
+ };
+
+ users.shell = "${pkgs.fish}/bin/fish";
+}
diff --git a/phone/home.nix b/phone/home.nix
new file mode 100644
index 0000000..a1151a0
--- /dev/null
+++ b/phone/home.nix
@@ -0,0 +1,21 @@
+{ flakeRoot, ... }:
+{
+ imports = [
+ (flakeRoot + /share/cfg)
+ (flakeRoot + /share/home/minimal.nix)
+ ];
+
+ programs.helix = {
+ enable = true;
+ defaultEditor = true;
+ };
+ programs.direnv = {
+ enable = true;
+ nix-direnv.enable = true;
+ };
+ programs.fish.enable = true;
+ programs.eza.enable = true;
+ programs.starship.enable = true;
+ programs.gallery-dl.enable = true;
+ programs.git.enable = true;
+}