Compare commits
8 Commits
bd24cb25dc
...
c45866e0b0
Author | SHA1 | Date | |
---|---|---|---|
c45866e0b0
|
|||
60a3e4ae1d
|
|||
82910d4449
|
|||
42e094806b
|
|||
745bc7b80f
|
|||
dac0c997a1
|
|||
581f5c8d49
|
|||
5efedf035d
|
10
README.md
10
README.md
@@ -1,3 +1,11 @@
|
||||
# setup-machines
|
||||
|
||||
This repo contains all the tools to correctly setup all the needed tools on a machine from clean install
|
||||
This repo contains all the tools to correctly setup all the needed tools on a machine from clean install
|
||||
|
||||
```sh
|
||||
home-manager switch --flake .#noahk@NixOS_Desktop
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo nixos-rebuild switch --flake .#NixOS_Desktop
|
||||
```
|
||||
|
16
flake.lock
generated
16
flake.lock
generated
@@ -7,32 +7,32 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1720042825,
|
||||
"narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=",
|
||||
"lastModified": 1739757849,
|
||||
"narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073",
|
||||
"rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-24.05",
|
||||
"ref": "release-24.11",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1723938990,
|
||||
"narHash": "sha256-9tUadhnZQbWIiYVXH8ncfGXGvkNq3Hag4RCBEMUk7MI=",
|
||||
"lastModified": 1740463929,
|
||||
"narHash": "sha256-4Xhu/3aUdCKeLfdteEHMegx5ooKQvwPHNkOgNCXQrvc=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c42fcfbdfeae23e68fc520f9182dde9f38ad1890",
|
||||
"rev": "5d7db4668d7a0c6cc5fc8cf6ef33b008b2b1ed8b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-24.05",
|
||||
"ref": "nixos-24.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@@ -2,9 +2,9 @@
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
||||
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
|
7
home-manager/IDEs/default.nix
Normal file
7
home-manager/IDEs/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./vscode.nix
|
||||
];
|
||||
}
|
16
home-manager/IDEs/vscode.nix
Normal file
16
home-manager/IDEs/vscode.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
|
||||
jnoortheen.nix-ide
|
||||
mhutchie.git-graph
|
||||
donjayamanne.githistory
|
||||
eamodio.gitlens
|
||||
];
|
||||
};
|
||||
}
|
@@ -14,6 +14,8 @@
|
||||
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
# ./nvim.nix
|
||||
|
||||
./IDEs
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
@@ -39,8 +41,8 @@
|
||||
};
|
||||
|
||||
home = {
|
||||
username = noahk;
|
||||
homeDirectory = /home/noahk/;
|
||||
username = "noahk";
|
||||
homeDirectory = "/home/noahk";
|
||||
};
|
||||
|
||||
# Add stuff for your user as you see fit:
|
||||
@@ -52,8 +54,8 @@
|
||||
programs.git.enable = true;
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = sd-switch;
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = 24.05;
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
|
@@ -109,6 +109,18 @@
|
||||
papirus-icon-theme
|
||||
# Menu kind
|
||||
xfce.xfce4-whiskermenu-plugin
|
||||
|
||||
# Spotify
|
||||
spotify
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
# Allow discovery for spotify on the network
|
||||
57621
|
||||
];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
# Allow discovery for spotify on the network
|
||||
5353
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
@@ -117,6 +129,5 @@
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
}
|
||||
|
Reference in New Issue
Block a user