mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Compare commits
9 commits
7a4ec3c346
...
bb3a93b058
Author | SHA1 | Date | |
---|---|---|---|
bb3a93b058 | |||
bef375ef43 | |||
c0f7854c2c | |||
8cec3e5299 | |||
35c5e4f00b | |||
8f739d1583 | |||
ba2f97ab31 | |||
b6f621c964 | |||
974bd092a2 |
16
flake.lock
16
flake.lock
|
@ -451,16 +451,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719827415,
|
"lastModified": 1720042825,
|
||||||
"narHash": "sha256-pvh+1hStXXAZf0sZ1xIJbWGx4u+OGBC1rVx6Wsw0fBw=",
|
"narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "f2e3c19867262dbe84fdfab42467fc8dd83a2005",
|
"rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-23.11",
|
"ref": "release-24.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -943,16 +943,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719957072,
|
"lastModified": 1720954236,
|
||||||
"narHash": "sha256-gvFhEf5nszouwLAkT9nWsDzocUTqLWHuL++dvNjMp9I=",
|
"narHash": "sha256-1mEKHp4m9brvfQ0rjCca8P1WHpymK3TOr3v34ydv9bs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "7144d6241f02d171d25fba3edeaf15e0f2592105",
|
"rev": "53e81e790209e41f0c1efa9ff26ff2fd7ab35e27",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-23.11",
|
"ref": "nixos-24.05",
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -79,6 +79,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pkgs-unstable = import inputs.nixpkgs-patched {
|
||||||
|
system = systemSettings.system;
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
allowUnfreePredicate = (_: true);
|
||||||
|
};
|
||||||
|
overlays = [ inputs.rust-overlay.overlays.default ];
|
||||||
|
};
|
||||||
|
|
||||||
pkgs-emacs = import inputs.emacs-pin-nixpkgs {
|
pkgs-emacs = import inputs.emacs-pin-nixpkgs {
|
||||||
system = systemSettings.system;
|
system = systemSettings.system;
|
||||||
};
|
};
|
||||||
|
@ -192,7 +201,7 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
|
nixpkgs-stable.url = "nixpkgs/nixos-24.05";
|
||||||
emacs-pin-nixpkgs.url = "nixpkgs/f72123158996b8d4449de481897d855bc47c7bf6";
|
emacs-pin-nixpkgs.url = "nixpkgs/f72123158996b8d4449de481897d855bc47c7bf6";
|
||||||
kdenlive-pin-nixpkgs.url = "nixpkgs/cfec6d9203a461d9d698d8a60ef003cac6d0da94";
|
kdenlive-pin-nixpkgs.url = "nixpkgs/cfec6d9203a461d9d698d8a60ef003cac6d0da94";
|
||||||
nwg-dock-hyprland-pin-nixpkgs.url = "nixpkgs/2098d845d76f8a21ae4fe12ed7c7df49098d3f15";
|
nwg-dock-hyprland-pin-nixpkgs.url = "nixpkgs/2098d845d76f8a21ae4fe12ed7c7df49098d3f15";
|
||||||
|
@ -200,7 +209,7 @@
|
||||||
home-manager-unstable.url = "github:nix-community/home-manager/master";
|
home-manager-unstable.url = "github:nix-community/home-manager/master";
|
||||||
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
home-manager-stable.url = "github:nix-community/home-manager/release-23.11";
|
home-manager-stable.url = "github:nix-community/home-manager/release-24.05";
|
||||||
home-manager-stable.inputs.nixpkgs.follows = "nixpkgs-stable";
|
home-manager-stable.inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
|
|
||||||
nix-on-droid = {
|
nix-on-droid = {
|
||||||
|
|
27
harden.sh
27
harden.sh
|
@ -19,17 +19,18 @@ else
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
fi
|
fi
|
||||||
pushd $SCRIPT_DIR &> /dev/null;
|
pushd $SCRIPT_DIR &> /dev/null;
|
||||||
chown 0:0 .;
|
sudo chown 0:0 .;
|
||||||
chown 0:0 profiles/*;
|
sudo chown 0:0 profiles/*;
|
||||||
chown -R 0:0 system;
|
sudo chown -R 0:0 system;
|
||||||
chown -R 0:0 patches;
|
sudo chown -R 0:0 patches;
|
||||||
chown 0:0 flake.lock;
|
sudo chown 0:0 flake.lock;
|
||||||
chown 0:0 flake.nix
|
sudo chown 0:0 flake.nix
|
||||||
chown 0:0 profiles
|
sudo chown 0:0 profiles
|
||||||
chown 0:0 profiles/*/configuration.nix;
|
sudo chown 0:0 profiles/*/configuration.nix;
|
||||||
chown 0:0 harden.sh;
|
sudo chown 0:0 profiles/homelab/base.nix;
|
||||||
chown 0:0 soften.sh;
|
sudo chown 0:0 harden.sh;
|
||||||
chown 0:0 install.sh;
|
sudo chown 0:0 soften.sh;
|
||||||
chown 0:0 update.sh;
|
sudo chown 0:0 install.sh;
|
||||||
chown 1000:users **/README.org;
|
sudo chown 0:0 update.sh;
|
||||||
|
sudo chown 1000:users **/README.org;
|
||||||
popd &> /dev/null;
|
popd &> /dev/null;
|
||||||
|
|
|
@ -89,6 +89,4 @@
|
||||||
# It is ok to leave this unchanged for compatibility purposes
|
# It is ok to leave this unchanged for compatibility purposes
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
|
|
||||||
news.display = "silent";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,5 +23,5 @@ else
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
fi
|
fi
|
||||||
pushd $SCRIPT_DIR &> /dev/null;
|
pushd $SCRIPT_DIR &> /dev/null;
|
||||||
chown -R 1000:users .;
|
sudo chown -R 1000:users .;
|
||||||
popd &> /dev/null;
|
popd &> /dev/null;
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
# Firewall
|
# Firewall
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
networking.firewall.allowedTCPPorts = [ 22000 21027 ]; # syncthing
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ]; # syncthing
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -727,8 +727,8 @@ If the path from LINK does not exist, nil is returned."
|
||||||
(defun org-roam-open-dashboard ()
|
(defun org-roam-open-dashboard ()
|
||||||
"Open ${org-roam-directory}/dashboard.org (I use this naming convention to create dashboards for each of my org roam maps)"
|
"Open ${org-roam-directory}/dashboard.org (I use this naming convention to create dashboards for each of my org roam maps)"
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (file-exists-p (concat org-roam-directory "/dashboard.org"))
|
(if (org-roam-node-from-title-or-alias "Overview")
|
||||||
(org-open-file (concat org-roam-directory "/dashboard.org"))
|
(org-roam-node-open (org-roam-node-from-title-or-alias "Overview"))
|
||||||
(dired org-roam-directory))
|
(dired org-roam-directory))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -740,11 +740,19 @@ If the path from LINK does not exist, nil is returned."
|
||||||
(message "No inbox found, capture something with M-x org-roam-capture-inbox"))
|
(message "No inbox found, capture something with M-x org-roam-capture-inbox"))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(defun org-roam-open-inbox ()
|
||||||
|
"Open ${org-roam-directory}/dashboard.org (I use this naming convention to create dashboards for each of my org roam maps)"
|
||||||
|
(interactive)
|
||||||
|
(if (org-roam-node-from-title-or-alias "Inbox")
|
||||||
|
(org-roam-node-open (org-roam-node-from-title-or-alias "Inbox"))
|
||||||
|
(message "No inbox found, capture something with M-x org-roam-capture-inbox"))
|
||||||
|
)
|
||||||
|
|
||||||
(defun org-roam-capture-inbox ()
|
(defun org-roam-capture-inbox ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-roam-capture- :node (org-roam-node-create)
|
(org-roam-capture- :node (org-roam-node-from-title-or-alias "Inbox")
|
||||||
:templates '(("i" "inbox" plain "* %?"
|
:templates '(("i" "inbox" plain "* %?"
|
||||||
:if-new (file+head "inbox.org" "#+title: Inbox\n")))))
|
:if-new (file+head "%<%Y%m%d%H%M%S>-inbox.org" "#+title: Inbox\n")))))
|
||||||
|
|
||||||
(defun org-roam-switch-db (&optional arg silent)
|
(defun org-roam-switch-db (&optional arg silent)
|
||||||
"Switch to a different org-roam database, arg"
|
"Switch to a different org-roam database, arg"
|
||||||
|
|
|
@ -866,8 +866,8 @@ exit
|
||||||
(defun org-roam-open-dashboard ()
|
(defun org-roam-open-dashboard ()
|
||||||
"Open ${org-roam-directory}/dashboard.org (I use this naming convention to create dashboards for each of my org roam maps)"
|
"Open ${org-roam-directory}/dashboard.org (I use this naming convention to create dashboards for each of my org roam maps)"
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (file-exists-p (concat org-roam-directory "/dashboard.org"))
|
(if (org-roam-node-from-title-or-alias "Overview")
|
||||||
(org-open-file (concat org-roam-directory "/dashboard.org"))
|
(org-roam-node-open (org-roam-node-from-title-or-alias "Overview"))
|
||||||
(dired org-roam-directory))
|
(dired org-roam-directory))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -879,11 +879,19 @@ exit
|
||||||
(message "No inbox found, capture something with M-x org-roam-capture-inbox"))
|
(message "No inbox found, capture something with M-x org-roam-capture-inbox"))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(defun org-roam-open-inbox ()
|
||||||
|
"Open ${org-roam-directory}/dashboard.org (I use this naming convention to create dashboards for each of my org roam maps)"
|
||||||
|
(interactive)
|
||||||
|
(if (org-roam-node-from-title-or-alias "Inbox")
|
||||||
|
(org-roam-node-open (org-roam-node-from-title-or-alias "Inbox"))
|
||||||
|
(message "No inbox found, capture something with M-x org-roam-capture-inbox"))
|
||||||
|
)
|
||||||
|
|
||||||
(defun org-roam-capture-inbox ()
|
(defun org-roam-capture-inbox ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-roam-capture- :node (org-roam-node-create)
|
(org-roam-capture- :node (org-roam-node-from-title-or-alias "Inbox")
|
||||||
:templates '(("i" "inbox" plain "* %?"
|
:templates '(("i" "inbox" plain "* %?"
|
||||||
:if-new (file+head "inbox.org" "#+title: Inbox\n")))))
|
:if-new (file+head "%<%Y%m%d%H%M%S>-inbox.org" "#+title: Inbox\n")))))
|
||||||
|
|
||||||
(defun org-roam-switch-db (&optional arg silent)
|
(defun org-roam-switch-db (&optional arg silent)
|
||||||
"Switch to a different org-roam database, arg"
|
"Switch to a different org-roam database, arg"
|
||||||
|
@ -932,6 +940,10 @@ exit
|
||||||
(org-roam-switch-db prev-org-roam-db-choice 1)))
|
(org-roam-switch-db prev-org-roam-db-choice 1)))
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
#+RESULTS:
|
||||||
|
: org-roam-switch-db-id-open
|
||||||
|
|
||||||
*** Org Roam "todos" Tagging for Org Agenda
|
*** Org Roam "todos" Tagging for Org Agenda
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
;;;------ Org-roam-agenda configuration ------;;;
|
;;;------ Org-roam-agenda configuration ------;;;
|
||||||
|
|
|
@ -838,7 +838,7 @@ in
|
||||||
clock = {
|
clock = {
|
||||||
"interval" = 1;
|
"interval" = 1;
|
||||||
"format" = "{:%a %Y-%m-%d %I:%M:%S %p}";
|
"format" = "{:%a %Y-%m-%d %I:%M:%S %p}";
|
||||||
"timezone" = "America/Chicago";
|
"timezone" = systemSettings.timezone;
|
||||||
"tooltip-format" = ''
|
"tooltip-format" = ''
|
||||||
<big>{:%Y %B}</big>
|
<big>{:%Y %B}</big>
|
||||||
<tt><small>{calendar}</small></tt>'';
|
<tt><small>{calendar}</small></tt>'';
|
||||||
|
|
Loading…
Reference in a new issue