aboutsummaryrefslogtreecommitdiff
path: root/phone
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-08-01 02:33:11 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-08-01 02:33:11 +0200
commit3e71c337faaf633ae46d4499028caa43817fd4e7 (patch)
tree2c9739dbe4c780a3636213fa5f4e278da4ac81bd /phone
parentb423e2a14bd27c37c654ec834fc16a04169780b5 (diff)
Add phone configuration
Diffstat (limited to 'phone')
-rw-r--r--phone/default.nix16
-rw-r--r--phone/home.nix21
2 files changed, 37 insertions, 0 deletions
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;
+}