Compare commits

..

16 Commits

Author SHA1 Message Date
e6e1336487 changes to user seciurity
All checks were successful
update-flake-lock / update_lockfile (push) Successful in 23m52s
2025-04-16 02:49:06 -04:00
c03715b7ad delete useless file 2025-04-15 20:00:50 -04:00
9ce14b97ef update root flake 2025-04-15 19:59:49 -04:00
327c6ba9f0 added homebrew cask medis 2025-04-15 19:57:45 -04:00
e8d66b41e9 added system copy paste functionality 2025-04-15 19:57:45 -04:00
8cd339297b added sudoers file, imported to common users 2025-04-15 19:57:45 -04:00
f8a21f3c91 added maintainers file 2025-04-15 19:57:45 -04:00
fc058e1742 added more brew apps 2025-04-15 19:57:45 -04:00
1a27a139bd added media player to brew install
iina
2025-04-15 19:57:45 -04:00
a50f5193bb nix darwin branch fix
branch is set to 24.11 instead of latest, latest caused issues when
following nixpkgs that was set to 24.11
2025-04-15 19:57:45 -04:00
03a7f0f8c8 Merge pull request 'flake.lock: Update' (#11) from update_flake_lock_action into master
Some checks failed
update-flake-lock / update_lockfile (push) Failing after 23m53s
Reviewed-on: #11
2025-04-05 19:31:25 -05:00
github-actions[bot]
ff33921c48 flake.lock: Update
Flake lock file updates:

• Updated input 'darwin':
    'github:lnl7/nix-darwin/ae406c04577ff9a64087018c79b4fdc02468c87c?narHash=sha256-O3bnAfsObto6l2tQOmQlrO6Z2kD6yKwOWfs7pA0CpOc%3D' (2025-02-05)
  → 'github:lnl7/nix-darwin/73d59580d01e9b9f957ba749f336a272869c42dd?narHash=sha256-emPWa5lmKbnyuj8c1mSJUkzJNT%2BiJoU9GMcXwjp2oVM%3D' (2025-04-01)
• Updated input 'home-manager':
    'github:nix-community/home-manager/bd65bc3cde04c16755955630b344bc9e35272c56?narHash=sha256-dinzAqCjenWDxuy%2BMqUQq0I4zUSfaCvN9rzuCmgMZJY%3D' (2025-01-08)
  → 'github:nix-community/home-manager/a9f8b3db211b4609ddd83683f9db89796c7f6ac6?narHash=sha256-2lDQBOmlz9ggPxcS7/GvcVdzXMIiT%2BPpMao6FbLJSr0%3D' (2025-04-04)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/030ba1976b7c0e1a67d9716b17308ccdab5b381e?narHash=sha256-nJj8f78AYAxl/zqLiFGXn5Im1qjFKU8yBPKoWEeZN5M%3D' (2025-02-04)
  → 'github:nixos/nixpkgs/bdb91860de2f719b57eef819b5617762f7120c70?narHash=sha256-s1KLDALEeqy%2BttrvqV3jx9mBZEvmthQErTVOAzbjHZs%3D' (2025-04-03)
2025-04-05 22:34:55 +00:00
8e39e45819 Revert "overhauled workflow"
Some checks failed
update-flake-lock / update_lockfile (push) Failing after 23m27s
This reverts commit 0d41c66fccb051a5c17f1f7f036299f4e8a88080.
2025-04-05 18:24:10 -04:00
0d41c66fcc overhauled workflow 2025-04-05 18:01:16 -04:00
e7f2c07a31 update workflow 2025-04-05 17:41:38 -04:00
5295b73bff Merge pull request 'Update Flake lock file' (#10) from update-flake-lock into master
Reviewed-on: #10
2025-04-05 16:06:56 -05:00
9 changed files with 74 additions and 13 deletions

View File

@ -5,7 +5,7 @@ on:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
jobs:
lockfile:
update_lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@ -19,3 +19,4 @@ jobs:
pr-labels: | # Labels to be set on the PR
dependencies
automated
token: ${{ secrets.GH_TOKEN }}

View File

@ -1,6 +1,14 @@
-- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution
-- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk.
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
vim.api.nvim_set_keymap("v", "<sc-c>", '"+y', { noremap = true })
vim.api.nvim_set_keymap("n", "<sc-v>", 'l"+P', { noremap = true })
vim.api.nvim_set_keymap("v", "<sc-v>", '"+P', { noremap = true })
vim.api.nvim_set_keymap("c", "<sc-v>", '<C-o>l<C-o>"+<C-o>P<C-o>l', { noremap = true })
vim.api.nvim_set_keymap("i", "<sc-v>", '<ESC>l"+Pli', { noremap = true })
vim.api.nvim_set_keymap("t", "<sc-v>", '<C-\\><C-n>"+Pi', { noremap = true })
if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })

