aboutsummaryrefslogtreecommitdiffstats
path: root/home-manager
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-10-07 11:47:06 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-10-07 11:47:06 +0300
commit4547e75868cba2a265b78661ddc386b5e81c1bb0 (patch)
tree71924feb573c8af5030080fc007eee7bfbaabb20 /home-manager
downloadnix-4547e75868cba2a265b78661ddc386b5e81c1bb0.tar.gz
nix-4547e75868cba2a265b78661ddc386b5e81c1bb0.tar.bz2
nix-4547e75868cba2a265b78661ddc386b5e81c1bb0.zip
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/dotfiles/default.nix5
-rw-r--r--home-manager/dotfiles/example.rc1
-rw-r--r--home-manager/dotfiles/monitors.xml162
-rw-r--r--home-manager/home.nix43
-rw-r--r--home-manager/packages.nix17
-rw-r--r--home-manager/programs/default.nix13
-rw-r--r--home-manager/programs/firefox/default.nix36
-rw-r--r--home-manager/programs/git.nix15
-rw-r--r--home-manager/programs/ssh.nix20
9 files changed, 312 insertions, 0 deletions
diff --git a/home-manager/dotfiles/default.nix b/home-manager/dotfiles/default.nix
new file mode 100644
index 0000000..4efd38f
--- /dev/null
+++ b/home-manager/dotfiles/default.nix
@@ -0,0 +1,5 @@
+{
+ xdg.configFile = {
+ "example.rc".source = ./example.rc;
+ };
+}
diff --git a/home-manager/dotfiles/example.rc b/home-manager/dotfiles/example.rc
new file mode 100644
index 0000000..c48c419
--- /dev/null
+++ b/home-manager/dotfiles/example.rc
@@ -0,0 +1 @@
+this is the example.rc
diff --git a/home-manager/dotfiles/monitors.xml b/home-manager/dotfiles/monitors.xml
new file mode 100644
index 0000000..316c57e
--- /dev/null
+++ b/home-manager/dotfiles/monitors.xml
@@ -0,0 +1,162 @@
+<monitors version="2">
+ <configuration>
+ <logicalmonitor>
+ <x>0</x>
+ <y>1017</y>
+ <scale>1</scale>
+ <primary>yes</primary>
+ <monitor>
+ <monitorspec>
+ <connector>eDP-1</connector>
+ <vendor>BOE</vendor>
+ <product>0x0a4f</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1200</height>
+ <rate>60.003</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ <logicalmonitor>
+ <x>1920</x>
+ <y>0</y>
+ <scale>1</scale>
+ <transform>
+ <rotation>left</rotation>
+ <flipped>no</flipped>
+ </transform>
+ <monitor>
+ <monitorspec>
+ <connector>HDMI-1</connector>
+ <vendor>DEL</vendor>
+ <product>DELL S2721DGF</product>
+ <serial>4GYNS83</serial>
+ </monitorspec>
+ <mode>
+ <width>2560</width>
+ <height>1440</height>
+ <rate>59.951</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ </configuration>
+ <configuration>
+ <logicalmonitor>
+ <x>1920</x>
+ <y>0</y>
+ <scale>1</scale>
+ <primary>yes</primary>
+ <monitor>
+ <monitorspec>
+ <connector>eDP</connector>
+ <vendor>BOE</vendor>
+ <product>0x0a4f</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1200</height>
+ <rate>60.003</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ <logicalmonitor>
+ <x>0</x>
+ <y>0</y>
+ <scale>1</scale>
+ <monitor>
+ <monitorspec>
+ <connector>DisplayPort-1</connector>
+ <vendor>RTK</vendor>
+ <product>FHD</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1280</height>
+ <rate>60.000</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ </configuration>
+ <configuration>
+ <logicalmonitor>
+ <x>1920</x>
+ <y>0</y>
+ <scale>1</scale>
+ <primary>yes</primary>
+ <monitor>
+ <monitorspec>
+ <connector>eDP-1</connector>
+ <vendor>BOE</vendor>
+ <product>0x0a4f</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1200</height>
+ <rate>60.003</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ <logicalmonitor>
+ <x>0</x>
+ <y>0</y>
+ <scale>2</scale>
+ <monitor>
+ <monitorspec>
+ <connector>DP-1</connector>
+ <vendor>RTK</vendor>
+ <product>FHD</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1280</height>
+ <rate>60.000</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ </configuration>
+ <configuration>
+ <logicalmonitor>
+ <x>0</x>
+ <y>0</y>
+ <scale>2</scale>
+ <monitor>
+ <monitorspec>
+ <connector>DP-2</connector>
+ <vendor>RTK</vendor>
+ <product>FHD</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1280</height>
+ <rate>60.000</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ <logicalmonitor>
+ <x>1920</x>
+ <y>0</y>
+ <scale>1</scale>
+ <primary>yes</primary>
+ <monitor>
+ <monitorspec>
+ <connector>eDP-1</connector>
+ <vendor>BOE</vendor>
+ <product>0x0a4f</product>
+ <serial>0x00000000</serial>
+ </monitorspec>
+ <mode>
+ <width>1920</width>
+ <height>1200</height>
+ <rate>60.003</rate>
+ </mode>
+ </monitor>
+ </logicalmonitor>
+ </configuration>
+</monitors> \ No newline at end of file
diff --git a/home-manager/home.nix b/home-manager/home.nix
new file mode 100644
index 0000000..88fbcf3
--- /dev/null
+++ b/home-manager/home.nix
@@ -0,0 +1,43 @@
+{
+ inputs,
+ outputs,
+ config,
+ ...
+}: {
+ imports = [
+ ./dotfiles
+ ./programs
+ ./packages.nix
+ ];
+
+ nixpkgs = {
+ overlays = [
+ outputs.overlays.additions
+ outputs.overlays.modifications
+ outputs.overlays.master-packages
+ ];
+ config = {
+ allowUnfree = true;
+ # Workaround for https://github.com/nix-community/home-manager/issues/2942
+ allowUnfreePredicate = _: true;
+
+ # permittedInsecurePackages = [
+ # "openssl-1.1.1w"
+ # "electron-27.3.11"
+ # ];
+ };
+ };
+
+ home = {
+ username = "grm";
+ homeDirectory = "/home/grm";
+ sessionPath = ["$HOME/bin"];
+ };
+
+ xdg.mimeApps.enable = true;
+
+ # Nicely reload system units when changing configs
+ systemd.user.startServices = "sd-switch";
+
+ home.stateVersion = "24.11";
+}
diff --git a/home-manager/packages.nix b/home-manager/packages.nix
new file mode 100644
index 0000000..eeef0c6
--- /dev/null
+++ b/home-manager/packages.nix
@@ -0,0 +1,17 @@
+{pkgs, ...}: {
+ home.packages = with pkgs; [
+ # discord
+ firefox
+ inotify-tools
+ tree
+ ];
+
+ # xdg.mimeApps = {
+ # associations.added = {
+ # "application/pdf" = "okular.desktop";
+ # };
+ # defaultApplications = {
+ # "application/pdf" = "okular.desktop";
+ # };
+ # };
+}
diff --git a/home-manager/programs/default.nix b/home-manager/programs/default.nix
new file mode 100644
index 0000000..cbd589d
--- /dev/null
+++ b/home-manager/programs/default.nix
@@ -0,0 +1,13 @@
+{
+ imports = [
+ ./firefox
+ ./git.nix
+ ./ssh.nix
+ ];
+
+ programs = {
+ home-manager.enable = true;
+ tmux.enable = true;
+ vim.enable = true;
+ };
+}
diff --git a/home-manager/programs/firefox/default.nix b/home-manager/programs/firefox/default.nix
new file mode 100644
index 0000000..01ef321
--- /dev/null
+++ b/home-manager/programs/firefox/default.nix
@@ -0,0 +1,36 @@
+{pkgs, ...}: {
+ programs.firefox = {
+ enable = true;
+ package = pkgs.firefox;
+
+ profiles.default = {
+ id = 0;
+ isDefault = true;
+
+ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
+ translate-web-pages
+ ublock-origin
+ ];
+
+ settings = {
+ "browser.tabs.loadBookmarksInTabs" = true; # Opening bookmarks in new tabs
+ "browser.tabs.firefox-view" = false;
+ "browser.newtabpage.activity-stream.section.highlights.includePocket" = false; # Disable pocket
+ "extensions.pocket.enabled" = false; # Disable pocket
+ "identity.fxaccounts.enabled" = false; # Disable Firefox accounts integration
+ "media.eme.enabled" = true; # Enable DRM
+ "media.gmp-widevinecdm.visible" = true; # Enable DRM
+ "media.gmp-widevinecdm.enabled" = true; # Enable DRM
+ "media.videocontrols.picture-in-picture.video-toggle.always-show" = true; # Always shows the Picture in Picture toggle
+ "narrate.enabled" = false; # Disable text to speech in reader mode
+ "signon.autofillForms" = false; # Disable built-in form-filling
+ "signon.rememberSignons" = false; # Disable built-in password manager
+ "ui.systemUsesDarkTheme" = true; # Dark mode
+ };
+
+ # search = {
+ # default = "Google";
+ # };
+ };
+ };
+}
diff --git a/home-manager/programs/git.nix b/home-manager/programs/git.nix
new file mode 100644
index 0000000..f48766f
--- /dev/null
+++ b/home-manager/programs/git.nix
@@ -0,0 +1,15 @@
+{pkgs, ...}: {
+ programs.git = {
+ enable = true;
+ userName = "grm";
+ userEmail = "anastasis.gramm2@gmail.com";
+ # extraConfig = {
+ # user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAikGltB46LIhsjvVIa2X8iP2do5CnpVXJojvfGiYsmW";
+ # gpg = {
+ # format = "ssh";
+ # "ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign";
+ # };
+ # commit.gpgsign = true;
+ # };
+ };
+}
diff --git a/home-manager/programs/ssh.nix b/home-manager/programs/ssh.nix
new file mode 100644
index 0000000..8c079b0
--- /dev/null
+++ b/home-manager/programs/ssh.nix
@@ -0,0 +1,20 @@
+{
+ programs.ssh = {
+ enable = true;
+ matchBlocks = {
+ "portal" = {
+ hostname = "portal.eyesin.space";
+ port = 22;
+ user = "root";
+ };
+ "gizmo" = {
+ hostname = "37.60.220.238";
+ port = 22;
+ user = "root";
+ };
+ # "*" = {
+ # extraOptions.IdentityAgent = "";
+ # };
+ };
+ };
+}