20
flake.lock generated
View File

@ -7,16 +7,16 @@
]
},
"locked": {
"lastModified": 1738743987,
"narHash": "sha256-O3bnAfsObto6l2tQOmQlrO6Z2kD6yKwOWfs7pA0CpOc=",
"lastModified": 1743127615,
"narHash": "sha256-+sMGqywrSr50BGMLMeY789mSrzjkoxZiu61eWjYS/8o=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "ae406c04577ff9a64087018c79b4fdc02468c87c",
"rev": "fc843893cecc1838a59713ee3e50e9e7edc6207c",
"type": "github"
},
"original": {
"owner": "lnl7",
"ref": "master",
"ref": "nix-darwin-24.11",
"repo": "nix-darwin",
"type": "github"
}
@ -28,11 +28,11 @@
]
},
"locked": {
"lastModified": 1736373539,
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=",
"lastModified": 1744743431,
"narHash": "sha256-iyn/WBYDc7OtjSawbegINDe/gIkok888kQxk3aVnkgg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56",
"rev": "c61bfe3ae692f42ce688b5865fac9e0de58e1387",
"type": "github"
},
"original": {
@ -60,11 +60,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1738702386,
"narHash": "sha256-nJj8f78AYAxl/zqLiFGXn5Im1qjFKU8yBPKoWEeZN5M=",
"lastModified": 1744440957,
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "030ba1976b7c0e1a67d9716b17308ccdab5b381e",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
"type": "github"
},
"original": {

View File

@ -8,7 +8,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin/master";
url = "github:lnl7/nix-darwin/nix-darwin-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};

11
meta/maintainers.nix Normal file
View File

@ -0,0 +1,11 @@
{...}: {
"wymiller" = {
email = "wyatt@wyattjmiller.com";
name = "Wyatt J. Miller";
homepage = "https://wyattjmiller.com";
license = {
spdxID = "MPL-2.0";
fullName = "Mozilla Public License 2.0";
};
};
}

View File

@ -5,6 +5,10 @@
hostname,
...
} @ args: {
imports = [
../security/sudo.nix
];
networking.hostName = hostname;
# Don't forget to set a password with passwd!
@ -23,7 +27,7 @@
})
];
security.sudo.wheelNeedsPassword = false;
security.sudo.needsPassword = false;
users.groups.wyatt = {};

View File

@ -22,6 +22,7 @@
};
taps = [
"iina/homebrew-mpv-iina"
];
brews = [
@ -31,6 +32,14 @@
"ghostty"
"raycast"
"jordanbaird-ice"
"iina"
"linearmouse"
"sanesidebuttons"
"betterdisplay"
"maccy"
"swift-quit"
"medis"
# "alt-tab"
];
};
}

View File

@ -0,0 +1,3 @@
# Security modules
These are modules relating to security and security-related programs

25
modules/security/sudo.nix Normal file
View File

@ -0,0 +1,25 @@
{
config,
lib,
...
}:
with lib; {
options = {
security.sudo = {
needsPassword = mkOption {
type = types.bool;
default = true;
description = "Whether users in the wheel group need to provide a password for sudo.";
};
};
};
config = {
environment.etc."sudoers.d/wheel-no-password" = mkIf (!config.security.sudo.needsPassword) {
text = ''
%wheel ALL=(ALL) NOPASSWD: ALL
'';
# mode = "0440";
};
};
}